Re: Re: httpd not interpreting a php file

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

 



On 25/10/14 18:35, Gergely Buday wrote:
>> Insure that all of the PHP files that are not working start with "<?php", it
>> > could be that shortag disabled and you are using it.

> Aziz, you hit the point, this was the problem. Thanks.
> I enabled
>    short_open_tag = On
> 
> in php.ini as suggested at
> http://stackoverflow.com/questions/2185320/how-to-enable-php-short-tags
> and now it works seamlessly.

This is another example where little changes to the default ini settings
can cause endless hours of agro.

One of the problems with 'short_open_tag = On' is it does not repair the
underlying problem. Nowadays the files should be updated to <?php since
this is one that will bite again later.

E_STRICT is another thorn that while disabling it 'usually' works, the
problems it flags up will bite when jumping more than just one or two
versions. PHP5.2 code will run on PHP5.5 with the right switches set,
but still needs bits fixing and like fixing the <?php, fixing the
e_strict errors and warnings earlier rather than later will help keep
the agro down in the future ;)

-- 
Lester Caine - G8HFL
-----------------------------
Contact - http://lsces.co.uk/wiki/?page=contact
L.S.Caine Electronic Services - http://lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk
Rainbow Digital Media - http://rainbowdigitalmedia.co.uk

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php





[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux