Re: [PHP] remote file existance when protected by a .htaccess

2004-10-21 Thread Mag
> try this function, I lifted almost all of this stuff > off of the manual > and the zend site... Hey! Thanks Matt, it works like a charm! Exactly what I was looking for, its giving me either a 200status header or a 404 and I can easily work from there. I have been going through the code (th

Re: [PHP] remote file existance when protected by a .htaccess

2004-10-21 Thread Matt M.
try this function, I lifted almost all of this stuff off of the manual and the zend site function check_link($link , $referer='') { $main = array(); $ch = curl_init(); curl_setopt ($ch, CURLOPT_URL, $link); curl_setopt ($ch, CURLOPT_HEADER, 1); curl_setopt ($ch, CURLOPT_NOBODY,

Re: [PHP] remote file existance when protected by a .htaccess

2004-10-21 Thread Matt M.
> Hi Matt, > Yep, cURL is available but I was going through the > manual for curl (and google too suggests that might be > my best option)...but it does not look very easy to > learn :-( It is not to bad. Go through the php manual and look at the examples. That should help. If you still cant fi

Re: [PHP] remote file existance when protected by a .htaccess

2004-10-21 Thread Mag
--- "Matt M." <[EMAIL PROTECTED]> wrote: > > Nope, no PEAR allowedany other options? > > curl, Is that available to you? > > http://us2.php.net/curl > Hi Matt, Yep, cURL is available but I was going through the manual for curl (and google too suggests that might be my best option)...but i

Re: [PHP] remote file existance when protected by a .htaccess

2004-10-20 Thread Matt M.
> > Nope, no PEAR allowedany other options? also http://us2.php.net/fsockopen check the user comments for setting referer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] remote file existance when protected by a .htaccess

2004-10-20 Thread Robby Russell
On Wed, 2004-10-20 at 09:53 -0700, Mag wrote: > > > which works great except I have been getting some > > 403 > > > access denied errors for some sites, checking I > > see > > > that they are protected by a htaccess file (that > > > checks the referrer) so i tried putting > > > > > > header('refer

Re: [PHP] remote file existance when protected by a .htaccess

2004-10-20 Thread Mag
> > which works great except I have been getting some > 403 > > access denied errors for some sites, checking I > see > > that they are protected by a htaccess file (that > > checks the referrer) so i tried putting > > > > header('referer: domain') > > > > where domain is the parse_url['host'] o

Re: [PHP] remote file existance when protected by a .htaccess

2004-10-20 Thread Matt M.
> Nope, no PEAR allowedany other options? curl, Is that available to you? http://us2.php.net/curl -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] remote file existance when protected by a .htaccess

2004-10-20 Thread Matt M.
> which works great except I have been getting some 403 > access denied errors for some sites, checking I see > that they are protected by a htaccess file (that > checks the referrer) so i tried putting > > header('referer: domain') > > where domain is the parse_url['host'] of $remote_file > but