Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

FAQ.php Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING


nm2002

Recommended Posts

Posted

I was trying so many times to put this text onto my page, but I get error

 

"Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in includes/languages/english/faq.php on line 320"

 

this is the code that i want to have on the FAQ.php page, I cant find out whats wrong the 320 line is second from the bottom of page. I need help with this asap. THNKS

 

 

 

 

designed for high-end printing. They were intended for office use on a

inkjet or laser printer.</span></p>

<p align="center" style="text-align:center"><strong>

<span style="font-size:10.0pt;

font-family:Arial;color:black">What other file formats can you take?</span></strong><span style="font-size:10.0pt;font-family:Arial;color:black"><br>

</span><span style="font-size:9.0pt;font-family:Arial;color:black">We can take

any Mac or PC version of Quark, Illustrator, Photoshop, Word (for text only) and

PDFs.</span></p>

<p align="center" style="text-align:center"><strong>

<span style="font-size:10.0pt;

font-family:Arial;color:black">What is the difference between the RGB and CMYK

color space and why does it matter?</span></strong><span style="font-size:10.0pt;

font-family:Arial;color:black"><br>

</span><span style="font-size:9.0pt;font-family:Arial;color:black">RGB refers to

the primary colors of light: Red, Green and Blue, that are used in monitors,

television screens, digital cameras and scanners. CMYK refers to the primary

colors of pigment: Cyan, Magenta, Yellow, and Black. These are the inks used on

the press in "4-color process printing", commonly referred to as "full color

printing".</span></p>

<p align="center" style="text-align:center">

<span style="font-size:9.0pt;

font-family:Arial;color:black">The combination of RGB light creates white while

the combination of CMYK inks creates black. Therefore, it is physically

impossible for the printing press to exactly reproduce colors as we see them on

our monitors.</span></p>

<p align="center" style="text-align:center">

<span style="font-size:9.0pt;

font-family:Arial;color:black">Many programs have the capability to convert the

layout/images from the RGB color space to the CMYK color space. We request that

you convert your colors from RGB to CMYK if your tools allow you to. By doing it

yourself, you have maximum control over the results.You may notice a shift in

color when converting from RGB to CMYK. If you do not like the appearance in

CMYK, we recommend that you make adjustments while working in CMYK (usually

lightening). Generally, you should specify CMYK color builds that look a little

lighter than you want since the dots of ink "fatten up" on press, giving you

more pigment on paper than you see on your monitor. Be especially careful to

keep backgrounds light if there is black or dark colored text over it so that

the text remains readable.</span></p>

<p align="center" style="text-align:center"><strong>

<span style="font-size:10.0pt;

font-family:Arial;color:black">How do I check for proper imposition or backup?</span></strong><span style="font-size:10.0pt;font-family:Arial;color:black"><br>

</span><span style="font-size:9.0pt;font-family:Arial;color:black">"Imposition"

and "backup" refer to how the front of a printed piece is oriented to the back.

In the case of a brochure, you normally turn it over right-to-left (like you

turn the page of a book) in order to have the back side read correctly -- not

upside down. Seems simple until you get to a postcard where one side is layed

out in landscape (horizontal) orientation and the other side in portrait

(vertical) orientation. We use our best judgment when imposing a job so that it

backs up in the most natural or normal manner. Some designs, however, contain

both portrait and landscape elements on both sides making it difficult to make a

clear call. When reviewing your proof online, we will always post the front and

the back in the orientation that they will print in relation to each other. So,

if page 2 appears upside down, that is how it will be printed on the back of

page 1. (Some people want it that way so that the recipient of the piece must

turn it over top-to-bottom in order to read it correctly.) Be sure to print out

a copy of your online proof and attach the two sides to each other to create a

"mockup" or "dummy." This is especially important when a job will be folded.</span></p>

<p align="center" style="text-align:center"><strong>

<span style="font-size:10.0pt;

font-family:Arial;color:black">Do I need to impose my business cards 8-up or

10-up if they will be printed more than 1 to a sheet?</span></strong><span style="font-size:10.0pt;font-family:Arial;color:black"><br>

</span><span style="font-size:9.0pt;font-family:Arial;color:black">No, send us a

single layout for each card of your job unimposed. We will handle any imposition

needed on our end.</span></p>

<p align="center" style="text-align:center"><strong>

<span style="font-size:10.0pt;

font-family:Arial;color:black">How should I take pictures with my digital

camera?</span></strong><span style="font-size:10.0pt;font-family:Arial;

color:black"><br>

</span><span style="font-size:9.0pt;font-family:Arial;color:black">Digital

cameras are wonderful tools that allow us to capture our images in many

different ways. The camera is designed to actually take three pictures; one in

red, one in green and the other in blue (similar to the way a projection TV

works). It then combines the colors together and saves the image onto the

picture card. It is very important to make sure that the camera is set to the

highest quality setting possible. This means that if you can only save one image

on the picture card instead of 12, 64 or 128 images, then this is good! You want

to create the best quality picture that the camera can make. This will mean

