hi all!
Im trying to include a CSS file in the header of a php-in-html file and I keep getting this error:
[quote]
[url]http://www.purefan.xennos.com/new/config/css-default.css
Warning: filesize(): Stat failed for [url]http://www.purefan.xennos.com/new/config/css-default.css
Warning: fread(): Length parameter must be greater than 0. in /home/purefanx/public_html/new/top.php on line 34
this
now I am printing the value used to open the file: that value is the very first line in the last quote.
Here’s the php code im using:
[code=php]
<?php
echo $_default[“css_path”];
?>
<html><head>
<link REL=”stylesheet” TYPE=”text/css”>
<?php
$myFile = $_default[“css_path”];
$fh = fopen($myFile, ‘r’);
$theData = fread($fh, filesize($myFile));
fclose($fh);
echo $theData;
?>
</head>
<body>this</body></html>
the file in question is as you can try out reachable and I set the chmod to 755
I dont know what’s wrong…
any clue?