Hello there, i am having a problem with the following code:
<?php
/* --- Ollie's Project Install System ---
* - Sets up variables
* - Configures files
* - Gets user settings
* - Creates data directory
*/
$INSTALL = array();
$INSTALL['config_file'] = "config.xml";
$INSTALL['images_dir'] = "./data/images/";
$INSTALL['isb_file'] = "isbackup.bak";
$BACKUP = serialize($INSTALL);
$FILE = fopen($INSTALL['isb_file'],"w+");
fwrite($FILE, $BACKUP);
fclose($FILE);
echo("<b>OK, Written</b>");
?>
When I run the file, I get the following error:
Parse error: syntax error, unexpected T_VARIABLE in /www/110mb.com/o/l/l/i/s/o/f/t/ollisoft/htdocs/docs/install.php on line 10
Can anyone help me?
Thnks:queasy: