Jump to content

trying to create a queue for a thumbnails program use ajax?


blogscrubber

Recommended Posts

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.