im trying to figure out how to enable curl since i keep getting errors on my website and theyre all curl related?
Welcome back to the forum!
The PHP cURL module is already enabled on free hosting; plus you couldn’t change that anyway, nor can you enable functions that will allow you to execute cURL commands on the server anyway because that module is already enough. What are the errors you’re experiencing and your website URL (if you want to share it, else only the errors will do for this case) so we can help you better?
not sure, im using IPS and it keeps throwing curl errors for some reason, and since ips doesnt offer support for self host i have to come here
Error: Call to undefined function IPS\Http\Request\curl_multi_exec() (0)
#0 /home/vol2_8/infinityfree.com/if0_37636750/.lol/htdocs/system/Http/Request/Curl.php(496): IPS\Http\Request\_Curl->_executeMh()
#1 /home/vol2_8/infinityfree.com/if0_37636750/.lol/htdocs/system/Http/Request/Curl.php(302): IPS\Http\Request\_Curl->_executeAndFollowRedirects('GET', NULL)
#2 /home/vol2_8/infinityfree.com/if0_37636750/.lol/htdocs/applications/core/modules/admin/support/support.php(147): IPS\Http\Request\_Curl->get()
#3 /home/vol2_8/infinityfree.com/if0_37636750/.lol/htdocs/applications/core/modules/admin/support/support.php(67): IPS\core\modules\admin\support\_support->_getFeaturedGuides()
#4 /home/vol2_8/infinityfree.com/if0_37636750/.lol/htdocs/system/Dispatcher/Controller.php(118): IPS\core\modules\admin\support\_support->manage()
#5 /home/vol2_8/infinityfree.com/if0_37636750/.lol/htdocs/applications/core/modules/admin/support/support.php(48): IPS\Dispatcher\_Controller->execute()
#6 /home/vol2_8/infinityfree.com/if0_37636750/.lol/htdocs/system/Dispatcher/Dispatcher.php(153): IPS\core\modules\admin\support\_support->execute()
#7 /home/vol2_8/infinityfree.com/if0_37636750/.lol/htdocs/admin/index.php(13): IPS\_Dispatcher->run()
#8 {main}
do you think its because my php version is newer then what 4.7 supports??
Likely due to this
Multi_Exec() is used for parallel processing and is not supported on free plan in my opnion. I have tried that before my self. Instead of parallel processing, try sequential curl execution. It will work although it might take longer time to execute if you have multiple websites to fetch. Here it is, the admin said it as well
The cURL extension is enabled, but the curl_multi_exec
function is not. That function allows you to call a lot of URLs in parallel, which we were forced to block due to abuse.
That said, if you are using IPS, why are you using free hosting? IPS is $500 to start and $200 per year after that. If you’re spending that much on your website already, don’t you think it would be wise to also invest in good hosting to run it?
And if you didn’t pay that, then please note that using pirated software is illegal, and as such it’s not allowed on our hosting.
You’ll need an user agent because of infinityfrees restrictions. Is only curl possible for you? You could look for some python crawlers on GitHub instead that have an user agent.
IF does not support Python, only PHP, so that’s not an alternative.
The OP can use cURL, they just can’t uses exec() functions.
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.