473,508 Members | 4,751 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

What do you mean by Parse error?

10 New Member
hello every one while executing the code i am getting the following error please help me to figure it out.

Parse error: syntax error, unexpected '.' in C:\xampp\htdocs\Project\shopcart\header.php on line 27 and 33.

Expand|Select|Wrap|Line Numbers
  1. <?php
  2.     session_start();
  3.     if(isset($_SESSION['SESS_CHANGEID']) == TRUE) {
  4.     session_unset();
  5.     session_regenerate_id();
  6.     }
  7.     require("config.php");
  8.     ?>
  9.  
  10.     <?php echo $config_sitename; ?>
  11.     <div id="header"></div>
  12.     <div id="menu">
  13.     <a href="<?php echo $config_basedir; ?>">Home</a> -
  14.  
  15.     <a href="<?php echo $config_basedir;?>showcart.php">View Basket/Checkout</a></div>
  16.     <div id="container">
  17.     <div id="bar">
  18.     <?php
  19.     require("bar.php");
  20.  
  21.     echo "<hr />";
  22.  
  23.     if(isset($_SESSION['SESS_LOGGEDIN']) == TRUE)
  24.  
  25.     {
  26.  
  27.         echo "Logged in as <strong>" .$_SESSION['SESS_USERNAME']. "</strong>[<a href="&quot; .$config_basedir. &quot;logout.php">logout</a>]";
  28.  
  29.     }
  30.  
  31.     else{
  32.  
  33.         echo "<a href="&quot; . $config_basedir . &quot;login.php">Login</a>";
  34.  
  35.     }
  36.  
  37.     ?></div>
  38.     <div id="main">
pls rply....
Apr 16 '13 #1
3 1593
Dormilich
8,658 Recognized Expert Moderator Expert
you prematurely close your strings and hence the syntax is off.
Apr 16 '13 #2
olorioko
1 New Member
pls help me...am using same script but having problem on line 13. it says underfined variables: config_basedir
Oct 24 '14 #3
Dormilich
8,658 Recognized Expert Moderator Expert
then check that this variable is created in config.php.
Oct 24 '14 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

2
1620
by: Stuart Rogers | last post by:
My hosting service uses PHP 4.3.10 and when I run a php script which works perfectly on my local lan linux server on my hosting service I get this error:- Parse error: parse error, unexpected...
1
2472
by: H.L Bai | last post by:
hi, everybody i meet a parse error when i used the xml4c. any proposal is helpful. The error is following .../XMLRegionHandler.h:59 parse error before '*' .../XMLRegionHandler.h:60 parse...
1
2179
by: nednieuws | charles | last post by:
What does this error mean: pg_restore: creating TABLE author pg_restore: creating SEQUENCE author_id pg_restore: could not execute query: ERROR: parser: parse error at or near "BY" at...
2
2332
by: chenboston | last post by:
I am learning STL and write my own simple codes to test the examples. When I compile (g++ -c -o A.o A.C) I got "A.h:13: error: parse error before `<' token". This must be a simple problem, just...
21
2884
by: BWIGLEY | last post by:
Basically I've just started making a game. So far it makes an array 25 by 20 and tries to make five rooms within it. In scr_make_room() there's parse errors: 20 C:\c\Rooms\Untitled1.c parse error...
2
6494
by: cool17 | last post by:
void resultop(int result, int expValue) { string temp; if(result==2)parse error { temp="Unknown"; } else
1
3728
by: Phaelle | last post by:
Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' What does that error mean? I can´t find the mistake!! In another script, I have got another kind of mistake : parse...
2
3207
by: Lawrence Krubner | last post by:
Imagine a template system that works by getting a file, as a string, and then putting it through eval(), something like this: $formAsString = $controller->command("readFileAndReturnString",...
11
2904
by: JRough | last post by:
I'm trying to use output buffering to cheat so i can print to excel which is called later than this header(). header("Content-type: application/xmsdownload"); header("Content-Disposition:...
3
5167
by: brkseven | last post by:
Looking for help with this Contact Form. The error is on line 1, but that' doesn't mean a lot, I think. In fact, a php syntax check passed it, but I was hoping for an easy syntax error, it looks...
0
7332
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7502
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5635
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5057
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3206
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3191
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1565
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
769
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
426
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.