Ah I see, that makes sense, I guess it would be a pretty big security issue if PHP could open files and edit them on someone's computer.
Printable View
Ah I see, that makes sense, I guess it would be a pretty big security issue if PHP could open files and edit them on someone's computer.
Haha, yeah:
Super unsecure.Code:$gl = glob('C://*');
Does that search through all files on their PC? lol
Well - if you were allowed to open files on the hard drive. But PHP doesn't allow it(thank god).
When it says 'your system' it means 'the system on which the PHP script is running' — i.e. your server. The webserver cannot (directly) access files on the client machine.
This isn't a question of what PHP allows: HTTP doesn't provide a mechanism to do it (for fairly obvious reasons). Of course, if you have an FTP or SSH server set up on the HTTP client machine, it's a different matter.