Re: PHP not behaving as expected

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

 



On 18 Nov 2002 17:55:09 +0200
Gerhardus Scheltema <sa-redhat-user@ananzi.co.za> wrote:

> Apache is running and with php and MySQL is working. Just some stuff
> like $php_self is acting up.

More than likely this is due to the fact that RedHat have changed the
default value of short_open_tag to Off in your /etc/php.ini file.
This stops you from doing things like <?=$_SERVER['PHP_SELF'];?>.
You need to change the setting in php.ini to short_open_tag = On

Also if your scripts are pre 4.2.0 you may have a problem with 
register globals, it is now Off by default. Added to that,
variables such as $PHP_SELF are now $_SERVER['PHP_SELF']
more info on this at
http://www.php.net/manual/en/language.variables.predefined.php

Kind regards
Kevin

-- 
Please avoid sending me Word or PowerPoint attachments.
See http://www.fsf.org/philosophy/no-word-attachments.html
Kevin Waterson
Byron Bay, Australia



-- 
Psyche-list mailing list
Psyche-list@redhat.com
https://listman.redhat.com/mailman/listinfo/psyche-list

[Index of Archives]     [Fedora General Discussion]     [Red Hat General Discussion]     [Centos]     [Kernel]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat 9]     [Gimp]     [Yosemite News]

  Powered by Linux