large file sizes and slow downloads from the camera itself, but it will get you

the best possible results from your camera. Remember, images should be at 300dpi

in their final size in the layout!</span></p>

<p align="center" style="text-align:center">

<span style="font-size:9.0pt;

font-family:Arial;color:black">More often than not, we notice that images that

come from digital cameras print darker than expected on the printing press.

Check to see if you have a brightness option in your image editing program to

lighten the entire piece. If you have the opportunity to change the color space

from RGB (red, green, blue) to the printing press colors of CMYK (cyan, magenta,

yellow, black), then do so! It is always better to have you change the color

space if you can than for us to do it. Remember, not all colors that you can see

that are created by elements of light (RGB) can be created by the elements of

ink (CMYK) on press. If you do not have this capability with your software, do

not worry about it. We can change it for you. Finally, we recommend that you

apply a little sharpening to the image. This will make the image a little

crisper and will print better on press.</span></p>

<p align="center" style="text-align:center">

<span style="font-size:10.0pt;

font-family:Arial;color:black"><br>

<strong><span style="font-family:Arial">How can I tell what resolution the image

from my digital camera is?</span></strong><br>

</span><span style="font-size:9.0pt;font-family:Arial;color:black">Some digital

cameras will let you know what the image resolution is while others will tell

you what the pixel dimensions of your image are. If you know what the pixel

dimensions of your images are, either from the camera itself or through the

image editing software, you can do a little math to determine the resolution and

the size you can print the image at for clear and crisp printing.</span></p>

<p align="center" style="text-align:center">

<span style="font-size:9.0pt;

font-family:Arial;color:black">Simply write down the pixel dimensions of your

image and divide those numbers by 300, if the image does not include text, and

400 if the image does include text. For example: An image without any text has a

pixel dimension of 600 x 900 pixels. Once each dimension is divided by 300 the

result is 2 x 3 inches. This means that you can use this image at 2 x 3 inches

or smaller in your layout for quality printing results.</span></p>

<p align="center" style="text-align:center">

<span style="font-size:9.0pt;

font-family:Arial;color:black">If your image editing software does not tell you

what the pixel dimensions are but it does tell you what the resolution is, then

you know the maximum size you can use that image in your layout. We recommend

that images be at 300dpi in their final size in the layout and 400dpi if the

images include text. Please keep in mind that resolution and physical dimensions

are in direct proportion to each other. If you have an image that is 2x2 at

300dpi and increase its size in the layout to 4x4 the new resolution is now

150dpi. So remember, when you bring an image in to your layout you can shrink it

down in size (because the resolution will increase) but you will be limited as

to how far you can increase it in size.</span></p>

<p align="center" style="text-align:center"><strong>

<span style="font-size:10.0pt;

font-family:Arial;color:black">What is your turnaround time on business cards or

postcards?</span></strong><span style="font-size:10.0pt;font-family:Arial;

color:black"><br>

</span><span style="font-size:9.0pt;font-family:Arial;color:black">Approximately

1-2 business days from date of approval from the client.</span></p>

<p align="center" style="text-align:center"><strong>

<span style="font-size:10.0pt;

font-family:Arial;color:black">What is meant by bleed?</span></strong><span style="font-size:10.0pt;font-family:Arial;color:black"><br>

</span><span style="font-size:9.0pt;font-family:Arial;color:black">Bleed is the

area outside the trim area of a document in which graphical elements are

printed. This area is then trimmed off, resulting in color going all the way to

edge of the piece. If you didn\'t bleed elements and instead placed them up to

the boundaries of the trim area, irregularities encountered during cutting might

produce a piece where a thin line of unprinted stock shows along one or more

edges. And that could ruin the overall effectiveness of the cards design.

Standard bleed is 1/8 inch.</span></p>

<p align="center" style="text-align:center"><strong>

<span style="font-size:10.0pt;

font-family:Arial;color:black">I need cards but I can\'t design them myself. Can

you help?</span></strong><span style="font-size:10.0pt;font-family:Arial;

color:black"><br>

</span><span style="font-size:9.0pt;font-family:Arial;color:black">Yes, we

specialize in custom design cards. We offer design services for an additional

fee. Additional text changes in the future are not included with the initial

design setup charge.</span></p>

<p align="center" style="text-align:center"><strong>

<span style="font-size:10.0pt;

font-family:Arial;color:black">What is meant by linescreen?</span></strong><span style="font-size:10.0pt;font-family:Arial;color:black"><br>

</span><span style="font-size:9.0pt;font-family:Arial;color:black">Simply put,

linescreen is how tightly the individual printing dots that make up a printed

piece are placed on the paper. A fine linescreen, like we use, minimizes the

appearance of the dots resulting in a smoother image.</span></p>

<p align="center" style="text-align:center"><strong>

<span style="font-size:10.0pt;

font-family:Arial;color:black">What is meant by CMYK?</span></strong><span style="font-size:10.0pt;font-family:Arial;color:black"><br>

</span><span style="font-size:9.0pt;font-family:Arial;color:black">Full color

