Re: CURL intermittant problem
| From: | Martin Scotta | Date: | Fri, 12 Jun 2009 02:24:10 +0000 |
| Subject: | Re: CURL intermittant problem | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-293963@lists.php.net to get a copy of this message | ||
It looks like a connection problem,
You has to make sure php can connect to the IP
<?php
echo exec( 'ping 10.20.30.40' );
?>
You can remove the IP from the source, just add an entry in the /etc/hosts
file
Mrtn
On Thu, Jun 11, 2009 at 8:14 PM, Daniel Brown <danbrown@php.net> wrote:
> On Thu, Jun 11, 2009 at 19:07,
> ioannes@btinternet.com<ioannes@btinternet.com> wrote:
> >
> > The target URL works perfectly and quicly if put directly into the
> browser
> > URL line.
> >
> > Do you know of any other reasons for problems with such a connection?
>
> Is the script being run located on the same system as which you're
> using the browser to (successfully) connect to the target host? If
> not, check to see if there's a network issue - a downed or improperly
> bound interface, SELinux restrictions, blacklisted by the remote
> machine, etc. - on the server on which the script it hosted. In
> addition, as simple and obvious as it is, if it's a private network,
> make sure the machine on which the script is hosted is within the same
> network as the target machine.
>
> --
> </Daniel P. Brown>
> daniel.brown@parasane.net || danbrown@php.net
> http://www.parasane.net/ ||
> http://www.pilotpig.net/
> 50% Off All Shared Hosting Plans at PilotPig: Use Coupon DOW10000
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
Martin Scotta