Hi there everyone,

I didn't get this error on the previous two installs of this script, but tonight, installing it on the production server, I found this:

Notice: Undefined variable: PHP_SELF in /home/pathto/scripts/isocontastico/index_content.php on line 62

here's line 62:

<form method=\"post\" action=\"$PHP_SELF\">

I found this on php.net:

'PHP_SELF'

The filename of the currently executing script, relative to the document root. For instance, $_SERVER['PHP_SELF'] in a script at the address [url]http://example.com/test.php/foo.bar[/url] would be /test.php/foo.bar. The __FILE__ constant contains the full path and filename of the current (i.e. included) file.

If PHP is running as a command-line processor this variable contains the script name since PHP 4.3.0. Previously it was not available. 

I'm running php 4.4.4, so I don't see anything that precludes me from using it, or do I need to put it in the format of $_SERVER['PHP_SELF'] ? I'm almost positive that I've used it by itself in the past.

What am I doing wrong to cause this to provide an error?

I apologize ahead of time for my incredible ignorance.

thanks,
json

    or do I need to put it in the format of $_SERVER['PHP_SELF'] ?

    Yes.

      Write a Reply...