Forum Moderators: coopster
The problem I have is how to store into a session variable the handle for $ftp which is what I use as the ftp handle and this is what I need to preserve in a session variable.
$ftp = ftp_connect("myserver.com");
I have tried to use
$_SESSION['ftp'] = serialize($ftp);
and every time I try to use it the page locks up and eventually I get a server 500 error.
Any suggestions on how or what I should do in this situation?
The main purpose of the function I wrote works perfectly fine, it achieves its main objective however, its the passing of the handle in a session that its not happy with.