curl - php replacement for safe_mode -
I am new to learning PHP and so I have installed the latest version (5.3.3) and have written some code I have participated in this error:
PHP warning: curl_setopt () [function.curl-setopt]: CURLOPT_FOLLOWLOCATION can not be activated when security_mode is enabled or an open_basedir C: \ Rush \ Dev \ personal \ Numina.Framework \ Development \ PHP Library \ Numina.Framework \ clsHttpUtil.php on line 47
When I look at the document for safe_mode it tells me that Y Like why was not like it and I can do to fix this error?
safe_mode
were good intentions, but it was unevenly implemented It was disliked because it caused more problems than the solution, and there was no general security solution.
You can correct your error by closing safe_mode
, and now better (such as the Fastcgi, Suxack, Crites, Jail, VPSS ...) applications get better protection There are ways. Do not consider your code to believe that its use or clutter Please note that safe_mode is removed as PHP 5.4.0 < / Em>
Here's a problem when the Safe_mode
or open_basedir
is in effect. Why can safe_mode
be removed completely from PHP.
Comments
Post a Comment