Re: [PHP] Validating a link in php

2007-01-25 Thread Casey Chu
Try changing that url to www.youtube.com:80/v/JqO8ZevPJNk On 1/25/07, Robert Porter <[EMAIL PROTECTED]> wrote: Frank Arensmeier wrote: >Did you take a look at the error numbers / messages returned by >fsockopen? What do they say? Actually, I only get warnings, not errors, but here's what they

Re: [PHP] Validating a link in php

2007-01-25 Thread Robert Porter
Frank Arensmeier wrote: >Did you take a look at the error numbers / messages returned by >fsockopen? What do they say? Actually, I only get warnings, not errors, but here's what they say: Warning: fsockopen(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /var/www

Re: [PHP] Validating a link in php

2007-01-25 Thread Richard Lynch
On Thu, January 25, 2007 12:06 am, [EMAIL PROTECTED] wrote: > Richard Lynch wrote: >>I dunno what you did wrong with fsockopen... > > First of all, thanks for taking the time to respond. > > I had tried fsockopen, but here's the problem. The > following calls work as expected, returning a valid fi

Re: [PHP] Validating a link in php

2007-01-24 Thread Frank Arensmeier
25 jan 2007 kl. 07.06 skrev [EMAIL PROTECTED]: Richard Lynch wrote: I dunno what you did wrong with fsockopen... First of all, thanks for taking the time to respond. I had tried fsockopen, but here's the problem. The following calls work as expected, returning a valid file pointer for valid

Re: [PHP] Validating a link in php

2007-01-24 Thread sleestak2
Richard Lynch wrote: >I dunno what you did wrong with fsockopen... First of all, thanks for taking the time to respond. I had tried fsockopen, but here's the problem. The following calls work as expected, returning a valid file pointer for valid urls and FALSE for invalid urls: $fp = fsockopen(

Re: [PHP] Validating a link in php

2007-01-24 Thread Richard Lynch
On Wed, January 24, 2007 10:25 am, [EMAIL PROTECTED] wrote: > I'm hoping y'all can help me with a bit of a php code problem I'm > having. > > What I'm trying to do is link to YouTube videos (more than one in a > single > webpage). However, because I'm worried about the videos going away > and the

[PHP] Validating a link in php

2007-01-24 Thread sleestak2
Hi all, I'm hoping y'all can help me with a bit of a php code problem I'm having. What I'm trying to do is link to YouTube videos (more than one in a single webpage). However, because I'm worried about the videos going away and the links going bad, I'd like to use PHP to check if the link is goo