Page 1 of 1

unserialize returns true, but array empty..

Posted: Mon Dec 06, 2004 6:40 pm
by victor
I've face some inconsistencies on how the script reacted in the local server and remote server, the following script works in the local server but not the remote.

Code: Select all

<?php
   $Time = $_POST['time_array'];

   if($Time=unserialize($Time))
   echo'Time is unserialised';

   echo $Time;
?>
Time is unserialised
echoing $Time shows nothing.. come across this anybody?

Posted: Mon Dec 06, 2004 8:07 pm
by rehfeld
maybe your local server has magic_quotes off and the other server has it turned on?