Re: i think i broke require()
| From: | Greg Beaver | Date: | Wed, 23 Apr 2003 04:51:36 +0000 |
| Subject: | Re: i think i broke require() | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-144953@lists.php.net to get a copy of this message | ||
Hi,
escaping of \ is always required.
$var = 'this wouldn\'t be possible otherwise';
Greg
--
phpDocumentor
http://www.phpdoc.org
Daniel R. Anderson wrote:
but you should also escape all the other \ characters...Couldn't he just use 's so there is no escaping required? -Danso 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