sntshkmr60
-
Posts
5 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by sntshkmr60
-
-
I am developing the file locally with LAMPP and my source file is like this:
<?php echo "The server is working"; ?><?php$file=fopen("file.txt", "r") or exit("Unable to open file!");?>
In the same directory is a text file named file.txt and it has a line on text in it. The output however is only The server is working. Nothing else.
Can't read the file
in PHP
Posted
Why can't I read file.txt?