SHTML, PHP, Stats and more!

software development

#1

Questions:

Stats:
I’d like to install a more comprehensive stats package on my server. This usually requires a path to “access_log”, “error_log” and “referrer_log.” Does anyone know the exact file path to our log files? Specifically, the referrer logs. I’m a bit confused as the URL to our stats are http://www.localhost.com/stats, but I don’t see them when I ftp into my server. I do see the /logs, although, I can’t work out the direct path. Also, would I need to install this package within the /logs folder? Any help would be greatly appreciated.

PHP and SHTML:
Is it possible to embed php and shtml files within html pages? DH servers do not appear to execute these files unless the actual extension of the page is named php or shtml.

Thanks-
tam


#2

You can use an Apache directive in an .htaccess file to either parse all documents for .shtml or you can use the so-called ‘XBitHack’ (do a search on google or another search engine to get more information on how to use this) - basically you either set your html files to be executable or not depending on whether you want them to be parsed for Server Side Includes or not.

If you want to parse html files for PHP, you’d add something like this to your .htaccess file:
AddType application/x-httpd-php .php .php4 .php3 .phtml .txt .html .htm

This is an example; in this example, files with the extensions .php .php4 .php3 .phtml .txt .html .htm are all parsed for PHP.

If you have any other questions, feel free to contact support, or check the documentation at:
http://apache.org/