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(

[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