Re: [PHP] CURL intermittant problem

[email protected] (Martin Scotta)
Newsgroups php.general
Message-ID <[email protected]>
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 <[email protected]> wrote:

> On Thu, Jun 11, 2009 at 19:07,
> [email protected]<[email protected]> 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>
> [email protected] || [email protected]
> 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.