Jump to content
xisto Community
FirefoxRocks

Php Cli Input File

Recommended Posts

I have wrote a PHP program for the command line. Currently it is using STDIN for input, but in this case I need it to read from a file. How do I pass the file onto the program in an argument if I'm using the command line?Currently I execute my programs using:php -f ./myprogram.php

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.