Forums / General Questions / unexpected T_VARIABLE in /includes/application_top.php on line 1

unexpected T_VARIABLE in /includes/application_top.php on line 1

Locked

Views: 2,489

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
12 Mar 2009, 4:52 AM
#1
lextechs avatar

lextechs

Zen Follower

Join Date:
Mar 2005
Location:
Tempe, AZ
Posts:
316
Plugin Contributions:
0

unexpected T_VARIABLE in /includes/application_top.php on line 1

When i use the code for the /includes/application_top.php, for page https://www.zen-cart.com/tutorials/index.php?article=320

i get the error below, any ideas

Parse error: syntax error, unexpected T_VARIABLE in /home/xxxxxxx/xxxxxxxx/xxxxxxxx/includes/application_top.php on line 1

Lextechs.com Powered By ZenCart

12 Mar 2009, 7:52 PM
#2
tony_sar avatar

tony_sar

Totally Zenned

Join Date:
Jul 2006
Location:
Montreal, Canada
Posts:
2,276
Plugin Contributions:
0

Re: unexpected T_VARIABLE in /includes/application_top.php on line 1

lextechs:

When i use the code for the /includes/application_top.php, for page https://www.zen-cart.com/tutorials/index.php?article=320

i get the error below, any ideas

Parse error: syntax error, unexpected T_VARIABLE in /home/xxxxxxx/xxxxxxxx/xxxxxxxx/includes/application_top.php on line 1

make sure that you don't have space between <? AND php , it should be <?php ( this is opening tag ) , also make sure that you have { and } and neither of them missing in code block .

12 Mar 2009, 8:38 PM
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: unexpected T_VARIABLE in /includes/application_top.php on line 1

I would also suggest that you be sure to put the suggested code someplace AFTER the starting <?php tag in order to be correct syntax.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.