Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

504 Gateway Time Out puzzle

Status
Not open for further replies.

sunbase

Technical User
Jun 18, 2009
15
GB
I have code to extract data from an XML feed and post it to mySQL tables.

$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?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top