[PHP] [TEST] LINKS EXCHANGE

2007-05-28 Thread Marco Sottana
i would like to test www.3viso.com/addurl try to input your link and categories and tell me what you think about it thank a lot

[PHP] Test Links...

2003-09-26 Thread Doug Coning
Greetings All, I am creating a 'links' page and was wondering if there was a way in PHP to test the response of an outside link? I'm sure everyone here has clicked on a links page link and have a No Page Found error because no one is keeping the links uptodate. I was wondering if there was a

Re: [PHP] Test Links...

2003-09-26 Thread R'twick Niceorgaw
Doug Coning said the following on 9/26/2003 12:15 PM Greetings All, I am creating a 'links' page and was wondering if there was a way in PHP to test the response of an outside link? I'm sure everyone here has clicked on a links page link and have a No Page Found error because no one is keeping

Re: [PHP] Test Links...

2003-09-26 Thread Ray Hunter
Ive used curl to test stuff out with too...however, if on link i like to use wget to test it out. You might not have that option but I have seen others use fopen or file_get_contents. HTH, BigDog On Fri, 2003-09-26 at 10:15, Doug Coning wrote: Greetings All, I am creating a 'links' page and

Re: [PHP] Test Links...

2003-09-26 Thread Ray Hunter
lol...if on linux... On Fri, 2003-09-26 at 12:35, Ray Hunter wrote: Ive used curl to test stuff out with too...however, if on link i like to use wget to test it out. You might not have that option but I have seen others use fopen or file_get_contents. HTH, BigDog On Fri, 2003-09-26 at

Re: [PHP] Test links?

2002-12-02 Thread DL Neil
Beth, When fopen successfully opens a file it populates an array $http_response_header, which you can examine to see if the link works or not - I don't believe you can actually get the file itself, but since that's not what we're after that's not a problem! I noticed this reference to

Re: [PHP] Test links?

2002-12-02 Thread DL Neil
Rob/Beth, The code should also consider: 1 updating the db if the link is 'valid', ie if previously it had been 'down'! 2 putting an @ to prevent any errors causing a hard-stop at the fopen line 3 that the url/database must contain protocol information, ie http://www.nytimes.com not

Re: [PHP] Test links?

2002-12-02 Thread Beth Gore
DL Neil wrote: Beth, I noticed this reference to $http_response_header and straightaway quizzed the manual, only to find that the only references to it (eg file open) lead nowhere. Have gone through a few other pages, looking to see if I might happen upon some detail, but failed. Sadly you

Re: [PHP] Test links?

2002-12-01 Thread Jason Wong
On Sunday 01 December 2002 15:33, Hugh Danaher wrote: Not sure how to supress the warning message that PHP automatically does when you haven't got a valid URL though. Error reporting options can be set in php.ini or by using ini_set(). should be able to surpress errors by adding an * before

Re: [PHP] Test links?

2002-12-01 Thread Hugh Danaher
Yes I did. Thanks. - Original Message - From: Jason Wong [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, December 01, 2002 2:30 AM Subject: Re: [PHP] Test links? On Sunday 01 December 2002 15:33, Hugh Danaher wrote: Not sure how to supress the warning message that PHP

Re: [PHP] Test links?

2002-11-30 Thread Rob Packer
Well, the reason I didn't do that at first was that I could have done any of the methods that I've tried incorrectly, which is why I figured I'd ask what works and then focus on that method... but, I've tried to ping them, use fopen, and use fsocketopen... but nothing says that I've used any of

Re: [PHP] Test links?

2002-11-30 Thread Jason Wong
On Saturday 30 November 2002 21:40, Rob Packer wrote: Well, the reason I didn't do that at first was that I could have done any of the methods that I've tried incorrectly, which is why I figured I'd ask what works and then focus on that method... but, I've tried to ping them, use fopen, and

Re: [PHP] Test links?

2002-11-30 Thread Rob Packer
Okay, I'm confused... file, fopen, and fsockopen seem to say not found on alot valid URLs... does this look to be correct usage? $url = $row[0]; // just get the url from the db $fp = implode ('', file ($url)); if (!$fp) {echo font color=redbUnable to access file/b/font; } else { fclose($fp);

Re: [PHP] Test links?

2002-11-30 Thread Jason Wong
On Sunday 01 December 2002 02:06, Rob Packer wrote: Okay, I'm confused... file, fopen, and fsockopen seem to say not found on alot valid URLs... does this look to be correct usage? $url = $row[0]; // just get the url from the db $fp = implode ('', file ($url)); if (!$fp) {echo font

Re: [PHP] Test links?

2002-11-30 Thread Beth Gore
Rob Packer wrote: Okay, I'm confused... file, fopen, and fsockopen seem to say not found on alot valid URLs... does this look to be correct usage? $url = $row[0]; // just get the url from the db $fp = implode ('', file ($url)); if (!$fp) {echo font color=redbUnable to access file/b/font; } else

Re: [PHP] Test links?

2002-11-30 Thread Chris Hewitt
Rob Packer wrote: Okay, I'm confused... file, fopen, and fsockopen seem to say not found on alot valid URLs... does this look to be correct usage? $url = $row[0]; // just get the url from the db $fp = implode ('', file ($url)); if (!$fp) {echo font color=redbUnable to access file/b/font; } else

Re: [PHP] Test links?

2002-11-30 Thread Rob Packer
Thanks for the help and suggestions everybody! I think some of my problems stemmed from the affiliate links being redirected and PHP saw that as dead(so to speak)... but I think I got it now. I made another column in the database to note a redirection for ones that the url fails but the $url[host]

Re: [PHP] Test links?

2002-11-30 Thread Hugh Danaher
- Original Message - From: Beth Gore [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, November 30, 2002 11:02 AM Subject: Re: [PHP] Test links? Rob Packer wrote: Okay, I'm confused... file, fopen, and fsockopen seem to say not found on alot valid URLs... does this look

[PHP] Test links?

2002-11-29 Thread Rob Packer
First, I'd like to say that I'm not asking for anyone to write a script... how would I go about checking a MySQL database of links to see if any are down? I've had some varying results with all the methods I've tried, so would like to see if anyone has a proven method for doing this. Thanks,

Re: [PHP] Test links?

2002-11-29 Thread Jason Reid
fopen each link and see if it returns true or false (false meaning its down) Jason Reid [EMAIL PROTECTED] -- AC Host Canada www.achost.ca - Original Message - From: Rob Packer [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, November 29, 2002 3:53 PM Subject: [PHP] Test links

Re: [PHP] Test links?

2002-11-29 Thread Jason Wong
On Saturday 30 November 2002 06:53, Rob Packer wrote: First, I'd like to say that I'm not asking for anyone to write a script... how would I go about checking a MySQL database of links to see if any are down? I've had some varying results with all the methods I've tried, so would like to see