jvalarta Posted August 15, 2006 Share Posted August 15, 2006 I am passing variables from a customer's website that doesnt support PHP, to a server that does, like this:IMG SRC="http://myserver.com/script.php?var=foo&ubber=bar"This works perfectly, but the PHP script takes a few seconds to run (as it's doing a bunch of DB stuff) and I need to speed this up. (I believe Ive got the db stuff fully optimized, there is no option for speed increase there)My question is -- is there a better way to do this, or is there some way that the PHP can deliver an image name and keep running the process, without holding up the loading of the page (waiting on the image)? Quote Link to comment Share on other sites More sharing options...
hitman6003 Posted August 15, 2006 Share Posted August 15, 2006 Most likely the delay that your experiencing is due to network latency. It takes time for the browser to send the request to your server, then your server to process it and return a value, then the browser to receive the image file and display it. Quote Link to comment Share on other sites More sharing options...
jvalarta Posted August 15, 2006 Author Share Posted August 15, 2006 Well, I thought that at first, so I used getmicrotime() on my script to time the true amount of time it's taking to process and it's defiantely the amount of work the PHP script has to do (sometimes several seconds) which is just way too long.I need a way for PHP to release the browser and continue on it's process, without the browser having to wait. ??? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.