Basic PHP help is needed
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, my browser shows the
full content of "fileopen.php" instead, as if it were an HTML
file. Why is it so?
Backup, Clone & Protect Your WordPress Sites w/ BACKUP CREATOR"
Roger Willcocks
L-Space Design
Please vote to help me win a 3kW solar array