Xepher.Net Forums

Xepher.net => Technical Support => Topic started by: robynie on December 08, 2005, 04:26:26 AM

Title: I made my site sad and I don't know how to fix it :(
Post by: robynie on December 08, 2005, 04:26:26 AM
I made a new layout for my site and I uploaded it, but when I fixed the permissions for my index.php file with my FTP client, it didn't seem to have any effect (same server 500 error or whatnot).  So I used the fix file permissions tool, and now it displays this:

Parse error: parse error, unexpected T_STRING in /home/robynie/public_html/index.php on line 1

I don't know what that means!  :(  I tried reuploading and fixing the permissions both ways again, to the same result.

Please help!
Title: I made my site sad and I don't know how to fix it :(
Post by: Databits on December 08, 2005, 12:53:24 PM
Look at that line of code. Probably missing a quote, semi colon, or bracket somewhere.
Title: I made my site sad and I don't know how to fix it :(
Post by: robynie on December 09, 2005, 05:49:20 PM
My first line is the xml mabob:



I don't see anything wrong with that?

But I just deleted that whole line and it works now. *shrug*
Title: I made my site sad and I don't know how to fix it :(
Post by: Databits on December 11, 2005, 08:08:22 PM
That's because in php the and ?> tags have special meaning. It's breaking because it's interpreting the ?> section of the xml tag as a php script end tag.

To add that line correctly into php code you'll need to put it in an echo or print statement within the PHP itself before any html code.

Something like:

  echo "";
?>
Title: I made my site sad and I don't know how to fix it :(
Post by: robynie on December 11, 2005, 08:17:45 PM
Oh, ok.

Thanks  ^__^