working on a php counter and was wondering if you could add some sort of include or something of that nature to a static html page. And then that would call a php page to add to the counter and that. I know howto right the counter etc but I usually make all my pages .php i want to have them .html
Thanks
You could set up your server filters to parse .html files with PHP.exe. But that could be fairly impractical. :=)
whould .phtml or .shtml be ok?
you could include the script on both of those
hey Ryan, I do the same thing with my counter, however, I changed the page with the counter to .php, would that be ok?
html code html code html code
<?PHP include('counter.dat'); ?>
html code html code
You can... Using javascript you can "include" code. You might have seen it before on the web, using *.js filenames...
I am familiar with the .js and javascript, how could that be used in this situation? any idea where i could look up some more on doing it with this method
not the solution i am looking for i could switch the extension to .php easily enough but i want to be able to use them on .html pages. so normal users without php can enter a line of code like hitbox or whatever do and then it calls a page that does the calculateions that you never see... but i dont knowhowot call a dynmaic page from a non dynamic pageb
there are loads of resoursen on the web that has info about .js's and that type...
It was just an idea, as I know no other way of actually including info into a .html in any other way.
I (if I understand you correctly) dont understand why you need .html extensions...
Mainly so i can keep statistics on page that aren't php enabled. Ive got a existing page tracker that i built but it requires php extensions. I would like people to be able to use this on servers without php enabled so they can just toss ina line of code and it will still do the tracking ect. I have seen stuff included in <img src tags and im goign to look into that, that maybe able to run a php. page externally as long as i return an image. i think. well ill look into it more, thanks for you help
Ryan