I'm building a simple web site building tool. The user fills in their
database requirement in a html form. The DB is created and the scripts are generated for that site.
This is all done using string replace calls in my own replace function. I need to make 11 calls to the replace function for filling
the gaps in on 1 file. Each replace call opens the file searches for a flag and
replaces it etc.
It works fine up to 9 calls. I need it to work for 11.
When I execute it with the 11 calls the changed file is missing about 5 lines at the end. Looks like the script dies, failling to complete.
Anyone got any ideas what the problem might be?