[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] [RaQ4] PHP without .php



Hi,

deleted all the other gumf...

this is pretty easy...

with no changes to your <stock> cobalt system with php installed and turned on, these will get parsed by php:

www.domain.com/file.php
&
www.domain.com/file/ ( note the final forward slash, wont work without that!)

It is also possible to edit your .htaccess file to allow you to run .htm etc files as php files.

--------------------------------------------------------------
#.htaccess in directory where this functionality is required
# parse htm pages as php pages
AddType application/x-httpd-php .htm
--------------------------------------------------------------

with that in place, you can write a page - 'hello-world.htm'

<html>
<body>
<?php
print "hello world";
?>
</body>
</html>

and it will parse the php script in the html file.


hope this helps to clear it up for you.

MJM

_________________________________________________________________
MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx