Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Oct 2010 16:45:17 -0400
From:      Brad Mettee <bmettee@pchotshots.com>
To:        Gary Kline <kline@thought.org>,  FreeBSD Mailing List <freebsd-questions@freebsd.org>
Subject:   Re: need help with php.
Message-ID:  <4CBF54DD.7060708@pchotshots.com>
In-Reply-To: <20101020203333.GG25310@thought.org>
References:  <20101019033104.GA19320@thought.org> <AANLkTi=_DomZQW4mp4CXqzkA6HmAmT45iDmfVgdGLM5K@mail.gmail.com> <AANLkTinZ-Jf585KeiWy=acEeRuKd3ohJpXygW3gOOg-q@mail.gmail.com> <20101020174953.GE25310@thought.org> <E5173775-2F69-4B83-9A39-6929BBCF7C12@cwis.biz> <20101020200201.GF25310@thought.org> <4CBF4E36.5050905@pchotshots.com> <20101020203333.GG25310@thought.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Gary Kline wrote:
> On Wed, Oct 20, 2010 at 04:16:54PM -0400, Brad Mettee wrote:
>   
>> Gary Kline wrote:
>>     
>>> On Wed, Oct 20, 2010 at 01:14:27PM -0500, Ryan Coleman wrote:
>>>       
>>>> That's if someone messed up the original CSR, IMO, or didn't get the ServerName directive just right.
>>>>
>>>>         
>>> 	--I don't know what the snag is, but even 5.2 fails.  php execs;
>>> 	it just doesn't do anything.  I built the test.php with
>>>
>>> 	<? phpinfo(); ?>
>>>
>>> 	and zip.  Scrreen is blank.  Let me try konqueror; maybe I don't
>>> 	have something turned on it firfox3.
>>>
>>> 	gary
>>>       
>> Try using "<?php" as your beginning tag.
>>     
>
>
> 	Yeah, been doing that.  As a CLI guy, that's preferred:)
> 	I'll cutpaste.  You tell me.  [[this is with 5.2... ]]
>
>
> root@ethic:/usr/local/www/apache22/data# <?
> Invalid null command.
> root@ethic:/usr/local/www/apache22/data# <? echo "hi" ?>
> Missing name for redirect.
> root@ethic:/usr/local/www/apache22/data# php ./test.php
> <? phpinfo(); ?>
> root@ethic:/usr/local/www/apache22/data# 
>
>
> 	Hm.  php aimed at "./test.php" just catenates the file.  Does
> 	that tell you anything?
>   
It tells us that PHP is working fine, and that nothing is wrong with the 
program itself.

I think it's down to a config problem now. Full tag usage "<?php" is 
required UNLESS you edit the php.ini. Here's the part you're looking for 
along with the comments:
-----
; 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 = Off
-----




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4CBF54DD.7060708>