Jump to content


Photo

Create a search using PHP?


  • Please log in to reply
1 reply to this topic

#1 leamas

leamas
  • New Members
  • Pip
  • Newbie
  • 1 posts

Posted 01 August 2006 - 02:08 AM

I am just wondering if it is possible to open a page from a website (that isn't owned by me) and do a search for specific text on that page? 

Because I have a website that uses the same IDs from another site, I want to be able to go through my database, pick out the IDs, go to the page that is assoiated with that ID, and do a search for key text.  Then at the end return a report stating what needs to be changed in my database.

Is this possible?  Or would I have to use Javascript and be totally lost.  :(

#2 trq

trq
  • Staff Alumni
  • Advanced Member
  • 31,041 posts

Posted 01 August 2006 - 02:35 AM

Read the file into a string using file_get_contents, then search the string.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users