Nordie Posted April 24, 2006 Share Posted April 24, 2006 Hi, I see that command line curl is disabled here. So does that mean that CURL is completely unavailable here? I have a software package that requires CURL (libcurl)..........will that not work here? Many thanks for your help! Regards, N~ Quote Link to comment Share on other sites More sharing options...
TCH-Rob Posted April 24, 2006 Share Posted April 24, 2006 Hey Nordie, If you have a script such as a shopping cart that needs CURL, you should be fine using it here. Quote Link to comment Share on other sites More sharing options...
Nordie Posted April 24, 2006 Author Share Posted April 24, 2006 Thank you! Quote Link to comment Share on other sites More sharing options...
Nordie Posted April 24, 2006 Author Share Posted April 24, 2006 Hi, Follow up question. My script requires a cron job that uses curl. What is the path to curl at TCH? Is it: /usr/bin/curl or /usr/local/bin/curl Thanks! N~ Quote Link to comment Share on other sites More sharing options...
TCH-Don Posted April 24, 2006 Share Posted April 24, 2006 /usr/bin/curl Quote Link to comment Share on other sites More sharing options...
Nordie Posted April 24, 2006 Author Share Posted April 24, 2006 Hi again, Sorry for all the questions...........I'm a newbie at this cron stuff. If I configured a cron job that utilizes CURL to run a php script at set intervals (say every half hour), would that be considered "command-line" usage, and therefore not allowed at TCH? Thanks for the help! N~ Quote Link to comment Share on other sites More sharing options...
TCH-Bruce Posted April 24, 2006 Share Posted April 24, 2006 That would not work. You could execute a php script at set intervals using cron though. Quote Link to comment Share on other sites More sharing options...
abinidi Posted April 24, 2006 Share Posted April 24, 2006 Basically, CURL is not allowed as part of a cron job, as that IS command line useage. However, CURL can be run as part of a PHP script, and you can set up a cron job to load a PHP script/page every half-hour (or whatever). So you have to add the extra step in of creating a PHP page that executes the CURL command, and then set up your cron to run the PHP. If you need help, this was discussed in a different thread. Search the forums for CURL and see what you come up with. If you still need help, let us know. Quote Link to comment Share on other sites More sharing options...
Nordie Posted April 24, 2006 Author Share Posted April 24, 2006 Hi, Thanks for the help.......one more question: I'm using the following format for my cron jobs, but it does not appear to be working: /usr/bin/php -s /home/cpanelID/public_html/myprogram.php Should I use the following format instead? /usr/bin/php -s http://www.mywebsite.com/myprogram.php Thanks again! N~ Quote Link to comment Share on other sites More sharing options...
TCH-Bruce Posted April 24, 2006 Share Posted April 24, 2006 You should be able to use: >/usr/bin/php -q /home/cpanel-name/public_html/path-to-script.php Check your error log file and your default email for your account for any errors the script may be spitting out. Quote Link to comment Share on other sites More sharing options...
grimbergen Posted June 22, 2006 Share Posted June 22, 2006 Hello, Our site that uses Curl for the credit card processing is now not working, and the TCH support that i've been in contact with says that it's now being removed from all servers due to security risks. Does anyone know alternatives to curl? We are using Authorize.net. thanks! Quote Link to comment Share on other sites More sharing options...
pickupman Posted August 25, 2006 Share Posted August 25, 2006 I am using OsCommerce cart and now the UPS (XML) Shipping module doesn't function now either. It uses curl to submit & retrieve UPS rates. The checkout_shipping.php page hangs if this module is enabled. I have enabled the stock UPS shipping module for a temporary workaround. UPS XML has worked fine for the last year or so. No code changes. phpinfo() shows curl enabled and version libcurl/7.15.3 OpenSSL/0.9.7a zlib/1.1.4. Quote Link to comment Share on other sites More sharing options...
TCH-Bruce Posted August 25, 2006 Share Posted August 25, 2006 Please open a ticket with the help desk. The mods do not have access to the servers or your account. Quote Link to comment 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.