Hello Martin,

> I start a console app with
> 
> php myscript.php4 (just prints "ok").
> 
> How can I give parameters to it? I tried:
> php myscript.php4 myparameter
> php myscript.php4?myparameter
> php myscript.php4?param=myparameter
> 
> But always php just returns without doing nothing (not even giving an
> error or printing "Ok"!) I'm using PHP 4.2.3. on Windows2000).


I'm using the same version/platform and things work fine (for me).

Manual: Chapter 23. Using PHP from the command line 

You are correct the first time.

What do argv and argc tell you?
Is the php.ini file set up so that these variables are shown/valid?

Regards,
=dn


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to