i'm a beginner in php..
last night i finished my first full site script
but i didn't use any MySQL databases at all
i used to serialize to store the data as an array in file
then when i want to retrieve it.. i simple load that file into variable
and unserialize it so it becomes an array with data
say this code as an example:
<?
//saving
$data_array = array('name' => 'John','user-name'=>'shotgun','birth'=>'April');
$data_array=serialize($data_array);
file_put_contents('data.ser', $data_array);
//calling back and printing
file_get_contents('data.ser');
$data_array=unserialize($data_array);
print_r($data_array);
?>
i know there's absolutely no pros. with this method
but what are the cons. ?