Code: Select all
//Any active module that have file called myownhook.php will be ran when this code is ran.
RunHook("myownhook.php");
//Send a variable to the hook file, increment with one
$myVar = 100;
global $myVar
RunHook("myownhook.php", "myVar");
echo "After hook \$myVar is $myVar";
//After hook \$myVar is 101
what am i missing. And no it is not a missing ;. I don't think I have ever used globals in PHP.Error: syntax error, unexpected '=', expecting ',' or ';'
HINT: Maybe you forget to put a ; sign at the end of a line.
Error in C:/wamp/www/ae/modules/h_mapsystem/content.php
Line 33