This is a problem I can across for developing a counter for a friend. Basically when someone visits their homepage it will increment the count.
Sounds simple and I managed to configure it correctly on my local machine. Then all that was left to do was copy the code onto my friends website hosted by another company.
Only problem is that index.html (his homepage) is not parsed by php. At this point I felt a sick feeling in my stomach. :glare:
After a lot of testing different methods I managed to find a solution. I included a .php file into the static html page by having an image which gets the source from the php file. I have given this a height and width of 1px (needs this for firefox to call it) and then made it hidden.
There is no problems on the homepage and by accessing the php file it makes the server execute it and hence increment the page count.
While I have solved the problem I am feeling there must be a more professional way to do this.
Does anyone else have another method for getting static html to call a php file so that it is executed?
Thanks in advance.