Re: open_basedir

From: Date: Mon, 22 May 2006 20:38:07 +0000
Subject: Re: open_basedir
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-236673@lists.php.net to get a copy of this message
On Sat, May 20, 2006 3:43 am, Nanu Kalmanovitz wrote: > Using Apache 2, MySQL ver. 4.0.15a, PHP 4.2.3 (NW6.5 sp1 - Netware \ > Novell ). > > I'm developing PHP files with Dreamweaver8 (Adobe-Macromedia). > > Trying to view a file (quote_insert.php) in a browser, it displays at: > > > > http://www.kalmanovitz.co.il/DW8_PHP_MySQL_tutorial/admin/quote_insert.php > > > the following warning \ error: > > Warning: open_basedir restriction in effect. File is in wrong > directory > in Applic:/HTDocs/DW8_PHP/admin/quote_insert.php on line 1 > > Fatal error: Failed opening required '../Connections/seasonAdmin.php' > (include_path='.;sys:/php/includes') in > Applic:/HTDocs/DW8_PHP/admin/quote_insert.php on line 1 > > while line 1 is: > > <?php require_once('../Connections/seasonAdmin.php'); ?> > > > If I'm changing the line 1 to: > > <?php require_once('Connections/seasonAdmin.php'); ?> > > without the ../ characters and copy the quote_insert.php file to > DW8_PHP folder it works OK. > > How can I solved the problem without removing the ../ and moving the > file? Move the file into /php/includes where it belongs. :-) -- Like Music? http://l-i-e.com/artists.htm

« previous php.general (#236673) next »