The PHP Group PHP
Problem for The PHP Group PHP

PHP issues with ''''... Please help!!!




By Master Lucka on Feb 26, 2009

" "
Many php scripts uses the php clauses as folows:

''<?php $name=$_get['name'] ?>
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 ''<?php ...code... ?>'' 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!!!
Comments:

Feb 27, 2009

- thankyou very much. in the php.ini there is a setting:

; Allow the <? tag. Otherwise, only <?php and <script> 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

Clarification Request

Posted by FresnoTech on Feb 26, 2009

I think there is a setting within php.ini but its been awhile since I've looked through there.

Best Solution

posted on Mar 06, 2009
Very Helpful)

Wilhelm_I

Rank: Master 
Rating: 98%, 33 votes
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

Was this helpful?
Yes
No

Popular Solutions for The PHP Group PHP


Questions and Unsolved Problems for The PHP Group PHP


Do you recommend The PHP Group PHP?
Answer

Answer
I ruined ccsearch.php can I get a new one ?

Answer
I want to execute java command for a software which is stored on my web server with the help of... (More)

Answer
subject avaluation system php w/ mysql codes how to evaluate subject using php w/ mysql

Answer
Hi there, I am using PHP5, where i need to mail with attachement. exact thing is, am getting the... (More)


Didn't find what you were looking for?

Describe your problem:

Select a Category:







Ask our Experts

 

Solve Your Problem Now!
Chat Live with an Expert
Chat Now
Browse popular Problems
More Common Problems
Most Common Problems for:
For The PHP Group PHP:

Top Programming Tool Experts

Rank: Guru Guru  

Solutions: 1424
Member Since: July 2009

Experience: I have owned a computer networking sales and service company.

Ask Me
Find more Programming Tool Experts

Top Computer & Laptop Repair

(877) 934-6198
Send your laptop to us and we will diagnose the...
A+ Rated Oceanside Computer Sales & Service, LLC

(877) 729-0812
We connect to your computer over the Internet to...
Remote Repair


       
Solve Your Problem Now!
Chat Live with an Expert
Chat Now

X
Continue
When the original poster rates a solution that was given to his own problem, that rating is locked!
X

Are you sure the solution content is Inappropriate?
   
Tech buddies can communicate directly to answer questions. Become a Tech Buddy and have direct access to your favorite expert for FREE!
Insert Link
Insert Image
Insert You-Tube clip
Insert List
Insert List
Spell Check

What is this?



Select