How to display variables on error?

aksemsettin

New Member
I am getting occasional Undefined offset issues when parsing a large file inside PHP.How can I display the variables ONLY when the error occurs, to see what the issue is?The error is occuring at this point of my php\[code\]list($export_date, $application_id, $language_code, $title, $description, $release_notes, $company_url, $suppport_url, $screenshot_url_1, $screenshot_url_2, $screenshot_url_3, $screenshot_url_4, $screenshot_width_height_1, $screenshot_width_height_2, $screenshot_width_height_3, $screenshot_width_height_4,$ipadscreenshot_url_1, $ipadscreenshot_url_2, $ipadscreenshot_url_3, $ipadscreenshot_url_4, $ipadscreenshot_width_height_1, $ipadscreenshot_width_height_2, $ipadscreenshot_width_height_3, $ipadscreenshot_width_height_4 ) = explode($delimiter, $line);\[/code\]So I would like to echo all the variables on the offset error, if no error, just move onto the next record without doing anything.
 
Back
Top