473,586 Members | 2,707 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\shopca rt\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 1596
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
1626
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 T_STRING, expecting ')' in /home/fhlinux199/s/user/htdocs/graph_all.php on line 1114 When I look at the file I can find nothing wrong, as I say on...
1
2492
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 error before '*'
1
2188
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 character 144 pg_restore: *** aborted because of error The line in question is:
2
2340
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 that I cannot see it. Please, anyone help me to figure it out? Thanks. // A.h class A { public: A(); int getA();
21
2905
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 before "top_x" 28 C:\c\Rooms\Untitled1.c parse error before "first_square_x" 35 C:\c\Rooms\Untitled1.c parse error before '}' token Why are...
2
6503
by: cool17 | last post by:
void resultop(int result, int expValue) { string temp; if(result==2)parse error { temp="Unknown"; } else
1
3735
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 error: parse error at .. line (and it is always on the last line!) Thanks for your help Raphaelle
2
3211
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", $formName); // 06-22-07 - the next commands try to import all the functions that the
11
2921
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: attachment; header("Pragma: no-cache"); header("Expires; 0"); print "$header\n$data";
3
5184
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 more complicated now. Anyway, here's the error: "Parse error: syntax error, unexpected T_VARIABLE in...
0
7912
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
8202
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8338
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7959
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
8216
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6614
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5710
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5390
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3865
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.