Take the 2-minute tour ×  Is there any way to rewrite
codeigniter's Upload.php library because I keep facing
escapeshellarg() has been disabled for security reasons  I've
tried solution in this thread with putting @ in front of
escapeshellarg but still cannont upload my images, thats just
ignore the warning.  I've tried to contact the administrator of
my hosting provide but for security reason they cannot enable
it.  Is there I can do to trick this so i can upload images?
share|improve this question  3 Answers 3  up vote 3 down vote
accepted  You can make your own escapeshellarg, it is a very
simple function that only escapes any single quotes in the given
string and then adds single quotes around it.  function
my_escapeshellarg($input)   $input = str_replace('\'', '\\\'',
$input);    return '\''.$input.'\'';  If your provider has
however disabled other functions that Upload.php requires, you
may be out of luck after all.  You can look up what functions
are disabled by creating a simple .php file with the c