Jump to content

PHP $_SERVER error php.ini


Recommended Posts

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:

Options +ExecCGI
AddHandler php-cgi .php
Action php-cgi /cgi-bin/php.cgi

 

now ever since i did that, when i try to use:

$_SERVER['SCRIPT_FILENAME']

 

instead of displaying "filename.php" like it used to, it now displays "php.cgi"

 

Help?

Link to comment
https://forums.phpfreaks.com/topic/44166-php-_server-error-phpini/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.