المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : how to send params to php script



C++ Programming
01-24-2010, 09:00 PM
hi,i want to build a mini webserver,in php,we can use "$_GET['param']" to get the params,when i receive the url like "GET /test/test.php?param1=test&param2=123 HTTP/1.1" how to send the params to my php script file?
i try to execute "php.exe test.php -f param1=test param2=123",but it doesn't work ,when i seach on google ,find some about "cgi protocols" ,can anyone tell me how to do it?