This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I have a company website that I want to add a visitor counter to. Its an internal website so I cant add a counter that would call anything outside of the internal website eg. sitemeter... I have tried php scripts that I found online and one java script that I found online and they seem to not do anyhting. I assume its my setup that is causing the problem. I have IIS installed(was already installed before I got here, by the last guy). This site has some jave script and PHP that actually does work. I am just trying to add a counter to the main page. it called default.htm right now. the code I was using just opens a file, reads the number, adds 1 to it,displays it on the screen and then closes it back. pretty simple except that it doesn't work.
on the server I have renamed the .htm file to .php4 and it runs. Seems that PHP ignored any code inside a .htm file. I have a php opening a file, adding one to the number, displaying it on the screen and then saceing and closing the file.
you can change the .htaccess file to tell php to check for php code inside of html files, but I dont have a .htaccess file and they said that it was setup by IIS. I could not find anywhere in IIS where it was setup. that's why I just renamed the file.