Page 2 of 2

Re: problem with curl and port 8087

Posted: Sat May 10, 2014 9:47 am
by kadas99
Update:

Now I can't reach the host:

array(2) { ["Result"]=> string(5) "Error" ["Error"]=> string(24) "couldn't connect to host" }

but why?

:cry:

Re: problem with curl and port 8087

Posted: Sat May 10, 2014 10:01 am
by Kent Briggs
And you've installed PHP and the Curl extension on your server? Can you run other PHP code such as:

Code: Select all

<?php echo "hello world"; ?>
What happens if you change $url to 127.0.0.1 to connect to localhost, since it's all on the same machine?

Re: problem with curl and port 8087

Posted: Sat May 10, 2014 10:08 am
by kadas99
Hi Kent
Kent Briggs wrote:And you've installed PHP and the Curl extension on your server? Can you run other PHP code such as:

Code: Select all

<?php echo "hello world"; ?>
What happens if you change $url to 127.0.0.1 to connect to localhost, since it's all on the same machine?

Curl and PHp are installed and running, I can't point to my own IP because the PM is installed only in the server, not in my local machine, that is why I hit the dedicated server from my local environment.


Thanks for your help

Re: problem with curl and port 8087

Posted: Sat May 10, 2014 10:17 am
by Kent Briggs
kadas99 wrote:Curl and PHp are installed and running, I can't point to my own IP because the PM is installed only in the server, not in my local machine, that is why I hit the dedicated server from my local environment.
That doesn't matter. When PHP connects to 127.0.0.1, it connects to itself on the server, not back to you on your local PC.

Re: problem with curl and port 8087

Posted: Sat May 10, 2014 2:24 pm
by kadas99
Ok

pointing to 127.0.0.1 it's works!!!!


Man! how can reward you for the help and assistance!? Its working! I can believe it!!

Thanks for all! for your time and your wise words!

Re: problem with curl and port 8087

Posted: Sat May 10, 2014 2:30 pm
by Kent Briggs
kadas99 wrote:pointing to 127.0.0.1 it's works!!!!
Great. Not sure why your direct IP wasn't working. Could be a PHP configuration or Windows firewall issue.

Re: problem with curl and port 8087

Posted: Sat May 10, 2014 3:00 pm
by kadas99
Yep, that was weird, well, a new tip to take in count!!

Thank you so much Kent!