i am writing .txt file using two tables linked with a common field through a php programe but it is takeing very much time in creating the .txt file as well as it also writes very slowly in that file how can i speed up my process
writing a txt file is very slow using a php script using two tables linked with a com
Collapse
X
-
Tags: None
-
Start by posting your code. We can't really suggest improvements if we can't see what you have now.
One piece of general advice I would give you, when dealing with file IO, would be to use memory buffering wisely. An actual IO write operation is always expensive, so writing every character (byte) individually will be far slower than writing, say, a whole kilobyte of data in one operation.
Comment