Hi,
I have written a content management application in PHP. It allows users to build web sites with information pages and stock pages etc...
They are formed from a table with pageno, paragraph no etc...
Until recently everything has been OK, but I am having problems with the paragraph numbers being duplicated. After several weeks of headaches I have located the problem.
An example if a user has 300 items on a page when item 1 is deleted the script moves all the paragraph no's down 1 position. In addition to this it also renames images (an oversight in my part not having a primary key in the database at the start).
The problem is that if a user looses their connection or presses the stop button the moving down of the paragraph no's stops and the images may not be renamed.
What is the best way of trapping the stop button or disconnect and forcing the script to continue to completion.
I have tried the function ignore_user_abort() but this doesn't seem to work (mind you I was using it at the top of the PHP function file and not in my function itself). There is a reference to a setting in php.ini for turning it on/off but it is not in my php.ini.
Anyone got any ideas.
Thanks,
Mark