Update:
Now I can't reach the host:
array(2) { ["Result"]=> string(5) "Error" ["Error"]=> string(24) "couldn't connect to host" }
but why?
problem with curl and port 8087
-
- Site Admin
- Posts: 5880
- Joined: Wed Mar 19, 2008 8:47 pm
Re: problem with curl and port 8087
And you've installed PHP and the Curl extension on your server? Can you run other PHP code such as:
What happens if you change $url to 127.0.0.1 to connect to localhost, since it's all on the same machine?
Code: Select all
<?php echo "hello world"; ?>
Re: problem with curl and port 8087
Hi Kent
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 wrote:And you've installed PHP and the Curl extension on your server? Can you run other PHP code such as:
What happens if you change $url to 127.0.0.1 to connect to localhost, since it's all on the same machine?Code: Select all
<?php echo "hello world"; ?>
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
-
- Site Admin
- Posts: 5880
- Joined: Wed Mar 19, 2008 8:47 pm
Re: problem with curl and port 8087
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 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.
Re: problem with curl and port 8087
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!
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!
-
- Site Admin
- Posts: 5880
- Joined: Wed Mar 19, 2008 8:47 pm
Re: problem with curl and port 8087
Great. Not sure why your direct IP wasn't working. Could be a PHP configuration or Windows firewall issue.kadas99 wrote:pointing to 127.0.0.1 it's works!!!!
Re: problem with curl and port 8087
Yep, that was weird, well, a new tip to take in count!!
Thank you so much Kent!
Thank you so much Kent!