Re: Migration from php4 to php 5 open_basedir directive.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 






The files in question are 'within' the open_basedir directive.

To explain further/better

within virtualhost,
php_admin_value open_basedir /www/htdocs/midwifefinder.com/site

and...

/www/htdocs/midwifefinder.com/site/index.php contains
=======
<?php
require_once("includes/app.php");
========
which is /www/htdocs/midwifefinder.com/site/includes/app.php and this file contains....


===========
<?php
// base includes, don't change
require_once('config/_config.inc.php'); // config
===========
which is /www/htdocs/midwifefinder.com/site/includes/config/_config.inc.php

but I have tried this with simple file names and a simpler structure, the contents of add.php is
parsed, and the contents of config/_config.php is never parsed.



why not just add the necessary directories to the open_basedir setting
(I'm guessing it can take multiple dirs because the error says 'allowed path(s)')?
e.g.:
/usr/local/pkg/php/php-5.0.2//lib/php/config/_config.inc.php



-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux