-1
I would like to run a PHP file with GET parameters.
If an action is identified, a php file is accessed to capture this action.
php test.
Inside I want to run a PHP url with GET parameters
In test.php we have:
(...)
if ($status == '3'){
//FAZER ALGO
}
(...)
If status is 3 access:
I’ve tried to do it this way:
(...)
if ($status == '3'){
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://www.foo.com/teste2.php?nome=$xxx&email=$yyy");
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_exec($ch);
curl_close($ch);
}
(...)
But the URL is not executed and does not return any error message.
Is there any other way to do the same?
Please [Dit] and provide a [mcve] of the problem, and a better explanation of what would be "not working". A read on Stack Overflow Survival Guide in English can help a lot in the use of the site.
– Bacco
@Marcelo you are trying to redirect to the desired page or show her content?
– Julyano Felipe