Re: i think i broke require()

From: Date: Wed, 23 Apr 2003 04:23:09 +0000
Subject: Re: i think i broke require()
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-144950@lists.php.net to get a copy of this message
Yup you could just write $path='c:\program files\abria merlin\apache\htdocs\lib\conf\'; Andrew ----- Original Message ----- From: "Daniel R. Anderson" <dan@mathjunkies.com> To: "Andrew Brampton" <andrew@bramp.freeserve.co.uk> Cc: "Prince" <friendly@kaltelnet.net>; <php-general@lists.php.net> Sent: Wednesday, April 23, 2003 5:11 AM Subject: Re: [PHP] i think i broke require() > > > but you should also escape all the other \ characters... > > Couldn't he just use 's so there is no escaping required? > > -Dan > > > so the final code > > looks like: > > $path="c:\\program files\\abria merlin\\apache\\htdocs\\lib\\conf\\"; > > > > Or you could just use /s instead since windows understands those. > > > > Andrew > > ----- Original Message ----- > > From: "Prince" <friendly@kaltelnet.net> > > To: "PHP mailing list" <php-general@lists.php.net> > > Sent: Wednesday, April 23, 2003 5:01 AM > > Subject: [PHP] i think i broke require() > > > > > > > hi... > > > i think i broke require() because it doesnt work in my scripts for some > > > reason... here is the code: > > > $path="c:\program files\abria merlin\apache\htdocs\lib\conf\"; > > > require($path."db.set");//windows only > > > here is the answer to the web page: > > > Parse error: parse error in c:\program files\abria > > > merlin\apache\htdocs\lib\db\db.lib on line 6 > > > > > > Fatal error: Cannot instantiate non-existent class: db in c:\program > > > files\abria merlin\apache\htdocs\index.php on line 3 > > >

« previous php.general (#144950) next »