My javascript file:
var ms = 3000;
$.get("curl.php", { test: ms } );
My curl.php:
$ms = $_GET("test");
echo $ms;
Firefox firebug says:
Fatal error: Function name must be a string in C:\Users\Jansu\Documents\workspace\php\curl.php on line 2
what could be the problem?
Even better would be when the javascript and php code is in the same file, so I don't have to post/get anything. Just somehow pass javascript to php.