Re: Odd php execution problem...



You will have to enable short open tags:
http://www.php.net/manual/en/ini.core.php#ini.short-open-tag

ZaneK wrote:
Here's what I'm running:

PHP Version 5.1.2
Apache 2.2.0
Fedora Core 4

Here's my problem:

I'm able to run PHP scripts without issue, as long as the PHP chunks
within the document are declared with "<?php". However, many programs
declare the PHP portions with "<?=". When I attempt to run code that's
written this way, the code is printed, not executed by the server.

If both styles are included in the same .php document, the "<?php"
stuff runs, but the "<?=" portions do not.

I'm sure there's an obvious solution, but I'm pulling my hair out. Any
advice?

Thanks,
ZaneK

.



Relevant Pages

  • Re: Failed opening mysql.inc for inclusion (include_path
    ... everything on another fedora core 6 server. ... installed php 5.2.5 and apache 2.0.63 ... I added the following to see if php even thought it could get there: ... I compiled apache with -- ...
    (comp.lang.php)
  • Run php in apache
    ... I have Fedora Core 3, and I try run php pages on apache. ... at this moment everthing it's ok. ...
    (Fedora)
  • Re: I have problems with libphp5.so
    ... I am using fedora core 3 and this is some of my setup ... Include conf.d/*.conf << if I coment this, apache starts correctly. ... I read something about php module problem when I start my computer so ... >> Juan Martin Alba ...
    (Fedora)
  • Re: newbie: can I install fedora over RedHat6?
    ... My goal is to learn Linux, Apache MySQL and PHP. ... As for Fedora Core 1 suiting a newbie, I think Mandrake 10 or the ...
    (comp.os.linux.misc)
  • Re: Problem with php and apache
    ... > apache web server. ... > same syntax use when I was running under Fedora core 3. ... compilled php. ... to compile and install well. ...
    (Fedora)