Ive got this PHP code which creates a folder and copies certain files into it:
But this error appears:Code:<?php $Name = $_POST['User']; mkdir ($Name, 0777); copy('Names.php', $Name . '/Names.php'); chmod($Name . '/Names.php', 0777) copy('ChangeText.php', $Name . '/ChangeText.php'); chmod($Name . '/ChangeText.php', 0777) copy('Names.plist', $Name . '/Names.plist'); chmod($Name . '/Names.plist', 0777) copy('Online.php', $Name . '/Online.php'); chmod($Name . '/Online.php', 0777) copy('Online.txt', $Name . '/Online.txt'); chmod($Name . '/Online.txt', 0777) copy('Position.php', $Name . '/Position.php'); chmod($Name . '/Position.php', 0777) copy('Text.plist', $Name . '/Text.plist'); chmod($Name . '/Text.plist', 0777) ?>
Any help? What do I need to change?Parse error: syntax error, unexpected T_STRING in /home/camcreat/public_html/Newuser.php on line 8


Reply With Quote

