blogscrubber Posted May 12, 2007 Share Posted May 12, 2007 I've recently been working on a website thumbnails program i'm developing for linux and have got the program to work without any errors as far as capturing the thumbnail and displaying it but i really need help with creating a queue program to log the http requests as they come in, have seen it done with ajax but i want to create a simpler version of a queue using php and a textfile, queue.txt, with read, write access that would display time left, order in queue, please help this website thumbnails program is going to be completely free of charge forever just need a queue to handle the load, the program only successfuly captures one thumbnail at a time but if thumbnail is cached it will display without error, even if 1000 people call the program! thanks for any advice and help. heres a dumb little script i've been working on, trying to learn ajax for this though! $fp = fopen("thumbnail/array.txt","a"); $address = $website_url; fwrite($fp, $address."\n"); fclose($fp); the above code will write the url to the array.txt file, but what i want is basically the time of request, order of request written as well and how long till the requests in queue are captured and cached! Is this possible using a textfile as the array??? thanks again brandon. I have set up a virtual host for beta testing, right now it only will capture 1 url at a time until the queue is in place! http://24.16.171.223/thumb.php?url=http://www.msn.com http://24.16.171.223/thumb.php?url=http://www.msn.com&x=300&y=300&full 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.