Fix Error Parse error: parse error, unexpected T_VARIABLE in PHP Problems

Mobile
feeds
Welcome Login | Register

Fix Error Parse error: parse error, unexpected T_VARIABLE in PHP Problems
Reply Your Comments:
Click this button if you are interested in replying to this topic and leave your comments
Sent To Friend
CLick this button if you want to send this page to a friend.
Subsribe To Rss Feeds
Subscribe to RSS
CLick this button if you want to subscribe to this RSS Feed. You can use your browsers feeds burners if you have mozilla or internet explorer 7 or higher and keep up with updates.
  Forums Index
      » Shared Hosting Forums
        » » Fix Error Parse error: parse error, unexpected T_VARIABLE in PHP Problems
Fix Error Parse error: parse error, unexpected T_VARIABLE in PHP Problems
Post Description: fix error parse error parse error unexpected t variable in php problems Shared Hosting
Post Tags:
This Post Has Been Viewed 937 Times Since Thu Jun 07, 2007 11:19 am Author maco with 6 replies
Fix Error Parse error: parse error, unexpected T_VARIABLE in PHP Problems
Advertise On This Page




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?



Update by Admin:

ANSWER:


if you are getting this error, you are most likely missing the ; at the end of the line


Leave Your Comments

Your Name
Your Email Address (Will Not Be Published)
Notify Me When Someone Replies to this Page
(An email will be sent to you when someone replies to your comments)
Your Comments
Include A Picture with your comments
Share
| More
Share this page by putting this URL in your comments to other websites like myspace, Facebook, Twitter friendster, Hi5, Groups, Boards, Forum or others. Just Copy and Paste this Code
URL:
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.
Embed:
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 your Posts and Replies on your forums
BBCODE:
Subscribe Feeds
Webmasters - Exchange Links With Us. Add related websites to this topic
Add Link:
Links Related to : Fix Error Parse error: parse error, unexpected T_VARIABLE in PHP Problems

Comments and replies About Fix Error Parse error: parse error, unexpected T_VARIABLE in PHP Problems
:: 1 :: Reply #5858 Reply By hostman On Thu Jun 07, 2007 11:20 am
hostman:
can you give show me the previous and next 10 lines of your script so i can troubleshoot it...
:: 2 :: Reply #5859 Reply By maco On Thu Jun 07, 2007 11:22 am
maco:
this is how it looks like:

$pagtitle = 'this is my page title'
echo $pagtitle;
if($mac == true) { return false;}
:: 3 :: Reply #5860 Reply By hostman On Thu Jun 07, 2007 11:24 am
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.

:: 4 :: Reply #5861 Reply By maco On Thu Jun 07, 2007 11:24 am
maco:
ok, thanks, that worked.

thanks for your support.
:: 5 :: Reply #65060 Reply By jagadeeshstel On Tue Aug 05, 2008 11:13 pm
jagadeeshstel:
parse error: syntax error, unexpected t_variable in c:\xampp\htdocs\web\testlog.php on line 9
:: 6 :: Reply #127180 Reply By himanshu On Mon Feb 01, 2010 6:20 am
himanshu:
thanks for the help.
Iwant to know "What is mean by t_variable?".