Escapeshellarg() error

Asked

Viewed 92 times

2

When I try to upload, the following error appears:

A PHP Error was encountered
Severity: Warning
Message: escapeshellarg() has been disabled for security reasons

I’m using the framework CodeIgniter.

How could I resolve this error? No localhost works perfectly.

  • 1

    I removed the tag codeigniter because it is not the framework problem, ok?

  • Okay yes! Thank you so much @Wallacemaxters

1 answer

0


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.

  • Ok, I had already asked the server to unlock this function. I will wait to retain. I thank you very much.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.