Forum Moderators: coopster

Message Too Old, No Replies

check if website has a certain code on index

         

uncled1023

12:10 am on Apr 8, 2008 (gmt 0)

10+ Year Member



Hey, i was wondering if there was a php script out there that could check an imputed URL, and see if they have a certain bit of code on there site. its for checking to see fi they have a certain ad banner on their site...

PHP_Chimp

10:00 am on Apr 8, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Have a look at the curl [uk2.php.net] functions, as you can get the information from the page with those.
Then look at preg_match [uk2.php.net], or just strpos [uk2.php.net], to check if the code is on the page.

<edit>
Sorry just noticed this is your first post.
So welcome to Webmaster World.

[edited by: PHP_Chimp at 10:01 am (utc) on April 8, 2008]