is PHP inside the If add PHP call can execute?
My PHP source code has an IF,
For example, if the message is successful, it shows: Message added successfully, I want to add a execute PHP executable file, all directly open is a PHP execution, in the inside can invoke PHP? How do I write this, using include or what? Can you just let the message pop up and then execute the PHP file I specified?
Source file:
if ($result = = 1)
{
ShowMsg ("message added successfully");
I want to add the PHP file to execute here;
}
Else
{
ShowMsg ("message added failed");
}
------Solution--------------------
PHP Code
if ($result = = 1) { showmsg ("message added successfully"); EXEC ("c:\path\php phpinfo");} else{ showmsg ("message added Failed");}
------Solution--------------------
if ($result = = 1) {
Include ("http://www.xxxx.com/test/testemail.php");
ShowMsg ("message added successfully");
}else{
ShowMsg ("message added failed");
}
------Solution--------------------