CAN SOMEONE HELP ME PLS :(((((((

Ive installed Apache 2.0 and php 4 in my comp
i dunno what went wrong...
the php runs fine with normal command...
but when i use 'action="<?php echo($PHP_SELF)?>"'
i keep getting the below errors
i thought $php_self should be a predefined variable rite? why is this happening?

-------------------------------------------------------
Forbidden
You don't have permission to access /
Notice: Undefined variable: PHP_SELF in C:/webtest/htdocs/aa.php on line 9
on this server.

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.


Comments

  • Check your php.ini

    You'll probably find register global varibles is turned off. One way to enable $PHP_SELF would be enable this directive. Alternatively, find out what the equivalent of PHP_SELF would be using the super globals that ARE registered. These are the $_ variables, for example $_POST, $_GET etc.

    The manual has all this info.

    Cheers,

    James.

    : Ive installed Apache 2.0 and php 4 in my comp
    : i dunno what went wrong...
    : the php runs fine with normal command...
    : but when i use 'action="<?php echo($PHP_SELF)?>"'
    : i keep getting the below errors
    : i thought $php_self should be a predefined variable rite? why is this happening?
    :
    : -------------------------------------------------------
    : Forbidden
    : You don't have permission to access /
    Notice: Undefined variable: PHP_SELF in C:/webtest/htdocs/aa.php on line 9
    on this server.
    :
    : Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
    :
    :
    :

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion