I've just installed XAMPP and it won't parse PHP files. I may be missing something obvious but I guess we'll see.
I have a sample index.php in the document root. This is set as the default: C:XAMPPhtdocs There are no competing .htm* or php files. and httpd.conf was already set to automatically load an index.php file on directory perusal. If I browse to localhost, I just get text output.
<?php
$fp = fopen("counter.txt", "r");
$size = filesize("counter.txt");
echo "$sizen";
$count = fread($fp,$size);
fclose($fp);
$count++;
$fp = fopen("counter.txt","w");
fwrite($fp, $count);
echo "$count views";
?>
Please halp
برچسب:
نویسنده: استخدام کار