Reply to Re: [PHP] Migration from php4 to php 5 open_basedir directive.

Your name:

Reply:


Posted by Craig Lewis on 03/15/05 00:42

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
>

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация