By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,751 Members | 1,175 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,751 IT Pros & Developers. It's quick & easy.

argument

P: n/a
Hi all

I want to use php for shell scripts but I can't find anything about
commandline arguments (like testscripts.php arg1 arg2 arg3).Is it possible
to access the arguments in php?

TIA
Kaare
Jul 17 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
On Thu, 10 Jun 2004 20:07:16 +0200, "None" <no**@none.no> wrote:
I want to use php for shell scripts but I can't find anything about
commandline arguments (like testscripts.php arg1 arg2 arg3).Is it possible
to access the arguments in php?


http://www.php.net/manual/en/features.commandline.php

--
Andy Hassall <an**@andyh.co.uk> / Space: disk usage analysis tool
http://www.andyh.co.uk / http://www.andyhsoftware.co.uk/space
Jul 17 '05 #2

P: n/a
*** None wrote/escribió (Thu, 10 Jun 2004 20:07:16 +0200):
I want to use php for shell scripts but I can't find anything about
commandline arguments (like testscripts.php arg1 arg2 arg3).Is it possible
to access the arguments in php?


Sure:

$_SERVER['argv']
$_SERVER['argc']

--
--
-- Álvaro G. Vicario - Burgos, Spain
--
Jul 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.