[NTLUG:Discuss] php and apache question

Alton R. Pouncey, II alton at trainers-r-us.com
Thu Dec 11 14:55:52 CST 2003


Take a look in your php.ini file.  You will find this section:

; 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

It looks like, in your case, the short_open_tag is currently set to
Off.  Change it to On and you should get the behavior you want.

Alton Pouncey

On Thu, 2003-12-11 at 14:27, Jack Snodgrass wrote:
> I've run into an issue that I haven't seen before. Maybe someone else
> has seen this. 
> I have an apache server with php on it.  
> 
> <?php
> phpinfo();
> ?>
> works... but 
> <?
> phpinfo();
> ?>
> just sends the plain text 
> <?
> phpinfo();
> ?>
> to the user. 
> 
> Other servers I have work with just 
> <?
> ?>
> this one that is causing me greif wants
> <?php
> ?>
> 
> anyone know why? 
> 
> jack
> 
> 
> _______________________________________________
> https://ntlug.org/mailman/listinfo/discuss
-- 
Alton R. Pouncey, II
SCSA, SCNA, CCNA, CIW Professional




More information about the Discuss mailing list