Jump to content
Nordie

Curl At Tch?

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~

Share this post


Link to post
Share on other sites

Hey Nordie,

 

If you have a script such as a shopping cart that needs CURL, you should be fine using it here.

Share this post


Link to post
Share on other sites

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~

Share this post


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~

Share this post


Link to post
Share on other sites

That would not work. You could execute a php script at set intervals using cron though.

Share this post


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.

Share this post


Link to post
Share on other sites

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~

Share this post


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.

Share this post


Link to post
Share on other sites

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!

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Please open a ticket with the help desk. The mods do not have access to the servers or your account.

Share this post


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...