Re: [PLUG] Help with Apache PHP

Doug Crompton on 30 Mar 2007 15:44:33 -0000


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] Help with Apache PHP


Problem Solved....
Ironically it turns out to be just the thing you were talking about, not
putting the excplicit 'php' in the block. Once I did that it worked fine.
<?php
phpinfo();
?>
worked fine.
While
<?
phpinfo();
?>
did not
So I obviously do not have the shortcut method defined and from what I am
hearing in this thread it might be good to not use the short method
anyhow.
Thanks for all your help.
Doug
On 2007年3月30日, Brian Stempin wrote:
> whoops, minor mistake, <% is sometimes called the ASP tag, not <?. my
> mistake.
>
> On 3/30/07, Brian Stempin <brian.stempin@gmail.com> wrote:
> >
> > I downloaded the PHP source and obtained the default, untainted php.inifile. The following is a snippet:
> >
> > ; 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
> >
> > By default, 'short open' tag (sometimes referred to as an ASP tag) is on.
> > Perhaps this should be checked? At any rate, I think it might be a good
> > idea to open the php code with <?php just to test.
> >
"Those that sacrifice essential liberty to obtain a little temporary safety
 deserve neither liberty nor safety." -- Ben Franklin (1759)
****************************
* Doug Crompton	 *
* Richboro, PA 18954	 *
* 215-431-6307		 *
*		 	 *
* doug@crompton.com *
* http://www.crompton.com *
****************************
___________________________________________________________________________
Philadelphia Linux Users Group -- http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion -- http://lists.phillylinux.org/mailman/listinfo/plug



AltStyle によって変換されたページ (->オリジナル) /