how to give a commandline arguement
Posted: Fri Nov 07, 2008 12:17 am
i have a got a program which reads about 30 lines from last of another file and so on..
My problem now is :
I want to give the number of lines as an arguement and not as a constant.
the basic command to run the file is
For a c program the command will be a space separated by arguements ..
what is it for a php program?
My problem now is :
I want to give the number of lines as an arguement and not as a constant.
the basic command to run the file is
Code: Select all
php -f filename
what is it for a php program?