XpertWorlock Posted July 19, 2008 Share Posted July 19, 2008 Is there anyway of loading a function or including another php file into a Session? for instance $_SESSION(body) = (" view(); "); Hard to give an example Thanks Mike PHP5 Quote Link to comment https://forums.phpfreaks.com/topic/115608-loading-a-function-in-a-session/ Share on other sites More sharing options...
ignace Posted July 19, 2008 Share Posted July 19, 2008 function function_name($function_arg) { echo $function_arg; } $_SESSION['body'] = array("function_name", array("function_args")); call_user_func_array($_SESSION['body'][0], $_SESSION['body'][1]); $_SESSION['body'] = file_get_contents("path/to/file"); Quote Link to comment https://forums.phpfreaks.com/topic/115608-loading-a-function-in-a-session/#findComment-594291 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.