-entropyman Posted July 14, 2008 Share Posted July 14, 2008 Hello, Hopefully you all can help me once again. Once again, it is a simple question, I just can't come up with the answers. So here's the issue: I want to create a script that searches through remote html directories of images each belonging to certain people. the script will return any images found under the name of the person. ie you search "Bill" and all of bill's pictures in that chosen directory show up. Anyone help explain how to do this. I don't want anyone to write the script or tell me exactly how to, i am looking for someone to point me to the correct functions and such. thank you Quote Link to comment Share on other sites More sharing options...
Guardian-Mage Posted July 14, 2008 Share Posted July 14, 2008 First, you would have to get the name of each file in the given directory. If the directory is on the same server as the script, it is easy. Use something such as foreach $file as $key => $value. Then you could use preg_match to see if the image contains the word being searched. Quote Link to comment Share on other sites More sharing options...
GingerRobot Posted July 14, 2008 Share Posted July 14, 2008 'remote html directories' You can't traverse a remote directory. It'd be a bit of a security flaw, don't you think? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.