Re: [PHP] Get filename in php command line

2001-07-17 Thread Reuben D Budiardja
I had that before. OK, seems that my problem is not that simple. The thing is , I have something like this in my file test.php: require('my_api.inc'); echo This is test.php3; Now, in my_api.inc, I want to know that I run test.php3, when I do bash$ php test.php3 and the filename is test.php3

RE: [PHP] Get filename in php command line

2001-07-17 Thread Boget, Chris
I had that before. OK, seems that my problem is not that simple. The thing is , I have something like this in my file test.php: require('my_api.inc'); echo This is test.php3; Now, in my_api.inc, I want to know that I run test.php3, when I do bash$ php test.php3 and the filename is

Re: [PHP] Get filename in php command line

2001-07-17 Thread Reuben D Budiardja
On Tuesday 17 July 2001 11:14 am, Boget, Chris wrote: in my_api.inc, have the following code: echo Currently Running file is: ; echo ( $CurrentRunningFile ) ? $CurrentRunningFile : __FILE__; in test.php ? $CurrentRunningFile = __FILE__; include( my_api.inc ); echo This is

[PHP] Command Line

2001-04-30 Thread Randy Johnson
how do access arguments if I run a script from the command line example php myscript.php arg1, arg2 thanks randy -- 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

Re: [PHP] Command Line

2001-04-30 Thread Steve Werby
Randy Johnson [EMAIL PROTECTED] wrote: how do access arguments if I run a script from the command line example php myscript.php arg1, arg2 They'll be located in the global array $argv[]. Include ?php phpinfo(); ? in your script to see how to access them. -- Steve Werby President, Befriend

Re: [PHP] How to pass variables on php command line ?

2001-02-22 Thread Simon Garner
From: "Leonard Schneider" [EMAIL PROTECTED] I use PHP as script to generate HTML pages using the command php -q script.php file.html I would like to pass some variables to the PHP script so that it generates a different HTML file. I tried the -d option but it seems it doesn't work. Is

<    1   2   3