farukh_king Posted August 28, 2006 Share Posted August 28, 2006 Hi, I am getting following error.Warning: session_set_save_handler() [function.session-set-save-handler]: Argument 2 is not a valid callback in /home/ephlox/public_html/accounts/include/misc/auth.inc.php on line 30Here is my PHP Code.http://pastebin.com/777362Can you help me how i can fix this problem ? Please kindly write correct code here. Or upload correct code anywhere and give me the URL. Your help will be very appreciated thanks.Best Regards from,Farrukh Hussain Link to comment https://forums.phpfreaks.com/topic/18879-callback-function-problem/ Share on other sites More sharing options...
Satria Ox41464b Posted August 28, 2006 Share Posted August 28, 2006 Always check manual first,http://php.net/session_set_save_handlerand read the Error message."Argument 2 needs valid callback"and from your pastebin, seems like you didnt have anything for 2nd Argument[code]session_set_save_handler("sess_mysql_open", "", //<- need valid callback here "sess_mysql_read", "sess_mysql_write", "sess_mysql_destroy", "sess_mysql_gc");[/code]Where is 2nd argument? you only put "" Link to comment https://forums.phpfreaks.com/topic/18879-callback-function-problem/#findComment-81519 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.