Re: i think i broke require()
| From: | Andrew Brampton | Date: | Wed, 23 Apr 2003 04:10:47 +0000 |
| Subject: | Re: i think i broke require() | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-144948@lists.php.net to get a copy of this message | ||
Yes like Jack Dempsey has allready started your \" is causing the trouble,
but you should also escape all the other \ characters... 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
>
>