Forum Moderators: coopster

Message Too Old, No Replies

Run .php with .bat file

need to pass GET variables

         

StoutFiles

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

WebmasterWorld Senior Member 10+ Year Member



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"

rocknbil

8:14 pm on May 29, 2012 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



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