I have code to extract data from an XML feed and post it to mySQL tables.
$propertyid = $objDOM->getElementsByTagName("property");
foreach( $propertyid as $value ){
}
It works fine - it extracts the data, corrects formats where necessary, corrects data errors and successfully post to mySQL tables - my problems start when it finishes - I want to automatically call another page using a header location command so there is no on-screen output but once the extraction is complete I receive a 504 Time Out error message. If, however, I add a simple counter and echo the incremented variable on each loop I dont get the error but of course cannot use the location method of calling the next page.
Can anybody explain this to me in simple terms and/or offer me a solution please?
$propertyid = $objDOM->getElementsByTagName("property");
foreach( $propertyid as $value ){
etc etc }
It works fine - it extracts the data, corrects formats where necessary, corrects data errors and successfully post to mySQL tables - my problems start when it finishes - I want to automatically call another page using a header location command so there is no on-screen output but once the extraction is complete I receive a 504 Time Out error message. If, however, I add a simple counter and echo the incremented variable on each loop I dont get the error but of course cannot use the location method of calling the next page.
Can anybody explain this to me in simple terms and/or offer me a solution please?