> 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
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,
> 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
--- "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
> > 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
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
> > 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
> 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
> 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
9 matches
Mail list logo