Many php scripts uses the php clauses as folows:
''
Welcome to our site,=$name?>.
We hope you like your stay!!!''
They add simple script parts like ''=name?>''!
My php parser doesn't parse this parts...
How can I fix this???
The php parser parses '''' fine but
not '' ...code... ?>
How can I fix this???
I'm currently running windows XP and using wampserver to run php, apache and msql on my pc.
Thankyou very much!!!
Hello.
If you want PHP to use quotation marks you have to seperate them from the ones that start the expression by a backslash(\).
Here are two examples:
WRONG: echo "A "QUOTE" AND SOME TEXT";
RIGHT: echo "A \"QUOTE\" AND SOME TEXT";
or
WRONG: echo 'A 'QUOTE' AND SOME TEXT';
RIGHT: echo 'A \'QUOTE\' AND SOME TEXT';
I hope this helps.
Kind Regards,
Wilhelm@X-ex.info
555 views
Usually answered in minutes!
thankyou very much. in the php.ini there is a setting:
; Allow the tag. Otherwise, only tags are recognized.
; NOTE: Using short tags should be avoided when developing applications or
; libraries that are meant for redistribution, or deployment on PHP
; servers which are not under your control, because short tags may not
; be supported on the target server. For portable, redistributable code,
; be sure not to use short tags.
short_open_tag = On
Lucka
I think there is a setting within php.ini but its been awhile since I've looked through there.
×