1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

PHP Parse Error

Discussion in 'BlackHat Lounge' started by nam6641, Nov 21, 2008.

  1. nam6641

    nam6641 Supreme Member

    Joined:
    Nov 15, 2008
    Messages:
    1,476
    Likes Received:
    914
    Location:
    East Coast
    if anyone is decent with php can you tell me why i'm getting an error with this string:

    <?php



    {



    echo "<meta http-equiv="refresh" content="0;url=http://www.wtfsuck.com/url2.php">";



    }

    and the error is: Parse error: syntax error, unexpected T_STRING, expecting ',' or ';'
     
  2. mic141414

    mic141414 Regular Member

    Joined:
    Jul 3, 2008
    Messages:
    344
    Likes Received:
    117
    Location:
    USA
    Home Page:
    Hi

    I have same problem. I have been able to fix url1 and url2 (but haven't found the fix for url3)

    I tried to put code here but the code is messed up I will send you a PM
     
    Last edited: Nov 21, 2008
  3. nam6641

    nam6641 Supreme Member

    Joined:
    Nov 15, 2008
    Messages:
    1,476
    Likes Received:
    914
    Location:
    East Coast
  4. thedorf

    thedorf Senior Member

    Joined:
    Oct 1, 2008
    Messages:
    1,193
    Likes Received:
    700
    Occupation:
    what? I gotta have a job?
    Location:
    BHW - Where else?
    echo "<meta http-equiv="refresh" content="0;url=http://www.wtfsuck.com/url2.php">";

    change it to:

    echo "<meta http-equiv='refresh' content='0;url=http://www.wtfsuck.com/url2.php'>";

    the double quotes inside the double quotes are ending the double quotes early
    so use single quotes inside the double quotes [someone finish this as a Dr. Suess rhyme]
     
    • Thanks Thanks x 1
  5. nam6641

    nam6641 Supreme Member

    Joined:
    Nov 15, 2008
    Messages:
    1,476
    Likes Received:
    914
    Location:
    East Coast
    thanks for that, any idea about the last page, url3? there is no error displaying but also none of the ads are displaying:

    Code:
    <?php
    //Add as many links you want
    $mylink[] = '<iframe src="http://easybidnow.com/dating.html" height="700px" width="100%"></iframe>
    ';
    $mylink[] = '<iframe src="http://ads.shoppingads.com/pagead/link_8b18ba33825a493464f3_default_www.ebay.com" height="700px" width="100%"></iframe>
    ';
    $mylink[] = '<iframe src="http://clickcashv2.webpower.com/Refer.dll?Acct=porngame&SVC=IF&art=pID_7127&pTemplateID=7127&pCustomTemplateID=0&url=http://www.iFriendsv2.net/ifpage.dll?t=Site/Sitehome&pSiteCode=iFriendsV2
    
    " height="700px" width="100%"></iframe>
    ';
    
    
    
    // this will display the random link
    echo $mylink[array_rand($mylink)];
    ?>
     
  6. thedorf

    thedorf Senior Member

    Joined:
    Oct 1, 2008
    Messages:
    1,193
    Likes Received:
    700
    Occupation:
    what? I gotta have a job?
    Location:
    BHW - Where else?
    Does something like this work (removed the array) for each iframe? Gotta debug...

    Code:
    <?php
    $mylink = '<iframe src="http://easybidnow.com/dating.html" height="700px" width="100%"></iframe>';
    
    // this will display the random link
    echo $mylink;
    ?>
     
  7. nam6641

    nam6641 Supreme Member

    Joined:
    Nov 15, 2008
    Messages:
    1,476
    Likes Received:
    914
    Location:
    East Coast
    yes, actually this works, i've identified the error, it is in the way i'm linking to url1.php in the original webpage (not sure if i'm making an error or the script has an error)....
     
  8. thanhclix

    thanhclix Power Member

    Joined:
    Oct 25, 2008
    Messages:
    646
    Likes Received:
    176
    The code must be like this
    Code:
    <?php
    {
    echo "<meta http-equiv="refresh" content='0;url=http://www.wtfsuck.com/url2.php'>";
    }