Re: command line option f -- how do i get the name of the file?

From: Date: Sun, 28 Oct 2001 00:34:14 +0000
Subject: Re: command line option f -- how do i get the name of the file?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-72598@lists.php.net to get a copy of this message
> 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. > > Example: > 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. lucas Take a look at environment variables (etc). =dn

« previous php.general (#72598) next »