no way to compare when less than two revisions

Differences

This shows you the differences between two versions of the page.


php [2015/10/19 15:16] (current) – created - external edit 127.0.0.1
Line 1: Line 1:
 +====== PHP ======
  
 +  * [[PHP Configuration]]
 +  * [[PHP CGI]]
 +  * [[PHP Install From Source]]
 +  * [[PHP Optimization]]
 +  * [[PHP Security]]
 +  * [[PHP Unicode]]
 +  * [[Apache Worker MPM PHP CGI Suexec Setup]]
 +  * [[CentOS PHP]]
 +  * [[OpenBSD PHP]]
 +  * [[php-config]]
 +
 +  * [[http://www.php.net/manual/en/extensions.membership.php|PHP Extensions]]
 +  * [[http://www.php.net/manual/en/migration54.php|Migrating from PHP 5.3 to PHP 5.4]]
 +  * [[http://www.php.net/manual/en/configure.about.php|List of core configure options]]
 +  * [[http://www.php.net/manual/en/configuration.php|Runtime configuration]]
 +  * [[http://www.php.net/manual/en/ini.list.php|List of php.ini directives]]
 +  * [[http://www.php.net/manual/en/ini.sections.php|List of php.ini sections]] - Very cool!
 +
 +==== Gotchas ====
 +
 +=== open_basedir and CURLOPT_FOLLOWLOCATION ===
 +
 +  * [[http://www.php.net/ChangeLog-4.php#4.4.4|PHP 4.4.4 Changelog]]
 +  * [[http://au.php.net/manual/ro/function.curl-setopt.php#71313|similiar problem, workaround]]
 +
 +This error appears in the PHP log:
 +
 +<code>
 +PHP Warning:  curl_setopt() [<a href='function.curl-setopt'>function.curl-setopt</a>]: CURLOPT_FOLLOWLOCATION cannot be activated when safe_mode is enabled or an open_basedir is set in /var/foo/bar.php on line 123
 +</code>
 +
 +Updating open_basedir to include the directory won't work, because the curl option ''CURLOPT_FOLLOWLOCATION'' is disabled by PHP when ''open_basedir'' is set.
 +
 +The purpose for this not working is that curl will follow a result with a header pointing to another location, which creates the option of directory traversal outside of the limited basedir.
 +
 +This change was introduced in PHP 4.4.4.

Navigation
QR Code
QR Code php (generated for current page)