Jump to content

Simple Search Script


-entropyman

Recommended Posts

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  ;)

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.