RE: PHP to grab page TITLE and check for 404 Help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi David,
Have a look at the fopen command:
http://uk.php.net/manual/en/function.fopen.php

You can read the page by using fopen(url) into PHP and parse the html.

-----Original Message-----
From: David C.Z. Wacks [mailto:david@xxxxxxxxxxxxx] 
Sent: 20 April 2006 13:54
To: php-objects@xxxxxxxxxxxxxxx
Subject:  PHP to grab page TITLE and check for 404 Help

Hi,

I am looking for a way to pull the <TITLE> from a web page. Does anyone know
a PHP routine or method that can help?

Also, I am looking for a way to test if a page is active. The ping returns
the website is there (But also returns true on a 404 error), But I want to
know if a page is "dead" (404 or other error) or active.

Any help in pointing me in the right direction is welcome.

Thanks,
Dave






PHP Data object relational mapping generator http://www.metastorage.net/
Yahoo! Groups Links



 



PHP Data object relational mapping generator
http://www.metastorage.net/ 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php-objects/

<*> To unsubscribe from this group, send an email to:
    php-objects-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Soap]     [Kernel Newbies]     [Yosemite]     [Yosemite Campsites]

  Powered by Linux