473,799 Members | 3,061 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Parsing error

What does this mean?

[client 134.205.2.139] PHP Parse error: parse error, unexpected
T_CONSTANT_ENC\
APSED_STRING in /home/web/david/processedorder. php on line 23,
referer: http://\
degroot.xidus.n et/

May 11 '07 #1
9 1555
On May 11, 10:08 am, dave.degr...@gm ail.com wrote:
What does this mean?

[client 134.205.2.139] PHP Parse error: parse error, unexpected
T_CONSTANT_ENC\
APSED_STRING in /home/web/david/processedorder. php on line 23,
referer: http://\
degroot.xidus.n et/
What's on line 23 (and the lines around it)? Probably has something
to do with your quotes.

May 11 '07 #2
On May 11, 10:13 am, ZeldorBlat <zeldorb...@gma il.comwrote:
On May 11, 10:08 am, dave.degr...@gm ail.com wrote:
What does this mean?
[client 134.205.2.139] PHP Parse error: parse error, unexpected
T_CONSTANT_ENC\
APSED_STRING in /home/web/david/processedorder. php on line 23,
referer: http://\
degroot.xidus.n et/

What's on line 23 (and the lines around it)? Probably has something
to do with your quotes.
Zedor thanks for the quick response... Line 23 is the 'Customer
address" line:

$toaddress = 'd***********@g mail.com';
$subject = 'autoparts order';
$mailcontent = 'Customer name: '.$name." \n"
'Customer address: '.$address." \n"
'Thermostats Ordered: '.$thermostqty2 ." \n"
'Sparkplugs Ordered: '.$spkplgqnt." \n"
'Tyers Ordered: '.$tireqnt." \n"
$fromaddress = 'From: no*****@degroot .xidus.net';
mail($toaddress , $subject, $mailcontent, $fromaddress);

May 11 '07 #3
On May 11, 10:16 am, dave.degr...@gm ail.com wrote:
On May 11, 10:13 am, ZeldorBlat <zeldorb...@gma il.comwrote:
On May 11, 10:08 am, dave.degr...@gm ail.com wrote:
What does this mean?
[client 134.205.2.139] PHP Parse error: parse error, unexpected
T_CONSTANT_ENC\
APSED_STRING in /home/web/david/processedorder. php on line 23,
referer: http://\
degroot.xidus.n et/
What's on line 23 (and the lines around it)? Probably has something
to do with your quotes.

Zedor thanks for the quick response... Line 23 is the 'Customer
address" line:

$toaddress = 'dave.degr...@g mail.com';
$subject = 'autoparts order';
$mailcontent = 'Customer name: '.$name." \n"
'Customer address: '.$address." \n"
'Thermostats Ordered: '.$thermostqty2 ." \n"
'Sparkplugs Ordered: '.$spkplgqnt." \n"
'Tyers Ordered: '.$tireqnt." \n"
$fromaddress = 'From: nore...@degroot .xidus.net';
mail($toaddress , $subject, $mailcontent, $fromaddress);
You're missing a semi-colon after your "Tyers Ordered" line.

May 11 '07 #4
On May 11, 10:16 am, dave.degr...@gm ail.com wrote:
On May 11, 10:13 am, ZeldorBlat <zeldorb...@gma il.comwrote:
On May 11, 10:08 am, dave.degr...@gm ail.com wrote:
What does this mean?
[client 134.205.2.139] PHP Parse error: parse error, unexpected
T_CONSTANT_ENC\
APSED_STRING in /home/web/david/processedorder. php on line 23,
referer: http://\
degroot.xidus.n et/
What's on line 23 (and the lines around it)? Probably has something
to do with your quotes.

Zedor thanks for the quick response... Line 23 is the 'Customer
address" line:

