bhavin12300 Posted September 19, 2009 Share Posted September 19, 2009 hi experts, i need some information from you. i have one curl script which submit data to one of airline website and get result. Problem is: my script works on web server perfectly fine. but when i run script locally it does not work. can any one let me know why is so? its working on my webserver but not on my local pc. I am using WAMP on my local pc. hope someone can take me out of this. Quote Link to comment https://forums.phpfreaks.com/topic/174790-strange-behavior-on-different-server/ Share on other sites More sharing options...
l4nc3r Posted September 19, 2009 Share Posted September 19, 2009 Use good grammar and spelling if you want to be taken seriously. Is the cURL library enabled on your local PHP installation? Quote Link to comment https://forums.phpfreaks.com/topic/174790-strange-behavior-on-different-server/#findComment-921150 Share on other sites More sharing options...
RussellReal Posted September 19, 2009 Share Posted September 19, 2009 curl needs to be enabled in your php.ini Quote Link to comment https://forums.phpfreaks.com/topic/174790-strange-behavior-on-different-server/#findComment-921165 Share on other sites More sharing options...
bhavin12300 Posted September 19, 2009 Author Share Posted September 19, 2009 it is enable. script does submit data as well from local pc but response is not what it is expected. does version matter? Quote Link to comment https://forums.phpfreaks.com/topic/174790-strange-behavior-on-different-server/#findComment-921207 Share on other sites More sharing options...
bhavin12300 Posted September 20, 2009 Author Share Posted September 20, 2009 any one? Quote Link to comment https://forums.phpfreaks.com/topic/174790-strange-behavior-on-different-server/#findComment-921661 Share on other sites More sharing options...
RussellReal Posted September 20, 2009 Share Posted September 20, 2009 idk what you mean by does version matter, however, it would probably be the best idea to update to the latest versions of php. but I don't really think it would matter, although, if your php version is lower 4.0 then apparently you'll have problems with curl. go to php.ini and unescape the dll associated with curl ';extension=php_curl.dll' turn it to 'extension=php_curl.dll' Quote Link to comment https://forums.phpfreaks.com/topic/174790-strange-behavior-on-different-server/#findComment-921670 Share on other sites More sharing options...
bhavin12300 Posted September 20, 2009 Author Share Posted September 20, 2009 idk what you mean by does version matter, however, it would probably be the best idea to update to the latest versions of php. but I don't really think it would matter, although, if your php version is lower 4.0 then apparently you'll have problems with curl. go to php.ini and unescape the dll associated with curl ';extension=php_curl.dll' turn it to 'extension=php_curl.dll' hi, my php version is 5.3.0 and i have already turn on extension for CURL. I will let you know again that my i am getting response from website, but that response is not what is expected. i think something is missing in header or some option for CURL which i didnt set or enable. (MAY BE THAT OPTION IS ALREADY SET OR ENABLE ON MY WEBSERVER). any info which it can be?? Quote Link to comment https://forums.phpfreaks.com/topic/174790-strange-behavior-on-different-server/#findComment-921698 Share on other sites More sharing options...
RussellReal Posted September 20, 2009 Share Posted September 20, 2009 you ALSO need to restart your web server for php.ini settings to take effect Quote Link to comment https://forums.phpfreaks.com/topic/174790-strange-behavior-on-different-server/#findComment-921898 Share on other sites More sharing options...
bhavin12300 Posted September 21, 2009 Author Share Posted September 21, 2009 you ALSO need to restart your web server for php.ini settings to take effect yes i did many times. Quote Link to comment https://forums.phpfreaks.com/topic/174790-strange-behavior-on-different-server/#findComment-922048 Share on other sites More sharing options...
Philip Posted September 21, 2009 Share Posted September 21, 2009 How is the response different? Is the text different, header code (redirect), or what? Quote Link to comment https://forums.phpfreaks.com/topic/174790-strange-behavior-on-different-server/#findComment-922058 Share on other sites More sharing options...
Solar Posted September 21, 2009 Share Posted September 21, 2009 If you are running apache to you need to edit the ini's in the folder. Then restart your server as well. apache/bin/php.ini Quote Link to comment https://forums.phpfreaks.com/topic/174790-strange-behavior-on-different-server/#findComment-922060 Share on other sites More sharing options...
bhavin12300 Posted September 21, 2009 Author Share Posted September 21, 2009 How is the response different? Is the text different, header code (redirect), or what? script post data to website with date and time and website rend detail of page of that date and time. script it exact response when i execute query on my server. but when i run same script on local computer, response is not detail page of that date and time i send , but response is same submit of that website. Quote Link to comment https://forums.phpfreaks.com/topic/174790-strange-behavior-on-different-server/#findComment-922097 Share on other sites More sharing options...
bhavin12300 Posted September 21, 2009 Author Share Posted September 21, 2009 If you are running apache to you need to edit the ini's in the folder. Then restart your server as well. apache/bin/php.ini yes i did it and restarted it. my curl is enable.but still same problem. Quote Link to comment https://forums.phpfreaks.com/topic/174790-strange-behavior-on-different-server/#findComment-922100 Share on other sites More sharing options...
bhavin12300 Posted September 22, 2009 Author Share Posted September 22, 2009 hope some will help me out. Quote Link to comment https://forums.phpfreaks.com/topic/174790-strange-behavior-on-different-server/#findComment-922679 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.