PHP $_SERVER error php.ini
Posted: Sat Mar 24, 2007 4:33 pm
ok, i finally expanded my file uploads size using this tutorial:
http://wiki.dreamhost.com/index.php/PHP.ini
so i now, in my /home/username/website.com/cgi-bin/, have my custom php.cgi and php.ini files.
now to enable them for usage i had to put this in the .htaccess file:
now ever since i did that, when i try to use:
instead of displaying "filename.php" like it used to, it now displays "php.cgi"
Help?
http://wiki.dreamhost.com/index.php/PHP.ini
so i now, in my /home/username/website.com/cgi-bin/, have my custom php.cgi and php.ini files.
now to enable them for usage i had to put this in the .htaccess file:
Code: Select all
Options +ExecCGI
AddHandler php-cgi .php
Action php-cgi /cgi-bin/php.cgiCode: Select all
$_SERVER['SCRIPT_FILENAME']Help?