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.
-
Sometimes small small mistakes are very frustrating. I was doing <link rel="stylesheet/css" type="text/css" href="style.less"> but I should have been done<link rel="stylesheet/less" type="text/css" href="style.less">
-
-
HTML files contains:
<!doctype html><html><head><link rel="stylesheet/css" type="text/css" href="style.less"><script type="text/javascript" src="less.js"></script></head> <body><h1> This is a header. </h1><p>Now this is paragraph.</p></body></html>
And my LESS file contains this:
h1 {font-size: 12px; /* Just trying to check */font-weight: bold;}
I know so I have less file before the less.js. But I am not able to see any change in header.
Can't read the file
in PHP
Posted
Why can't I read file.txt?