This is enabled by default in 1.7.4 that I used for testing.
Tested in XAMPP 1.7.4 and *.phps is working fine with no need to do anything at all with any configuration file.
It is covered in \xampp\apache\conf\extra\httpd-xampp.conf file in this section
- Code: Select all
<FilesMatch "\.phps$">
SetHandler application/x-httpd-php-source
</FilesMatch>
My test was to change the extension of \xampp\htdocs\xampp\splash.php to splash.phps and load it in my browser using
http://localhost/xampp/splash.phps and this was the result
- Code: Select all
<html>
<head><title>XAMPP</title>
<link href="xampp.css" rel="stylesheet" type="text/css">
</head>
<body class=white bgcolor=#ffffff>
<center>
<img src=img/blank.gif height=180 width=1><br>
<!--
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0,0"
ID=anim WIDTH=400 HEIGHT=100><PARAM NAME=movie VALUE="splash-swf.php"> <PARAM NAME=loop VALUE=false> <PARAM NAME=quality VALUE=high> <EMBED src="splash-swf.php" loop=false quality=high WIDTH=400 HEIGHT=100 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED></OBJECT>
-->
<img src="img/xampp-logo.jpg">
<p>
<?php
include("lang/languages.php");
$i=0;
while (list($key, $value) = each($languages))
{
if($i++)echo ' / ';
echo '<a href="/xampp/lang.php?'.$key.'">'.$value.'</a>';
}
?>
<p>
</center>
</body>
</html>
As opposed to the splash.php which gives the language selection screen for the XAMPP Demo Welcome page.
Test it using the above method and let me know if it is different for your but specify which XAMPP version you are using.
Good luck.