Menu

#1 php_self

open
nobody
5
2002-06-18
2002-06-18
Anonymous
No

PHP_self variable error occurs when I run the ffdb for
PHP.

Discussion

  • Nobody/Anonymous

    Logged In: NO

    in the latest versions of php , the variable $PHP_SELF is no
    more used, instead $_SERVER["PHP_SELF"] is used.
    In fact this projects needs to be ported to the latest version of
    PHP (e.g. using $_GET instead of $HTTP_GET_VARS , $_POST
    instead of $HTTP_POST_VARS, $_COOKIE instead of
    $HTTP_COOKIE_VARS ...etc )

     
  • Nobody/Anonymous

    Logged In: NO

    add these lines to the script, and it will work...

    extract($HTTP_GET_VARS);
    if(isset($HTTP_POST_VARS)) extract($HTTP_POST_VARS);
    if(isset($HTTP_COOKIE_VARS)) extract($HTTP_COOKIE_VARS);
    $PHP_SELF = $HTTP_SERVER_VARS['PHP_SELF'];

     

Log in to post a comment.