Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Where to find syntax error meanings
Old 01-18-2008, 04:11 PM Where to find syntax error meanings
Experienced Talker

Posts: 36
Trades: 0
Does anyone know where to find meaning of php sytax errors?

For ex:
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING

What does T_ENCAPSED_AND_WHITESPACE mean?
nlassiter is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 01-18-2008, 05:01 PM Re: Where to find syntax error meanings
tripy's Avatar
Do not try this at home!

Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
Trades: 0
This error is usually trigerred when you use an array syntax into a string
like
PHP Code:
echo "Thank You $row['first_name'] $row['last_name'] for registering with the username $row['username'] and password $row['password']"
use the paragraphs characters between the arrays, in that case
PHP Code:
echo "Thank You {$row['first_name']} {$row['last_name']} for registering with the username {$row['username']} and password {$row['password']}"
those are hints to the php engine, to know where is the variable to insert and where is the string.
__________________
Only a biker knows why a dog sticks his head out the window.
tripy is offline
Reply With Quote
View Public Profile Visit tripy's homepage!
 
Old 01-18-2008, 06:01 PM Re: Where to find syntax error meanings
Experienced Talker

Posts: 36
Trades: 0
thank you for your reply, is there any guide that shows all the sytax error message definitions?
nlassiter is offline
Reply With Quote
View Public Profile
 
Old 01-18-2008, 06:35 PM Re: Where to find syntax error meanings
tripy's Avatar
Do not try this at home!

Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
Trades: 0
Not that I know of, no...
__________________
Only a biker knows why a dog sticks his head out the window.
tripy is offline
Reply With Quote
View Public Profile Visit tripy's homepage!
 
Old 01-18-2008, 09:27 PM Re: Where to find syntax error meanings
mgraphic's Avatar
Truth Seeker

Latest Blog Post:
JAMISONTUNES
Posts: 2,918
Name: Keith Marshall
Location: Connecticut
Trades: 0
I believe those are the codes to internal php constants, but I might be wrong
__________________

<mgraphic /> - I don't have a solution but I admire the problem.
mgraphic is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Where to find syntax error meanings
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.15845 seconds with 12 queries