printing is generally done with only four colors; cyan, magenta, yellow, and

black. CMYK is just another way to say process, or full color, printing. All

elements to be printed must be separated into the four color channels. Scanned

color images are RGB. At some point , they must be separated; either

automatically on the scanner or manually in an image editing program.</span></p>

<p align="center" style="text-align:center"> </p>

<!--"''"-->

<p align="center" style="text-align:center"> </p>

<p class="MsoNormal" align="center" style="text-align:center"> </p>

<p class="MsoNormal"> </p>

 

 

');

?>

Posted

It's this bit

 

<!--"''"-->

 

You have apostrophes (single quotes) in there unescaped.

 

<!--"\'\'"-->

 

There's no need for it to be there at all.

Posted
It's this bit

 

<!--"''"-->

 

You have apostrophes (single quotes) in there unescaped.

 

<!--"\'\'"-->

 

There's no need for it to be there at all.

 

 

I have no idea how they got there but that fixed the problem. THANKS SO MUCH. how do you find these errors? How do you create a php form html the way I do it is I put whatever I want on the fronpage and then copy html into the php text directory, is there a better way?

 

I was creating one more page and got another parase error:

 

Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in/includes/languages/english/design_guidelines.php on line 92

 

 

Here is the php file:

 

 

 

 

 

 

 

<?php

 

/*

 

$Id: shipping.php,v 1.4 2002/11/19 01:48:08 dgw_ Exp $

 

 

 

osCommerce, Open Source E-Commerce Solutions

 

http://www.oscommerce.com

 

 

 

Copyright © 2002 osCommerce

 

 

 

Released under the GNU General Public License

 

*/

 

 

 

define('NAVBAR_TITLE', 'Design Guidelines');

 

define('HEADING_TITLE', 'Design Guidelines');

 

 

 

define('TEXT_INFORMATION', '<html>

 

<head>

<meta name="GENERATOR" content="Microsoft FrontPage 5.0">

<meta name="ProgId" content="FrontPage.Editor.Document">

<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">

<title>New Page 1</title>

</head>

 

<body>

 

<div align="center">

<font face="Arial,Helvetica,sans-serif" color="#000000" size="2">Press Ready

Specifications</font><!--"''"--></div>

<div align="center">

 </div>

<div>

<table cellSpacing="0" cellPadding="0" width="541" align="center" border="0">

<tr>

<td width="562">

<table cellSpacing="0" cellPadding="0" width="100%" align="center" bgColor="#ffffff" border="0">

<tr bgColor="#405498">

<td width="92%">

<div align="center">

<font face="Arial, Helvetica, sans-serif" color="#306898" size="2">

<strong><font color="#ffffff">Download The General Electronic

Guideline PDF :</font></strong></font></div>

</td>

<td width="5%"> </td>

</tr>

</table>

</td>

</tr>

<tr>

<td vAlign="top" width="562">

<div align="left" style="width: 541; height: 230">

<p align="center"><br>

<font face="Arial, Helvetica, sans-serif" size="2">You will need to

download Acrobat Reader 6 to view the Specifications.</font><br>

<a href="http://www.adobe.com/products/acrobat/readstep2.html" target="_blank" style="color: #ffffff">

<img alt src="http://www.adobe.com/products/acrobat/images/reader_icon_special.jpg" border="0" width="99" height="61"></a><br>

<font face="Arial, Helvetica, sans-serif" size="2">Download the

specifications to your computer. Then open them through <br>

Adobe Acrobat Reader. Opening the file this way will allow you to <br>

navigate through the specification sheets. </font></p>

<p align="center">

<font face="Arial, Helvetica, sans-serif" color="#993300" size="4">

<strong>

<a href="http://www.printdesignpages.com/General%20Specifications.pdf" target="_blank">

Click Here to Download</a></strong></font></p>

<p align="center"> </p>

<p align="center"> </div>

</td>

</tr>

</table>

</div>

 

</body>

 

</html>

 

');

?>

Posted

It's the same again, this bit:

 

<!--"''"-->

 

but shall I tell you your real problem? I'm going to anyway! It is this bit:

 

<meta name="GENERATOR" content="Microsoft FrontPage 5.0">

 

DON'T USE IT!!!!!

 

Microsoft FrontPage adds all sorts of erroneous code. It has or rather you have, included all the page <html> tags.

 

<head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 1</title>
</head>

<body>

</body>

</html>

 

None of that needs to be there.

 

Just use a decent text editor, there are plenty of good free ones out there. I use EditPad Lite.

 

When you see that error generated from a constant, it usually is an unescaped single quote mark. Because all your text should be between two single quotes:

 

define('TEXT_INFORMATION', 'Text between the single quotes');

 

as soon as the PHP parser reads a single quote, it thinks it is the end of string so everything after confuses it.

Posted

Thanks, i didnt even see that stupid thing again... I dont know how it gets there, the only reason why i use the frontpage is becaouse I dont like adding the html or php codes manually like when i want something bold or new line, paragraph...ect.

 

I dont see how can i use program like that that would do that automaticly...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...