Author Topic: I made my site sad and I don't know how to fix it :(  (Read 9859 times)

0 Members and 1 Guest are viewing this topic.

robynie

  • Full Member
  • ***
  • Posts: 131
    • View Profile
    • http://www.robynie.com
I made my site sad and I don't know how to fix it :(
« 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!

Databits

  • Global Moderator
  • *****
  • Posts: 1,607
  • Programming's not just a science, it's an art.
    • View Profile
I made my site sad and I don't know how to fix it :(
« Reply #1 on: December 08, 2005, 12:53:24 pm »
Look at that line of code. Probably missing a quote, semi colon, or bracket somewhere.
(\_/)    ~Relakuyae D'Selemae
(o.O)    
(")_(")  [Libre Office] [Chrome]

robynie

  • Full Member
  • ***
  • Posts: 131
    • View Profile
    • http://www.robynie.com
I made my site sad and I don't know how to fix it :(
« Reply #2 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*

Databits

  • Global Moderator
  • *****
  • Posts: 1,607
  • Programming's not just a science, it's an art.
    • View Profile
I made my site sad and I don't know how to fix it :(
« Reply #3 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 "";
?>
(\_/)    ~Relakuyae D'Selemae
(o.O)    
(")_(")  [Libre Office] [Chrome]

robynie

  • Full Member
  • ***
  • Posts: 131
    • View Profile
    • http://www.robynie.com
I made my site sad and I don't know how to fix it :(
« Reply #4 on: December 11, 2005, 08:17:45 pm »
Oh, ok.

Thanks  ^__^