I am trying to open a .css file with the fopen() function:
<?
$myFile = "styles.css";
$fh = fopen($myFile, 'r');
$theData = fgets($fh);
echo $theData;
fclose($fh);
?>
result:
body{
So far, all I'm getting is the first line, and nothing that follows.
I'm assuming that it's because it's a web file, which probably collides with the browser.
Does anyone know how I'd go about viewing it?