On Feb 7, 10:53 pm, Michael Fesser <neti...@gmx.dewrote:
.oO(lawrence k)
Suppose I have a PHP script that I call at the Linux command line
(Ubuntu), and it gets all the paths to files and directories that
exist inside of some directory. All this data gets stored in an array.
How do I get this array to another PHP shell script? Can I use pipe?
/etc/getAllPathsForDomain 'thesecondroad.org' | /etc/
findFilesUpdatedInLast24Hours
Is the syntax basically right? Is this how I should build it?
The array should be serialized and written to php://stdout (print or
echo). The second script can then read the input from php://stdin with
one of the various file system functions and unserialize the data.
Thanks, I'm trying to run a cron job that will run once a day. What is
the syntax of php://stdout? Is this something I put at the end of the
first script, and then php://stdin is a line that I place at the
beginning of the second script? If I do this, do I still need to do
use pipe? Or do I just forget about that?