Welcome to WebmasterWorld Guest from 50.17.114.227

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

Run .php with .bat file

need to pass GET variables

     
7:44 pm on May 29, 2012 (gmt 0)

Senior Member

WebmasterWorld Senior Member 5+ Year Member

joined:May 6, 2008
posts:2011
votes: 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)

Senior Member

WebmasterWorld Senior Member rocknbil is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Nov 28, 2004
posts:7999
votes: 0


Heh. The good old Argument Vector. :-) It's not $_GET, it's $argv. ( @ARGV in Perl.) Check it out [php.net].