parse error on line 12 - using fwrite to replace XML file

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Storm
Forum Newbie
Posts: 11
Joined: Tue Aug 31, 2004 12:30 am

parse error on line 12 - using fwrite to replace XML file

Post by Storm »

Hi guys/gals,

I am using Flash/PHP/XML to set up a dynamic scoreboard system. The .swf grabs data from the XML file. There is an admin .swf that the user at the game changes and submits to PHP. The problem I am having is in the PHP. I get:

Parse error: parse error in updatescore.php on line 12

edited:
I'm just kind of dumb anyway because I never had Register Globals set to ON within my test server and nothing worked. Now it's ALL good. Thanks for the escape tip.
Last edited by Storm on Tue Feb 01, 2005 4:58 pm, edited 2 times in total.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

you are trying to add double quotes to a double quoted string, this isn't possible without escaping them.:

Code: Select all

$blah = "to show a "shape" of a circle you...";
Storm
Forum Newbie
Posts: 11
Joined: Tue Aug 31, 2004 12:30 am

Post by Storm »

thanks......
Post Reply