Hello, everybody!!!
I am sorry I am just a newbie, so my question will
sound probably silly to you.
I've just created a new account on one php-supporting
server, created my SQL database there, and uploaded
into the same directory these two files:
1) file's name:
welcome.txt file's content:
Will this file with these
lines be opened by php code?2) file's name:
fileopen.php file's content:
<html>
<body>
<?php
$file=fopen("welcome.txt","r") or exit("Unable to open file!");
?>
</body>
</html>As far as I understand, the php script in "
fileopen.php"
should open my "
welcome.txt" for reading, right? However,
when I click on the the file's link
(
http://insights.freehyperspace5.com/exp/fileopen.php ),
my browser shows the full content of "
fileopen.php", instead,
as if it were an html file. Why is it so?