Bj wrote: > I think you're trying to make it harder then it needs to be. The php > fopen() function does work in safe mode, and will only return success if the > page exists - it will fail if a 404 is returned. The code I originally > suggested is all you need to check a link: > > if (fopen($url, "r")) > # OK link is good > else > # No page at this link > > On my server you get a warning message from php when a fopen() fails so best > thing is to put @ in front to suppress warning messages - @fopen() > > You might want to put a little code in before that to check the string they > submitted, and add the "http://" if they missed it off and only put > "www.site.com", or you might put the "http://" on the form just in front of > the input box and always add it yourself. > > Bj
Hi BJ. This is working OK, except that any https link that I try to fopen comes back false, even when I know it is a good link. Is there something I need to add within the script to allow me to open a secure file? Thanks, steve ____ � The WDVL Discussion List from WDVL.COM � ____ To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] Send Your Posts To: [EMAIL PROTECTED] To set a personal password send an email to [EMAIL PROTECTED] with the words: "set WDVLTALK pw=yourpassword" in the body of the email. To change subscription settings to the wdvltalk digest version: http://wdvl.internet.com/WDVL/Forum/#sub ________________ http://www.wdvl.com _______________________ You are currently subscribed to wdvltalk as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED]
