Re: CURL intermittant problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxx> wrote:

> On Thu, Jun 11, 2009 at 19:07,
> ioannes@xxxxxxxxxxxxxx<ioannes@xxxxxxxxxxxxxx> 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@xxxxxxxxxxxx || danbrown@xxxxxxx
> 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

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux