When testing and developing some scripts, I would like to be able to define certain $_GET variables.
When a script is called trough mod_php/apache these variables will be defined by adding ?foo=bar to the url.
Is this possible at all?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
No, Its not possible via CLI. However you can manually assign the value to the
$_GETvariable.OR you can use the command line arguments and assign them to the
$_GET.^^That’s a little bit manageable..