Then in PHP:
exo_return_hescriptcom expects a function. You have defined a procedure that does not return any result.
Finally, in PHP, it would be better to use a header location to redirect the browser to the new page. ExeOutput handles page redirection from PHP.