Welcome to WebmasterWorld Guest from 54.144.79.200

Forum Moderators: coopster & jatar k

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 5+ 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 rocknbil is a WebmasterWorld Top Contributor of All Time 10+ Year Member



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

Featured Threads

Hot Threads This Week

Hot Threads This Month