I have a problem. I am hosting on a shared server with some hosting company. the server is extremely slow sometimes and it takes awhile to load things. I am running a PHP script on this server in order to log web traffic. I call the PHP script from and <img src> tag. sometimes the script seems to run only once, and it logs a user once for a unique time. sometimes it seems like the script runs more than once and logs the user twice, with the same time, or very close together.
could this be because my script is buggy? I've run through it very very very many times and it doesn't seem like it should loop at all. there's no loops in it at all except for one for loop which is so lowlevel that it couldn't be the problem.
could this be a problem with the server? in that the server is so slow that it's not giving running the script fast enough and so, the web browser calls the image again and again to see whether it can retrieve the file?
I'm stumped! it just couldn't be the code. i mean i've been coding for ages now and if it's a problem with the code then i may as well stop using computers. i'm that sure it's not the code.
any thoughts?
ken
could this be because my script is buggy? I've run through it very very very many times and it doesn't seem like it should loop at all. there's no loops in it at all except for one for loop which is so lowlevel that it couldn't be the problem.
could this be a problem with the server? in that the server is so slow that it's not giving running the script fast enough and so, the web browser calls the image again and again to see whether it can retrieve the file?
I'm stumped! it just couldn't be the code. i mean i've been coding for ages now and if it's a problem with the code then i may as well stop using computers. i'm that sure it's not the code.
any thoughts?
ken