$toaddress = 'dave.degr...@g mail.com';
$subject = 'autoparts order';
$mailcontent = 'Customer name: '.$name." \n"
'Customer address: '.$address." \n"
'Thermostats Ordered: '.$thermostqty2 ." \n"
'Sparkplugs Ordered: '.$spkplgqnt." \n"
'Tyers Ordered: '.$tireqnt." \n"
$fromaddress = 'From: nore...@degroot .xidus.net';
mail($toaddress , $subject, $mailcontent, $fromaddress);
Actually, I spoke too soon. You are missing a semi-colon after your
"Tyers Ordered" line, but you also need some more concatenation
operators (after each of your \n's). So something like this:

$mailcontent = 'Customer name: '.$name." \n" .
'Customer address: '.$address." \n" .
'Thermostats Ordered: '.
$thermostqty2." \n" .
'Sparkplugs Ordered: '.$spkplgqnt."
\n" .
'Tyers Ordered: '.$tireqnt." \n";

May 11 '07 #5
..oO(ZeldorBlat )
>Zedor thanks for the quick response... Line 23 is the 'Customer
address" line:

$toaddress = 'dave.degr...@g mail.com';
$subject = 'autoparts order';
$mailcontent = 'Customer name: '.$name." \n"
'Customer address: '.$address." \n"
'Thermostats Ordered: '.$thermostqty2 ." \n"
'Sparkplugs Ordered: '.$spkplgqnt." \n"
'Tyers Ordered: '.$tireqnt." \n"
$fromaddress = 'From: nore...@degroot .xidus.net';
mail($toaddres s, $subject, $mailcontent, $fromaddress);

You're missing a semi-colon after your "Tyers Ordered" line.
Additionally the strings are not concatenated, that's why PHP complains
about line 23.

Micha
May 11 '07 #6
On May 11, 10:19 am, ZeldorBlat <zeldorb...@gma il.comwrote:
On May 11, 10:16 am, dave.degr...@gm ail.com wrote:


On May 11, 10:13 am, ZeldorBlat <zeldorb...@gma il.comwrote:
On May 11, 10:08 am, dave.degr...@gm ail.com wrote:
What does this mean?
[client 134.205.2.139] PHP Parse error: parse error, unexpected
T_CONSTANT_ENC\
APSED_STRING in /home/web/david/processedorder. php on line 23,
referer: http://\
degroot.xidus.n et/
What's on line 23 (and the lines around it)? Probably has something
to do with your quotes.
Zedor thanks for the quick response... Line 23 is the 'Customer
address" line:
$toaddress = 'dave.degr...@g mail.com';
$subject = 'autoparts order';
$mailcontent = 'Customer name: '.$name." \n"
'Customer address: '.$address." \n"
'Thermostats Ordered: '.$thermostqty2 ." \n"
'Sparkplugs Ordered: '.$spkplgqnt." \n"
'Tyers Ordered: '.$tireqnt." \n"
$fromaddress = 'From: nore...@degroot .xidus.net';
mail($toaddress , $subject, $mailcontent, $fromaddress);

You're missing a semi-colon after your "Tyers Ordered" line.- Hide quoted text -

- Show quoted text -
Hmm, I've just changed this and it still doesn't work the way that I
would like...

see http://degroot.xidus.net

<?php
//create short variable names
$tireqnt = $_POST['tireqnt'];
$spkplgqnt = $_POST['spkplgqnt'];
$thermostqty2 = $_POST['thermostqty2'];
$address = $_POST['address'];
$name = $_POST['name'];

$toaddress = 'd***********@g mail.com';
$subject = 'autoparts order';
$mailcontent = 'Customer name: '.$name." \n"
'Customer address: '.$address." \n"
'Thermostats Ordered: '.$thermostqty2 ." \n"
'Sparkplugs Ordered: '.$spkplgqnt." \n"
'Tyers Ordered: '.$tireqnt." \n";
$fromaddress = 'From: no*****@degroot .xidus.net';
mail($toaddress , $subject, $mailcontent, $fromaddress);

echo '<p>Order processed at ';
echo date('H:i, jS F');
echo' Pacific standard Time</p>';

echo'<p>Your order is as follows: </p>';
echo $tireqnt. ' tires<br />';
echo $thermostqty2. ' thermostats<br />';
echo $spkplgqnt. ' spark plugs<br />';
$totalqty = 0;
$totalqty = $tireqnt + thermostqty2 + $spkplgqnt;
echo 'Items ordered: '.$totalqty.'<b r />';

$totalamount = 0.00;

define('TIREPRI CE', 100);
define('THERMOS TAT', 10);
define('SPARKPR ICE', 4);
$totalamount = $tireqnt * TIREPRICE
+ $thermostqty2 * THERMOSTAT
+ $spkplgqnt * SPARKPRICE;

echo 'Subtotal: $'.number_forma t($totalamount, 2).'<br />';

$taxrate = .10; // local sales tax is 10%;
$totalamount = $totalamount * (1 + $taxrate);
echo 'Total including tax: $'.number_forma t($totalamount, 2).'<br />';

if( $totalqty == 0 )
echo 'You did not order anything on the previous page!<br />';
?>

May 11 '07 #7
On May 11, 10:23 am, dave.degr...@gm ail.com wrote:
On May 11, 10:19 am, ZeldorBlat <zeldorb...@gma il.comwrote:


On May 11, 10:16 am, dave.degr...@gm ail.com wrote:
On May 11, 10:13 am, ZeldorBlat <zeldorb...@gma il.comwrote:
On May 11, 10:08 am, dave.degr...@gm ail.com wrote:
What does this mean?
[client 134.205.2.139] PHP Parse error: parse error, unexpected
T_CONSTANT_ENC\
APSED_STRING in /home/web/david/processedorder. php on line 23,
referer: http://\
degroot.xidus.n et/
What's on line 23 (and the lines around it)? Probably has something
to do with your quotes.
Zedor thanks for the quick response... Line 23 is the 'Customer
address" line:
$toaddress = 'dave.degr...@g mail.com';
$subject = 'autoparts order';
$mailcontent = 'Customer name: '.$name." \n"
'Customer address: '.$address." \n"
'Thermostats Ordered: '.$thermostqty2 ." \n"
'Sparkplugs Ordered: '.$spkplgqnt." \n"
'Tyers Ordered: '.$tireqnt." \n"
$fromaddress = 'From: nore...@degroot .xidus.net';
mail($toaddress , $subject, $mailcontent, $fromaddress);
You're missing a semi-colon after your "Tyers Ordered" line.- Hide quoted text -
- Show quoted text -

Hmm, I've just changed this and it still doesn't work the way that I
would like...

seehttp://degroot.xidus.n et

<?php
//create short variable names
$tireqnt = $_POST['tireqnt'];
$spkplgqnt = $_POST['spkplgqnt'];
$thermostqty2 = $_POST['thermostqty2'];
$address = $_POST['address'];
$name = $_POST['name'];

$toaddress = 'dave.degr...@g mail.com';
$subject = 'autoparts order';
$mailcontent = 'Customer name: '.$name." \n"
'Customer address: '.$address." \n"
'Thermostats Ordered: '.$thermostqty2 ." \n"
'Sparkplugs Ordered: '.$spkplgqnt." \n"
'Tyers Ordered: '.$tireqnt." \n";
$fromaddress = 'From: nore...@degroot .xidus.net';
mail($toaddress , $subject, $mailcontent, $fromaddress);

echo '<p>Order processed at ';
echo date('H:i, jS F');
echo' Pacific standard Time</p>';

echo'<p>Your order is as follows: </p>';
echo $tireqnt. ' tires<br />';
echo $thermostqty2. ' thermostats<br />';
echo $spkplgqnt. ' spark plugs<br />';
$totalqty = 0;
$totalqty = $tireqnt + thermostqty2 + $spkplgqnt;
echo 'Items ordered: '.$totalqty.'<b r />';

$totalamount = 0.00;

define('TIREPRI CE', 100);
define('THERMOS TAT', 10);
define('SPARKPR ICE', 4);
$totalamount = $tireqnt * TIREPRICE
+ $thermostqty2 * THERMOSTAT
+ $spkplgqnt * SPARKPRICE;

echo 'Subtotal: $'.number_forma t($totalamount, 2).'<br />';

$taxrate = .10; // local sales tax is 10%;
$totalamount = $totalamount * (1 + $taxrate);
echo 'Total including tax: $'.number_forma t($totalamount, 2).'<br />';

if( $totalqty == 0 )
echo 'You did not order anything on the previous page!<br />';

?>- Hide quoted text -

- Show quoted text -
What is concatenation? How does one go about this?

Sorry, extreme newbie...

May 11 '07 #8
Message-ID: <11************ ********@h2g200 0hsg.googlegrou ps.comfrom
ZeldorBlat contained the following:
$mailcontent = 'Customer name: '.$name." \n" .
'Customer address: '.$address." \n" .
'Thermostats Ordered: '.
$thermostqty2. " \n" .
'Sparkplugs Ordered: '.$spkplgqnt."
\n" .
'Tyers Ordered: '.$tireqnt." \n";
I know that's seen by some as the correct way to do it, but all that
concatenation is a right pain.

I much prefer this

$mailcontent = "Customer name: $name
Customer address: $address
Thermostats Ordered: $thermostqty2
Sparkplugs Ordered: $spkplgqnt
Tyers Ordered: $tireqnt\n";

--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/
May 11 '07 #9
On May 11, 1:05 pm, Geoff Berrow <blthe...@ckdog .co.ukwrote:
Message-ID: <11************ ********@h2g200 0hsg.googlegrou ps.comfrom
ZeldorBlat contained the following:
$mailcontent = 'Customer name: '.$name." \n" .
'Customer address: '.$address." \n" .
'Thermostats Ordered: '.
$thermostqty2." \n" .
'Sparkplugs Ordered: '.$spkplgqnt."
\n" .
'Tyers Ordered: '.$tireqnt." \n";

I know that's seen by some as the correct way to do it, but all that
concatenation is a right pain.

I much prefer this

$mailcontent = "Customer name: $name
Customer address: $address
Thermostats Ordered: $thermostqty2
Sparkplugs Ordered: $spkplgqnt
Tyers Ordered: $tireqnt\n";

--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDshttp://www.ckdog.co.uk/rfdmaker/
Thanks man, that works like a charm.

d.

May 11 '07 #10

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

Similar topics

8
9449
by: Gerrit Holl | last post by:
Posted with permission from the author. I have some comments on this PEP, see the (coming) followup to this message. PEP: 321 Title: Date/Time Parsing and Formatting Version: $Revision: 1.3 $ Last-Modified: $Date: 2003/10/28 19:48:44 $ Author: A.M. Kuchling <amk@amk.ca> Status: Draft Type: Standards Track
2
3960
by: Cigdem | last post by:
Hello, I am trying to parse the XML files that the user selects(XML files are on anoher OS400 system called "wkdis3"). But i am permenantly getting that error: Directory0: \\wkdis3\ROOT\home Canonicalpath-Directory4: \\wkdis3\ROOT\home\bwe\ You selected the file named AAA.XML getXmlAlgorithmDocument(): IOException Not logged in
16
2909
by: Terry | last post by:
Hi, This is a newbie's question. I want to preload 4 images and only when all 4 images has been loaded into browser's cache, I want to start a slideshow() function. If images are not completed loaded into cache, the slideshow doesn't look very nice. I am not sure how/when to call the slideshow() function to make sure it starts after the preload has been completed.
3
1610
by: David Svoboda | last post by:
I have a server program that takes commands and acts on them. The server program can also take these commands from an input file or standard input (mainly for testing purposes). As such, I often have files full of input commands to feed to the server. Right now the commands that the server takes are well-defined, but not in XML. Since the commands are not self-delimiting, I have to prepend each command with a 'length' number indicating...
0
2273
by: palabat | last post by:
Hello. I'm getting this error , "XML error parsing SOAP payload : Empty Document" when I try to execute a NuSOAP client in consuming a .NET web service. The response from the web service server looks fine - I can see the line of data from the SOAP response. The problem is in the parsing of the SOAP response from the server. I noticed that the xml_parse() function returns FALSE all the time during the parsing. Please HELP. Thanks. palabat
13
4516
by: Chris Carlen | last post by:
Hi: Having completed enough serial driver code for a TMS320F2812 microcontroller to talk to a terminal, I am now trying different approaches to command interpretation. I have a very simple command set consisting of several single letter commands which take no arguments. A few additional single letter commands take arguments:
0
1994
by: =?Utf-8?B?VWxmIFRob3JzZW4=?= | last post by:
I use Visual Studio 2005 for a C-project using an external compiler, and came up with the idea that error parsing would be neat, i.e. enabling the functionality available for a "normal" build where you can double click a compile error/warning message and be guided to the file/line in question. Using sed to filter output from the compiler i managed to make the error output look like the ones generated from the regular compiler, and...
3
4516
by: GazK | last post by:
I have been using an xml parsing script to parse a number of rss feeds and return relevant results to a database. The script has worked well for a couple of years, despite having very crude error-trapping (if it finds an error in one of the xml files, the script stops). Recently, the script has stopped working because one of the xml files is badly formed. So I decided to rewrite the script with better error trapping; the script should...
2
3619
by: Felipe De Bene | last post by:
I'm having problems parsing an HTML file with the following syntax : <TABLE cellspacing=0 cellpadding=0 ALIGN=CENTER BORDER=1 width='100%'> <TH BGCOLOR='#c0c0c0' Width='3%'>User ID</TH> <TH Width='10%' BGCOLOR='#c0c0c0'>Name</TH><TH width='7%' BGCOLOR='#c0c0c0'>Date</TH> and so on.... whenever I feed the parser with such file I get the error :
1
2967
by: hd95 | last post by:
In a perfect world my xml feed source would produce perfect xml ..that is not the case I am parsing an XML feed that sometimes has ampersands and dashes in the content that messes up my parsing. I've tried doing pre processing with find/replace to get rid of these characters but then I get another type of error "An unexpected end of file parsing CDATA has occurred" So to get around that error I've added in unicoding and removing...
0
9688
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
9546
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10491
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10247
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
6809
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
5467
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
5593
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4146
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 we have to send another system
2
3762
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.