wamp keeps breaking my backup files
Posted by: h4lp (---.virtua.com.br)
Date: July 20, 2009 10:45PM

so, i have a website running perfectly on a server, i exported my database and downloaded everything in a directory inside wamp's www folder and it keeps giving me these php syntax errors that just don't exist!

things like
$adm=$_REQUEST[adm];

will only work if i write
$adm=$_REQUEST['adm'];

that's a simple solution but it totally sucks when i have over 100 files to look over and add single quotes

why is it that it works ANYWHERE on servers online but wamp keeps seeing errors? is it a configuration problem?


thanks to anyone who can help! :]

Options: ReplyQuote
Re: wamp keeps breaking my backup files
Posted by: stevenmartin99 (---.b-ras2.blp.dublin.eircom.net)
Date: July 21, 2009 12:10AM

the first piece of code is incorrect. u need '' around it

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote
Re: wamp keeps breaking my backup files
Posted by: c2dan (---.15-1.cable.virginmedia.com)
Date: July 21, 2009 06:38PM

Because you are using improper syntax.

You dont see these errors on your website because your host disables errors. However if you turned errors on it will display the exact same errors as wamp.

You should always wrap array keys within quotes. Otherwise PHP will think you're using a constant. It will throw a notice error because it cannot find the constant. However PHP is smart enough to correct you.

You can disabled notices on WAMP if you like. But you are encouraged to fix the notices.

Options: ReplyQuote


Sorry, only registered users may post in this forum.