MasterKaos
Programmer
Ok I was wonderring what options I have for getting Apache to parse index.htm for php code. The server is running on a webhosting provider, so I don't have access to the .conf file. I read in another post that
you can serve any extension as a php page
ie .xxx
AddType application/x-httpd-php .xxx (process as a php page)
<IfModule mod_dir.c>
DirectoryIndex zzz.xxx index.html index.php
</IfModule>
(server zzz.xxx before any other page)
Is there anything in phpinfo() that will tell me what extensions are being parsed for php code?
If only .php files are getting parsed and i can't edit the Apache configuration, is there any way i can work around this? Would the html <script></script> tag work?
Redirects are out of the question because i'm using the referer property in the php script, so the php code has to be in the page that is being requested by the browser.
Any suggestions?
----------------------------------------
The first 90% of the code accounts for the first 90% of the development time. The remaining 10% of the code accounts for the other 90% of the development time.
you can serve any extension as a php page
ie .xxx
AddType application/x-httpd-php .xxx (process as a php page)
<IfModule mod_dir.c>
DirectoryIndex zzz.xxx index.html index.php
</IfModule>
(server zzz.xxx before any other page)
Is there anything in phpinfo() that will tell me what extensions are being parsed for php code?
If only .php files are getting parsed and i can't edit the Apache configuration, is there any way i can work around this? Would the html <script></script> tag work?
Redirects are out of the question because i'm using the referer property in the php script, so the php code has to be in the page that is being requested by the browser.
Any suggestions?
----------------------------------------
The first 90% of the code accounts for the first 90% of the development time. The remaining 10% of the code accounts for the other 90% of the development time.