SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Thread: PHP help

  1. #1
    SitePoint Enthusiast
    Join Date
    Jul 2000
    Posts
    26
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I installed this guestbook PHP script on mysite, on http://www.f2s.com. I chmoded the files correctly. There is a vars.php3 script which has information on colors, fonts, etc. On each php file, it has "require ("vars.php3");" at the top. I went to all of the scripts, http://www.dmcjr.f2s.com/guestbook/guest.php3 At the top, it says "Parse error: parse error in /web/sites/277/airlinedev/www.dmcjr.f2s.com/guestbook/vars.php3 on line 12". I checked vars.php3's line 12, and it read's "$data = 'guestbook.dat';" I have the guestbook.dat in the same folder, and it's chmoded to 777.

    Does anyone know what wrong? Thanks! :-)
    Devin McLean
    http://dreamer.spacecoast.com
    -------------------------

  2. #2
    Dumb PHP codin' cat
    Join Date
    Aug 2000
    Location
    San Diego, CA
    Posts
    5,460
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Does it look exactly like this?
    "$data = 'guestbook.dat';"
    Trying removing the outer quotes like this:
    $data = "guestbook.dat";
    Please don't PM me with questions.
    Use the forums, that is what they are here for.

  3. #3
    SitePoint Enthusiast
    Join Date
    Oct 2000
    Posts
    89
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    check one line before does it have ";" at the end?
    Great Dane
    Gokhan ARLI

  4. #4
    SitePoint Enthusiast
    Join Date
    Jul 2000
    Posts
    26
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks very much. It solved my problem. yes, the line before that had no sigle qoute (') before the semicolin (. Thanks again!
    Devin McLean
    http://dreamer.spacecoast.com
    -------------------------


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •