Got a problem with Slashes on my CMS
| From: | Phil Mellor | Date: | Thu, 08 Jul 2004 15:05:53 +0000 |
| Subject: | Got a problem with Slashes on my CMS | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-190040@lists.php.net to get a copy of this message | ||
Hello world!
Please help! I have a CMS built which I have a problem with and I don't know
if it's a coding error or a bug, but any suggestions would be welcome!
My CMS pulls information from MySQL database with slashes. On one particular
content module I have a problem! I'm trying to 'require' a module stored on
disk, sometimes it works and othertimes it produces the following error:
Parse error: parse error, expecting
','' or ';'' in
/home/sites/site8/web/cmp/generatePage.php(565) : eval()'d code on line 45
If I echo the statement which is supposed to be eval'ed and compare it to
when it works, the only difference is that the working one includes slashes
(this makes sense as I'm stripping slashes from the DB result to make it
work!).
Anyone got any idea how I work around this issue? I can't add or
stripslashes from the file on disk, because then it fails because of the
same intermittant error!
Thanks in advance,
Phil Mellor