I have created a page
myfunction.php and added two functions:
function AppNotify ($Uid,$ Message,$ Data)
{
return;
}
function AppNotifyUnfriend($Uid,$ Message,$ Data)
{
return;
}
After that I created another page and include “myfunction.php” on these page
then create code
$done= AppNotify (‘12’,’hello’,’Delete’);
$done2= AppNotifyUnfriend(‘12’,’hello’,’Delete’);
The problem is when i run myfunction.php, it’s only run first “AppNotify”. didn't run the 2nd function.
Then I change the code on the myfunction.php
$done2= AppNotifyUnfriend(‘12’,’hello’,’Delete’);
$done= AppNotify (‘12’,’hello’,’Delete’);
Now it’s run ‘AppNotifyUnfriend’.
Question) why it’s not running the 2nd function
I have also directly run
AppNotify (‘12’,’hello’,’Delete’);
AppNotifyUnfriend(‘12’,’hello’,’Delete’);
and then
AppNotifyUnfriend(‘12’,’hello’,’Delete’);
AppNotify (‘12’,’hello’,’Delete’);
Same error