[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] [RaQ4] PHP without .php
- Subject: Re: [cobalt-users] [RaQ4] PHP without .php
- From: "cobalt raq4" <cobalt_list@xxxxxxxxxxx>
- Date: Tue Aug 20 03:17:01 2002
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
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