Hello, This is a reply to an e-mail that you wrote on Tue, 5 Aug 2003 at 17:57, lines prefixed by '>' were originally written by you. > I would prepare the file on disk instead of memory. If you do > increase the memory to handle bigger files, what happens when you > get 10 requests at the same time? about 80MB of memory used.
Correct me if I am wrong but would it not be better to use the functions he is currently using (which prepare the data in volitile memory) for as long as they allow for this. The OS should then realise when it does not have enough physical RAM for each of the requests and handle swapping onto disk itself as and when it is needed. This would mean you haven't got the overheads of writing lots of data to disk, just to delete it again when you do only have one request at a time and have plenty of RAM spare to take care of the operation. David. -- phpmachine :: The quick and easy to use service providing you with professionally developed PHP scripts :: http://www.phpmachine.com/ Free PHP error handling script: www.phpmachine.com/error-handler/ Professional Web Development by David Nicholson http://www.djnicholson.com/ QuizSender.com - How well do your friends actually know you? http://www.quizsender.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php