Re: [PHP] Command Line PHP Advice

2006-01-29 Thread Nirmalya Lahiri
Angelo, I am very happy after knowing that it is working. :) --Nirmalya Angelo Christou <[EMAIL PROTECTED]> wrote: Hello Nirmalya, Thank you for your response. With the help of your reply, I've now got it working! :) Ang. Nirmalya Lahiri <[EMAIL PROTECTED]> wrote: Hi, you can do th

Re: [PHP] Command Line PHP Advice

2006-01-29 Thread Nirmalya Lahiri
Hi, you can do this by using unix command 'for'. Please apply the command written below & reply me your experiment result. for filename in `ls *.txt`;do ./edit.php $filename var1 var2;done --Nirmalya Angelo Christou <[EMAIL PROTECTED]> wrote: Hello List I would like some advice from PHP us

Re: [PHP] Command Line PHP Advice

2006-01-28 Thread Chris
Angelo Christou wrote: I read that it's better to split scripts up into small reusable parts so my plan is to keep the logic out of the edit.php script and simply pass the variables to it using another script. Am I on the right path doing this? That is a good ideology, but whether it's bes

[PHP] Command Line PHP Advice

2006-01-28 Thread Angelo Christou
Hello List I would like some advice from PHP users regarding PHP and the command line. I have a PHP script that does a whole bunch of stuff to a file on my intranet. ./edit.php filename var1 var2 Everything works fine but I need to run it on a list of files - ./edit.php invoice00212.txt var1