[PHP] Check for page change efficiently [was Re: Creating a blogrolling/link management system]
[EMAIL PROTECTED] (Paul Van Schayck) wrote in news:[EMAIL PROTECTED]: First of all you need to check with the website you are going to check if they really enjoy all bandwith required. And people will not see their banners anymore. I'm not sure I understand-- I want to check to see if their page has changed once each day and, if so, I will highlight that link in my list... I doubt most web sites would have a problem with one hit per day :) I am not scraping and redisplaying content... My question boils down to the most efficient method to detect whether a page has been modified recently... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Check for Page
How could I: How could I check to make sure a page exists before I redirect to it (a page within my own server, but page name passed in querystring - therefore it could be changed by client)? Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Check for Page
Try this: ? $filename = "dat.txt"; if (file_exists($filename)){ echo "file exists"; } else { echo "file does not exist"; } ? Robert W. Collins Web Developer II Insight / TC Computers www.insight.com www.tccomputers.com -Original Message- From: Karl J. Stubsjoen [mailto:[EMAIL PROTECTED]] Sent: Friday, January 26, 2001 1:58 PM To: PHP Mailing List Subject: [PHP] Check for Page How could I: How could I check to make sure a page exists before I redirect to it (a page within my own server, but page name passed in querystring - therefore it could be changed by client)? Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]