Where is php.ini usually located for shared hosting accounts?
How do i use custom MIME types for PHP files such as filename.inc?
thanks in advace
If you can, use phpinfo(), and you should see something like Configuration File (php.ini) Path. Next to it is the locations
I'm not sure exactly what you mean, but I think you want a .inc file to be parsed by PHP. . .
If you have Apache as the server, and you have .htaccess enabled, add this line to a .htaccess file to make .inc be parsed by PHP. (You can just change .inc to whatever to have that parsed by PHP too)
AddType application/x-httpd-php .inc
If you don't have access to .htaccess, ask you administrator if s/he can add that to the server's configuration file
The php.ini path shown doesn't even exist in my shared host account
Also , when i added that line to '.htaccess' file , i got the following error (when i tried to request the .inc file) :
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, firstname.lastname@example.org and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
This topic is now closed. New replies are no longer allowed.