This is a function used to work with command line. So probably the hosting server you are using is blocking it for security reasons.
You will have to ask support to release this function in php.ini or migrate your plan to have the privilege of using this function.
On-site works normally because there are no restrictions on the use of escapeshellarg
in his php.ini
.
Another thing that can be done (depending on your hosting plan) is to remove this function from the list of functions present on the line where you are disabled_functions
in the php.ini
.
There seems to be another possibility: If php is running in safe mode
, these functions that working with processes and command line are disabled.
I removed the tag
codeigniter
because it is not the framework problem, ok?– Wallace Maxters
Okay yes! Thank you so much @Wallacemaxters
– Sr. André Baill