Re: proxy
| From: | Jochem Maas | Date: | Sun, 21 Jan 2007 15:06:00 +0000 |
| Subject: | Re: proxy | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-247509@lists.php.net to get a copy of this message | ||
wwww@freenet.am wrote:
> Hi list,
>
> I am trying to create a link checker that would look for broken URLs
> with help of the following code"
>
> $handle = @fopen("http://www.circle.am",
> "r");
> if ($handle):
> print "OK";
> else:
> print "Error";
> endif;
>
> The problem is that I want to check if the links are accessible under
> certain proxy, so is there any way to tell the script to open the URL
> under a proxy?
the curl extension is [probably] what your looking for:
http://php.net/curl
check out the user-notes, there is an example in there for specifying
a request via a given proxy.
>
> Thank you in advance.
>
> Ed
>