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.
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://*');
Last edited by Nile; 01-09-2009 at 09:13 PM.
Jeremy | jfein.net
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).
Jeremy | jfein.net
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.
Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!
Bookmarks