Re: i think i broke require()

From: Date: Wed, 23 Apr 2003 04:11:22 +0000
Subject: Re: i think i broke require()
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-144949@lists.php.net to get a copy of this message
> 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 > > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > >

« previous php.general (#144949) next »