Jump to content

Recommended Posts

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~

Link to post
Share on other sites

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~

Link to post
Share on other sites

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.

Link to post
Share on other sites

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.

Link to post
Share on other sites
  • 1 month later...

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!

Link to post
Share on other sites
  • 2 months later...

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.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...