On 2005-10-27, EnjoyNews <a@a.dk> wrote:
Quote:
I have a php site I have an include line called "include 'Cookie.php';"
But isn't there a way to do this anyway.
Maybe by some javascript that executes the Cookie.php fil or something. ??
The site has a lot a pages, and I would rather not rename them all to .php
and the shtml include to php include on all the pages. |
Javascript can't communicate with PHP. by the time the browser sees the
javascript the PHP has finished executing.
Quote:
I have a menu that is included on all the pages, so if it could be executed
in the menu file, I will count all hits, nomatter what site people enters
first. |
the easiest way is just to log the IP addresses of the computers, that'll
give a fair indication of how many different people visit on any day.
Otherwise maybe you could move all your SHTML down one directory deeper and
use a PHP errordoc, to serve them.
Another way would be to translate the SHTML to PHP. require() works like
include...
--
Bye.
Jasen