J
jkoXP
Guest
cgi, dosnt matter, just one that looks good, or somethign that I can make my own images out of... thanks for the help!
<?php
if (file_exists("site/inc/visits.txt")) {
$file = fopen("site/inc/visits.txt", "r+");
flock($file, 1);
$count = fgets($file, 4096);
$count += 1;
fseek($file,0);
fputs($file,$count);
flock($file, 3);
fclose($file);
}
$timeout = time()-(60*$timer);
?>
hah, sorry, i completely forgot to mention ...Originally posted by jkoXP
does this display the the number on the site?
im running windows 2000 server, and IIS, i think it does support PHP....
<?include("site/inc/visits.txt");?>
I did all of that, but it dosnt seem to be working?Originally posted by SPeedY_B
hah, sorry, i completely forgot to mention ...
use that where-ever you want to display the number (i forgot about it as i have it in my <title> tags, so i didnt notice itPHP:<?include("site/inc/visits.txt");?>
it didnt.. so how do i setup IIS so it supports php, and perl and cgi?Originally posted by SPeedY_B
You absolutely sure you have PHP ?
create a new page with just this in..
then open it through a browser and "hello world" should be printed.PHP:<?echo "hello world";?>
YupOriginally posted by Zedric
Go to www.php.net and download the Win32 installer. Direct link:
http://www.php.net/get_download.php?df=php-4.2.3-installer.exe
Run it and it will configure IIS autmatically (hopefully). After a reboot you should be able to run the PHP scripts. Perl and CGI is allready supported as far as I know.
Just type in http://server/path/page.php and it should work. There should be no difference between running it locally or remotely.Originally posted by jkoXP
ok, so I can now view php files on my windows 2000 server box thanks to you guys..
but, when I go to open the PHP file on a diff machine, the php page comes up blank (no hello world).. what did I do wrong??