[Solved] Is it possible to include a file which is in my PC? [closed]


PHP is a server-sided scripting language. include( ... ) will search the file system on the server for the page to include. The client side is in 99.9% of the cases a totally different machine, and doesn’t even need to exist to execute a php script. As far as I am aware, a webpage is not able to interact with the filesystem of the client, unless the user decides to upload a file and submit the form, or drag and drop a file into a specific area of the webpage (html5).

Cookies might be able to accomplish what you are searching for though.

3

solved Is it possible to include a file which is in my PC? [closed]