moldboy 0 Report post Posted July 8, 2005 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
truefusion 3 Report post Posted July 8, 2005 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
moldboy 0 Report post Posted July 8, 2005 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
Hamtaro 0 Report post Posted July 8, 2005 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
jmb2006 0 Report post Posted July 8, 2005 now that were on this topic, how would you parse filenames with no extensions as php files, e.g.http://www.some-site.com/index?content=blahfor security. Share this post Link to post Share on other sites
truefusion 3 Report post Posted July 8, 2005 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
HmmZ 0 Report post Posted July 8, 2005 james 666thats function based PHP, you can google, but if you want a full explanation from me or some php guru(Hiya SystemofWisdom ) on the forums, tell me Share this post Link to post Share on other sites
truefusion 3 Report post Posted July 8, 2005 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
Hamtaro 0 Report post Posted July 8, 2005 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
sachavdk 0 Report post Posted July 15, 2005 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 Impressing my friends with "serversided html" though its just phpparsed html Share this post Link to post Share on other sites