Jump to content
xisto Community
moldboy

Parsing .html Pages

Recommended Posts

This isn't really that urgent but I was wondering, I read somewhere that you can configure you server to pars all html pages for php code, and I was wondering if that was true, and if Xisto has that feature enabled?

Share this post


Link to post
Share on other sites

Yes, it's true. I did it to my account, just incase i wanted an HTML document to translate php coding. Go to mime types from your cpanel and add a mime type: application/x-httpd-php : .html

Share this post


Link to post
Share on other sites

Thanks! Just one more thing, if I were to ever want to do one of those complex thing in the address, you know, index.php?link=food, or something, would that still work with an html page (index.html?link=food)?

Share this post


Link to post
Share on other sites

Yes it would, since the page is being parsed as a PHP script. Anything that was done using .php would work exactly the same way as it would set as .html.

Share this post


Link to post
Share on other sites

now that were on this topic, how would you parse filenames with no extensions as php files, e.g.
http://forums.xisto.com/no_longer_exists/

for security.

I've read this somewhere, i think it was another feature you get for making html pages read php coding. But, i cant remember. I'll reply later when i get the full info on that..

Share this post


Link to post
Share on other sites

james 666thats function based PHP, you can google, but if you want a full explanation from me or some php guru(Hiya SystemofWisdom :P ) on the forums, tell me :unsure:

Share this post


Link to post
Share on other sites

now that were on this topic, how would you parse filenames with no extensions as php files, e.g.
http://forums.xisto.com/no_longer_exists/

for security.

I've found something similar to what you're asking for. I dont know if it will help you, but it's a start.

http://www.lovemyvouchers.co.uk/

Share this post


Link to post
Share on other sites

If that's not what you're looking for, then try this:

You would have to add this to .htaccess (The PHP Manual says httpd.conf, but it should work in .htaccess):

 

<Location /index>    ForceType application/x-httpd-php</Location>

That would make it run as a PHP script. Also, if you want that to be the index, you would also have to add this to .htaccess

DirectoryIndex index

I hope that helped you. I don't quite know that much about this, though.

Share this post


Link to post
Share on other sites

Yes, it's true. I did it to my account, just incase i wanted an HTML document to translate php coding. Go to mime types from your cpanel and add a mime type: application/x-httpd-php : .html

158685[/snapback]

Cool :DB):P Impressing my friends with "serversided html" B) though its just phpparsed html B):)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | 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.