PHP Parse Error

nam6641

Supreme Member
Joined
Nov 15, 2008
Messages
1,470
Reaction score
926
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 ';'
 
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:
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 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)];
?>
 
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;
?>
 
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)....
 
<?php
{
echo "<meta http-equiv="refresh" content="0;url=http://www.wtfsuck.com/url2.php">";
}
The code must be like this
Code:
<?php
{
echo "<meta http-equiv="refresh" content='0;url=http://www.wtfsuck.com/url2.php'>";
}
 
Back
Top