<?php is the recommended way to start a php script. This open tag is available in all scenarios. <? <% are not always available, and can cause conflicts when using xml or asp from the same page.
Keith In theory, theory and practice are the same; in practice they are not. To unsubscribe from this list, please see detailed instructions already posted at: http://marc.theaimsgroup.com/?l=php-install&m=114138567814319&w=2 On Fri, 17 Mar 2006, Vadim Bendebury wrote: > To: Malcolm Evans <[EMAIL PROTECTED]>, Brad Kowalczyk <[EMAIL PROTECTED]>, > [EMAIL PROTECTED] > From: Vadim Bendebury <[EMAIL PROTECTED]> > Subject: Re: [PHP-INSTALL] Q: apache 2.2 and php 5.1.2 don't interact > properly. > > Yes, this was it. I actually was amazed to find out that Keith's suggestion > about putting <?php instead of <? made a whole lot of difference. Then I > started perusing httpd.conf to find out what was missing in the server > config - this is when your emails came very timely. > > I find it counterintuitive that the setting is in php.ini, but whatever > works.. ;-) > > Thank you all, gentlemen, > > regards, > Vadim > > ----- Original Message ----- > From: "Malcolm Evans" <[EMAIL PROTECTED]> > To: "vb" <[EMAIL PROTECTED]> > Sent: Friday, March 17, 2006 6:04 PM > Subject: Re: [PHP-INSTALL] Q: apache 2.2 and php 5.1.2 don't interact > properly. > > > > You should be using <?php for start tag otherwise it won't be > > interpreted, which I gather from > > your email is what you're seeing. > > > > Regards, > > > > Malcolm > > > > On 17/03/2006, at 15:03, vb wrote: > > > > > Hello all: > > > > > > Sorry if this is FAQ - I don't seem to be able to find any. > > > > > > I just installed the latest Apache (2.2) and PHP (5.2.1) on a Sun Sparc > > > Linux platform. > > > > > > It was a vanilla installation, followed almost to the letter the > > > instructions at http://www.php.net/manual/en/install.unix.apache2.php > > > (although this is for apache 2.0, not 2.2). The only difference was > > > that > > > mysql path was required for php ./configure, even though mysql is > > > installed > > > in the standard place. > > > > > > The problem is that the server does not process php properly. Putting > > > the > > > code below into index.php > > > > > > <? > > > echo "<html><body>"; > > > echo "It works"; > > > echo "</body></html>"; > > > ?> > > > > > > and trying to browse this page I see an empty screen in the browser, > > > 'view > > > source' shows exactly this code. That is the server does not interpret > > > the > > > php code - it just dumps it into the page! > > > > > > I noticed that /usr/local/bin/php when invoked with -i returns > > > php(cli) - in > > > my previous installations it was php(cgi). > > > > > > Can anyone please help me to understand what is going on here - from > > > that > > > little info I managed to find it looks like the server is using php in > > > cli > > > mode instead of cgi mode - is this the case? What needs to be done to > > > get it > > > working? > > > > > > > > > All hints would be highly appreciated, > > > > > > TIA, > > > /vb > > > > > > >