short opening tags

Problems with the Windows version of XAMPP, questions, comments, and anything related.

short opening tags

Postby SirChick » 10. August 2007 00:50

How do i check if short opening tags is enabled on my server?
SirChick
 
Posts: 68
Joined: 19. June 2007 15:03
Operating System: Windows 7 64 bit

Postby Wiedmann » 10. August 2007 01:30

For example with phpinfo().
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby SirChick » 10. August 2007 01:45

An example of what i mean :


Current Job: [[ <?= $JobType ?>]]<br>


Some told me to check if i had them on but i don't know how to..
SirChick
 
Posts: 68
Joined: 19. June 2007 15:03
Operating System: Windows 7 64 bit

Postby Wiedmann » 10. August 2007 02:00

Some told me to check if i had them on but i don't know how to..

Just open a script with phpinfo() and search the output for "short_open_tag". - If the value is "on", you can use: "<?=".
- If the value is "off", you must use: "<?php echo".
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 55 guests