I made an .htaccess file and uploaded it to my server
with the lines
AddType application/x-httpd-php .wml
AddType application/x-httpd-php .html
AddType application/x-httpd-php .htm
that way my php scripts work with the .wml, html and htm files... i'm
planning to add another 2 lines later, but i've yet to observe that these
below work
AddType application/x-httpd-php .xhtml
AddType application/x-httpd-php .xml
HOW I DID IT ---
1. open notepad and type those lines above
2. name it htaccess.txt
3. upload to the server directory where you want php to operate... if you
have the following folder hierarchy, dir1/dir2/dir3/etc if you upload to
dir2, just upload ONCE to the folder where you want php to start operating,
and php will work with all succeeding folders.
4. rename the file to .htaccess don't forget the period before htaccess
my server has apache
so you really don't need the tags to be phtml or php
I DID THIS BECAUSE I don't want people to know i'm using php.
also i also have a problem with php i couldn't figure out... its the one
with the heading "help me please i need a magic word / function" can you
guys read that and answer back? thanks
"Kurda Yon" <ku******@yahoo.com> wrote in message
news:f8**************************@posting.google.c om...
Sorry for the stupid question. I created *.html file with the
following contents.
<html>
<head>
<title>Example</title>
</head>
<body>
<?php
echo "Hi, I'm a PHP script!";
?>
</body>
</html>
Then I tried to read this file by Netscape and only what I could see
was white background. Can you tell me why? I use Linux Suse. Do I need
to instal something to be able read mentioned *html file?
Thank you.