473,748 Members | 2,223 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Parse error - please help

Hey!!

Can anyone please tell me what's wrong with this line. I'm totally lost
:s

Error:
Parse error: parse error, unexpected '.' in
C:\Server\www\4 images\includes \functions.php on line 479

Code:
$thumb = "<a
href=\"".$site_ sess->url(ROOT_PATH. "details.php?". URL_IMAGE_ID."= ".$image_id.((! empty($mode))
? "&amp;mode=".$m ode : ""))."\"
onClick=\"NewWi ndow=window.ope n('{media_src}' ,'NewWindow','t oolbar=no,locat ion=no,director ies=no,status=n o,menubar=no,sc rollbars=yes,re sizable=yes,wid th=\"".
$size[0]; . ",height=" .$size[1];. ",top=0,left=0' );\"
target=\"detail window\">".$thu mb."</a>";
Thank you,

Tina

Oct 31 '06 #1
2 1115
be*****@gmail.c om wrote:
Hey!!

Can anyone please tell me what's wrong with this line. I'm totally
lost :s

Error:
Parse error: parse error, unexpected '.' in
C:\Server\www\4 images\includes \functions.php on line 479

Code:
$thumb = "<a
href=\"".$site_ sess->url(ROOT_PATH. "details.php?". URL_IMAGE_ID."= ".$im
age_id.((!empty ($mode)) ? "&amp;mode=".$m ode : ""))."\"
onClick=\"NewWi ndow=window.ope n('{media_src}' ,'NewWindow','t oolbar=no,
location=no,dir ectories=no,sta tus=no,menubar= no,scrollbars=y es,resizab
le=yes,width=\" ". $size[0]; . ",height=" .$size[1];.
",top=0,left=0' );\" target=\"detail window\">".$thu mb."</a>";
The error is in reference to $size[0] and $size[1], which ends with a
semicolon (marking the end of code line for PHP).

--
Kim André Akerø
- ki******@NOSPAM betadome.com
(remove NOSPAM to contact me directly)
Oct 31 '06 #2
be*****@gmail.c om wrote:
Can anyone please tell me what's wrong with this line. I'm totally lost

Error:
Parse error: parse error, unexpected '.' in
C:\Server\www\4 images\includes \functions.php on line 479

Code:
$thumb = "<a
href=\"".$site_ sess->url(ROOT_PATH. "details.php?". URL_IMAGE_ID."= ".$image_id.((! empty($mode))
? "&amp;mode=".$m ode : ""))."\"
onClick=\"NewWi ndow=window.ope n('{media_src}' ,'NewWindow','t oolbar=no,locat ion=no,director ies=no,status=n o,menubar=no,sc rollbars=yes,re sizable=yes,wid th=\"".
$size[0]; . ",height=" .$size[1];. ",top=0,left=0' );\"
============^

target=\"detail window\">".$thu mb."</a>";
--
I (almost) never check the dodgeit address.
If you *really* need to mail me, use the address in the Reply-To
header with a message in *plain* *text* *without* *attachments*.
Oct 31 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
15062
by: Marten van Urk | last post by:
I got the following error in my page Parse error: parse error, unexpected T_ELSE in line 25 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Club</title> </head> <style type="text/css">
4
1860
by: Paul Beckett | last post by:
Does anyone know how to prevent an error when using DateTime.Parse? I am using it to format the display of dates in my database. However, some dates are empty and so I get an error when I try to run my webpage. Help please!! paul Beckett
2
2052
by: Andrew Ayers | last post by:
All, I am having a problem with an INSERT onto a table I have created. First off, here is the table: --- CREATE TABLE reg ("customer number" SERIAL PRIMARY KEY, "company name" VARCHAR(50) NULL, address VARCHAR(100) NULL, city VARCHAR(50) NULL, state VARCHAR(2) NULL, zip VARCHAR(50) NULL, phone VARCHAR(50) NULL,
7
2919
by: sara | last post by:
Hi to all i have string y; int x=int.parse(y); when i run the application this exeption is trewn /////////////////////////////////////// Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
8
1905
by: Brett Romero | last post by:
I get this error when I try to run my ASP.NET app on our server: Server Error in '/' Application. -------------------------------------------------------------------------------- Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
3
1927
by: deerhide | last post by:
Hi, I was updating my website, well trying to... and I somehow messed it up. I didnt build it, I bought it so I don't know alot about programming. I receive these errors when going to minbiketrader.com : Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/content/m/i/n/minibiketrader/html/index.php on line 2 Parse error: parse error, unexpected T_REQUIRE_ONCE in /home/content/m/i/n/minibiketrader/html/index.php on line...
1
6188
by: maconbot | last post by:
hi all, please exuse my email ">" i am working on location. > hey team, thanks for the quick reply. > > i am trying to parse a pop3 account and populate it into flash. > > the how to code... > http://www.derickrethans.nl/parsing_mail_with_php.php > > - is this the class? i am really confused how to plug this into my
1
3078
by: =?Utf-8?B?YXZucmFv?= | last post by:
We have a web service that gets data in xml format. In that Xml data, we parse few date fields that are in this format <data datefield="12/26/2008" timefield="16:33:45" ...> we parse it into a DateTime field using DateTime.Parse( datefield ).Add( TimeSpan.Parse( timefield ). For some reason, on 26th of this month from 4pm to 5pm, for certain web service calls, the date field was calculated incorrectly. Like a 12/26/2008 16:00:00 would...
2
3242
by: fburn | last post by:
I need some help with an error I'm getting using php 5.2.5 running on linux. I receive an error: Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /var/www/html/inventoryControl/supplier.php on line 26 (line number changed to match code tags) The code is as follows: // get a supplier using the supplier id
0
8983
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9359
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9310
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
8235
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6792
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6072
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4592
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4863
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2206
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.