I need to know if there is any limit (or at least a practical limit) to the size that a PHP array can be.
This is the reason I am asking...
I wrote some PHP code and setup a mysql database to help a company that needed to take data from their inventory and merge it with inventory data from two suppliers (match similar part numbers in each file to add inventory quantities together an then eliminate zero quantity items to create datafiles for distribution.).
To make a long story short... I created PHP programs to parse and upload the raw data into tables in mysql... then another program that does the match, merge, pear-down and output of the data to another final table... which will be their online inventory and a source to output CSV files from.
It works great... it's a little slow... but works great.
HOWEVER... This is going to be hosted on an off site server account (not an internal company server)... and I just found out that due to the fact that the web hosting company allows a maximum of 90,000 mysql transactions per hour... my script will not work (The total rows of all three files I am importing comes to 102,834 records... and with all the importing INSERT, SELECT, UPDATE, and DELETE mysql commands that must take place for each record during the parsing... I am nowhere close (as in multiply by 10 or more)!
When the file finishes processing... it eliminates most of these 102,834 records (due to duplicates and zero qnty items being removed) with a final result file of only about 19,000 items)
SO... I have decided that the only way to make this work with the limitations on the number of Mysql transactions i can have, is to load the data into php arrays and process it there, before sending it to the database.
My only question is... if I invest the time to code such a beast... will I end up being limited by the size an array can be or the time it takes to process the PHP file before it times out... or any other limitations?
I'd hate to code the whole blasted thing an find out it is impossible anyway!
how else might I do this?
suggestions?