Fri Feb 29, 2008 12:01 pm - Fix Error Parse error: parse error, unexpected T_VARIABLE in PHP Problems
#641
Fix Error Parse error: parse error, unexpected T_VARIABLE in PHP Problems
can you tell me why i m getting this error on my php script that i am making. i have web hosting with www.webune.com and i don't know why i am getting this error, does it have to do with the server or is it me?
author: maco
Share
Share this post by copy and paste this URL and put it on your forums or use it on your profile like myspace, friendster, Facebook, Twitter or others and add in with your comments.
Use this HTML code to embed this topic, just copy the code from the "Embed" box. Once you've copied the code, just paste it into your website or blog to embed it.
BBCODE is use on forums. You can put this code on all your BBCODE enabled forums like PhpBB, vBulletin® and others. Just Copy and Paste this code on with Posts and Replies on your forums
Thu Jun 07, 2007 11:20 am - Re: Fix Error Parse error: parse error, unexpected T_VARIABLE in PHP Problems
#796
hostman
can you give show me the previous and next 10 lines of your script so i can troubleshoot it...
Thu Jun 07, 2007 11:22 am - Re: Fix Error Parse error: parse error, unexpected T_VARIABLE in PHP Problems
#797
maco
this is how it looks like:
$pagtitle = 'this is my page title'
echo $pagtitle;
if($mac == true) { return false;}
Thu Jun 07, 2007 11:24 am - Re: Fix Error Parse error: parse error, unexpected T_VARIABLE in PHP Problems
#798
hostman
can you see the problem...
look at the line where it says:
$pagtitle = 'this is my page title'
you need to end your line with a semicolon (;)
so your line should look like this:
$pagtitle = 'this is my page title';
its not the server or the service. webune is known to have a really good service.
Thu Jun 07, 2007 11:24 am - Re: Fix Error Parse error: parse error, unexpected T_VARIABLE in PHP Problems
#799
maco
ok, thanks, that worked.
thanks for your support.