Shoutbox

PHP hide .php. - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Skype & Technology (/forumdisplay.php?fid=9)
+---- Forum: Tech Talk (/forumdisplay.php?fid=17)
+----- Thread: PHP hide .php. (/showthread.php?tid=47964)

PHP hide .php. by leito on 07-23-2005 at 06:10 AM

This question was for Keystorm, but I can't find him! I remember in KSMAS (now CBC) you could add could display the image as image.php or image.png. Well I want to do something similar but with xml. I'm generating a xml file type for a playlist with php, and with Firefox it works fine but it seems IE is not accepting that. Well if someone can help, thank you very much!


RE: PHP hide .php. by Eljay on 07-23-2005 at 06:36 AM

make a htaccess file with the following in it

code:
AddType application/x-httpd-php .xml

RE: PHP hide .php. by leito on 07-23-2005 at 06:37 AM

that would allow any file to have a ".xml" extension?


RE: PHP hide .php. by WDZ on 07-23-2005 at 06:43 AM

quote:
Originally posted by leito
that would allow any file to have a ".xml" extension?
It would make any *.xml file be considered a PHP file. So if you had a file called blah.xml with PHP code inside, that PHP code would be parsed and executed just as if the file was called blah.php.
RE: PHP hide .php. by leito on 07-23-2005 at 06:46 AM

Thanks WDZ and LeeJeffery, by the way I was using musicplayer.sourceforge.net wich is a nice mp3 flash player, if someone  need one!


RE: PHP hide .php. by Supersonicdarky on 07-23-2005 at 12:27 PM

i think this flash player is the best! :D