I am writing a script using php's command line ability and I am lost on 
how to work with a file when I don't kow what the file's name is.

script.php -f <file>

In my script, how do I reference the file when I have no idea what it's 
name is going to be?

The scrip will get called by another application: the other application 
will pipe a file to my scrip and then the scrip has to work with the 
file and output an altered file with a new filename. I have no idea what 
the name of the file is going to be beforehand.

Many thanks in advance.


Lucas Rockwell

PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to