| Welcome to WebmasterWorld Guest from 188.8.131.52 |
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
|Pubcon Platinum Sponsor 2014|
|Run .php with .bat file|
need to pass GET variables
| 7:44 pm on May 29, 2012 (gmt 0)|
My .bat file consists of the following line which works.
C:\php\php.exe "C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\test.php"
How would I properly do something like this?
C:\php\php.exe "C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\test.php?var1=A&var2=B"
| 8:14 pm on May 29, 2012 (gmt 0)|
Heh. The good old Argument Vector. :-) It's not $_GET, it's $argv. ( @ARGV in Perl.) Check it out [php.net].
All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved