Problem: To pass a php script multiDimentional array (associative array) which was obtained in perl environment.
What I have:
After my sql query (in perl environment), I get a multiDimentional array. I will be given this by my manager, so I am not worrying about that
Solution (???):
I need to pass the multiD array to php script on command line, but php interprets that as a string. So, I need delimeters.
The solution, I guess, is to:
1st: Before calling php script, convert the multiD array into a string, placing delimeters as we append through the elements of multiD array.
2nd: after php script receives the string, it converts it back to multiD array.
I think it should work out. Thanks for the ideas ProgrammerMan and Ben.
WHY I am doing it?
I build this php library which would take some parameters and deliver a PDF table using pdflib. So far, the process was online. I would predefine queries, users would select them on the web, and what they see is a customizable pdf report.
Now, my manager wants to do it in a batch environment. Since he is familiar with perl/Bshell, he is asking me to modify the pdflibrary so that it can be passed the parameters on command line instead of online sql queries. So, I am working on it.
THanks,
Farzal