I've been using the tool for a year now and it always worked great, but since the last file update I'm having some problems. With the old script I got above error: HTTP request failed! in /home/.sites/28/site1/web/tools/keywords/functions.php on line 112 With the new script, it kept on saying : script url not valid. After editing the file on the server iso ftp-ing the script url not valid error dissappeared. But now it gets stuck again and displays error: Warning: file_get_contents(http://www.domain.com/msn-yahoo-ran...=Cure+for+Hangovers&u=http://www.domain.com): failed to open stream: HTTP request failed! in /home/.sites/28/site1/web/tools/keywords/functions.php on line 112 Any ideas?
Well, that's the strange part... When I login to any one of my accounts and try to update one single keyword, it takes a few minutes before it gives that error. For example account: aucklandhotelsltd p.s. thanks for editing out my domain name!
Whatever it is seems to be something with the server you are running the advanced usage script on. I tried that keyword/URL combo against the advanced usage script on one of my servers and it's fine. Do you have another server with PHP you could try it on?
Stupid of me that I didn't think of that before... Just tried it on another server and it works fine on that one. Still think it is pretty weird as I didn't change anything on the other VPS... Ah well, just have to update the url on the other accounts and all will be ok again! Thanks very much for your help Shawn, much appreciated!
No prob... can't really explain it though... but whatever it is looks like something funky with that particular server's PHP config. Maybe firewall/front-end proxy making it timeout when contacting Google's API servers or something. {shrug}
From: http://www.mydigitallife.info/2006/04/21/php-5-unable-to-open-http-request-stream-with-fopen-or-fsockopen-functions/ The errors that generated by PHP include: PHP Warning: fopen(http://www.example.com): failed to open stream: HTTP request failed! fsockopen(): unable to connect to … file_get_contents(): failed to open stream: HTTP request failed! PHP Warning: main(): Failed opening ‘http://www.example.com/index.html’ for inclusion … PHP Warning: include(/usr/local/index.php): failed to open stream: No such file or directory in … To resolve the problem, ensure that allow_url_fopen is enabled in PHP.INI configuration file. The line should look like this: allow_url_fopen = On
Hi, I am trying to send a sms through third party url using this file function then i got the following error. I checked in another server, it is working fine and i put the same code into /var/www/html/ then i got a sms but i put it into my project folder then i got an error and i check my php.ini file, allow_url_fopen=on; & default_socket_timeout=60; [Warning] file(http://url) [<a href='function.file'>function.file</a>]: failed to open stream: HTTP request failed! HTTP/1.0 501 Not Implemented (@line 396 in file /var/www/html/CustomerManagement/protected/Common/MCICommon.php). Thanks & Regards, P.Subathra