homepage Welcome to WebmasterWorld Guest from 54.161.175.231
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

    
Run .php with .bat file
need to pass GET variables
StoutFiles




msg:4459163
 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"

 

rocknbil




msg:4459168
 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].

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved