problem with curl and port 8087

For general discussion of the Poker Mavens software
kadas99
Posts: 10
Joined: Fri May 09, 2014 6:35 pm

Re: problem with curl and port 8087

Post 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:
Kent Briggs
Site Admin
Posts: 5880
Joined: Wed Mar 19, 2008 8:47 pm

Re: problem with curl and port 8087

Post 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?
kadas99
Posts: 10
Joined: Fri May 09, 2014 6:35 pm

Re: problem with curl and port 8087

Post 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
Kent Briggs
Site Admin
Posts: 5880
Joined: Wed Mar 19, 2008 8:47 pm

Re: problem with curl and port 8087

Post 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.
kadas99
Posts: 10
Joined: Fri May 09, 2014 6:35 pm

Re: problem with curl and port 8087

Post 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!
Kent Briggs
Site Admin
Posts: 5880
Joined: Wed Mar 19, 2008 8:47 pm

Re: problem with curl and port 8087

Post 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.
kadas99
Posts: 10
Joined: Fri May 09, 2014 6:35 pm

Re: problem with curl and port 8087

Post by kadas99 »

Yep, that was weird, well, a new tip to take in count!!

Thank you so much Kent!
Post Reply