need help with php file

Discussion in 'PHP' started by coolal, Feb 3, 2010.

  1. #1
    Hi i have a site www.thefreebiefreak.com and i had to change the site in the privacy.php on the bottom and when i did that i saved it but for some reason there was an error when i checked it on my site. the error is:


    Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/coolal/public_html/privacy.php on line 1



    please help me. how do i fix it. i can send you the whole privacy to look at it
     
    coolal, Feb 3, 2010 IP
  2. antisocial

    antisocial Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I can take a look at it for you, just post the first 10 lines of the file. Since the error is at Line 1 I can probably tell you pretty quick.
     
    antisocial, Feb 3, 2010 IP
  3. danx10

    danx10 Peon

    Messages:
    1,179
    Likes Received:
    44
    Best Answers:
    2
    Trophy Points:
    0
    #3
    You probably, have a missing concatenation operator in one of your strings, you have forgot to add a semi-colon on the end of a line or you have mismatched quotes.

    Post your code here within code tags.
     
    danx10, Feb 3, 2010 IP
  4. bitist

    bitist Peon

    Messages:
    28
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    The error means there is a missing concatenation operation, most probably a dot.
    Eg.
    
    $test = "String1";
    echo $test "String2";
    
    PHP:
    There have to be a dot between the variable $test and the "String2".
    Correct code is:
    
    $test = "String1";
    echo $test . "String2";
    
    PHP:
     
    bitist, Feb 4, 2010 IP
  5. coolal

    coolal Peon

    Messages:
    138
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    here is the first 10 lines.

     
    coolal, Feb 4, 2010 IP
  6. bitist

    bitist Peon

    Messages:
    28
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #6
    The code is unreadable.
    When you post your code use the icon from the posting editor: "Wrap PHP tags around selected text" and add your code inside that.
     
    bitist, Feb 4, 2010 IP
  7. beacon

    beacon Peon

    Messages:
    93
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #7
    <?phpdefine should be <?php define
     
    beacon, Feb 4, 2010 IP
  8. danx10

    danx10 Peon

    Messages:
    1,179
    Likes Received:
    44
    Best Answers:
    2
    Trophy Points:
    0
    #8
    <?php
      define('IN_RAFS', true);
      include 'includes/header.php';
    ?> <tr> <td width="10%"> </td> <td width="80%" class="box"> <center> <B>Privacy Policy</B> </center> </td> <td width="10%"> </td> </tr> <tr> <td colspan="3"> <br /> </td> </tr> <tr> <td width="10%"> </td> <td width="80%" class="box"> <!-- START --> <p><br> <b>thefreebiefreak.com</b> <b>Privacy Statement</b></p> <p></p> <p>thefreebiefreak.com/We are committed to providing both clients and end-users with the utmost in privacy and security. We abide by all industry guidelines and consistently monitor our management and operating methods in order to maintain our valued reputation and integrity. This is our promise to our clients, and end-users. </p> <p><b>Type of Information Collected</b><br> thefreebiefreak.com is a site offering free products. Each offer is sponsored by one of our advertisers.
    PHP:
     
    danx10, Feb 4, 2010 IP