It's kind of complicated and i'll try and explain it a bit better.
What i am doing is extracting a php file from a zip archive the contents of the extracted file are stored in a var, now at the moment i know i can get it working by writing outputing that var to a temp text file then looping through it line by line untill i find the correct insert statement and then disecting the line to get the values i need from the insert statement, I was more hoping that someone could help me with a pattern to find the insert statement in the var without having to write it out to a file first.
at the moment there is no code but i know that i could do it the way above but would rather not have to write it out to a temp file.
Cheers
|