php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #21472 Problems with short tags and <script> tags
Submitted: 2003-01-06 14:47 UTC Modified: 2003-01-13 17:24 UTC
From: mike_tharp at hermanmiller dot com Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 4.3.0 OS: Windows 2000
Private report: No CVE-ID: None
 [2003-01-06 14:47 UTC] mike_tharp at hermanmiller dot com
I have noticed that using short tags in PHP files does not work on any of my servers, all WIN2K.

When using short tags for includes the file will not be included and the page will not load correctly, using a long tag will work. Short tags are turned on in the php.ini.

Also <script> tags do not work at all, pages load but with errors and none of the javascript will function on the page.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-01-06 15:23 UTC] philip@php.net
Please look at phpinfo() for the true location of the used php.ini and the true setting for the short_open_tag directive.  So:

a) Tell us exactly what "Configuration File (php.ini) Path" is in phpinfo().
b) Make sure you edit this file.
c) Make sure you restart the web server after making changes to php.ini
d) See what phpinfo() says about this directive.
 [2003-01-06 15:26 UTC] mike_tharp at hermanmiller dot com
It is in c:\WINNT, the one I have been modifying all the time.

Same situation.
 [2003-01-06 15:44 UTC] philip@php.net
Please be specific with the questions below:

1) EXACTLY what does (a) say from below?
2) Did you restart the web server after editing?
3) What does phpinfo() say for this directive?
4) What value are you assigning to this directive in php.ini?
 [2003-01-07 07:54 UTC] mike_tharp at hermanmiller dot com
A. It says C:\WINNT\php.ini

B. I edited that file to change the value for short tags to 1, or on.

C. Restarted IIS.

D. PHPINFO says that the directive is "on".
 [2003-01-08 18:03 UTC] kalowsky@php.net
do you have ASP installed as well?
 [2003-01-09 07:50 UTC] mike_tharp at hermanmiller dot com
I do not have any special ASP items installed on the servers, and we do not use ASP pages either.
 [2003-01-13 14:48 UTC] mike_tharp at hermanmiller dot com
<script> tags must have the language variable in "s now whereas before they did not have to be, this makes them work.
 [2003-01-13 17:24 UTC] nicos@php.net
Closed then, feel free to open it again if you have an another problem.

Thank you for your report.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Wed Oct 07 10:00:01 2026 UTC