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
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
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
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
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
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
201 - 206 of 206 matches
Mail list logo