I didn’t write this as I have yet to find some good books on php programming that doesn’t make the wife divorce me after my last book purchases
Anyway this code is claimed to be working for the person who wrote the app its in. What it does is lets me browse to the guild.xml file on my local machine then renames it randomly with a number. It fails any time I try to do it with a
[phpBB Debug] PHP Notice
: in file /roster/roster/roster-update.php on line 24: copy() [function.copy]: Filename cannot be empty
Error[phpBB Debug] PHP Notice: in file /roster/roster/roster-update.php on line 32: fopen(roster/uploads/5444guild.xml) [function.fopen]: failed to open stream: No such file or directory
could not open XML input
I simply need this dang thing to work and its driving me crazy. That snip can be rewritten as long as it allows for the next part of the script to work which is below it.
print '<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr><th>Cleanup Successful. <a href="index.php?roster">Return to Roster</a></th></tr>
</table>';
} elseif (isset($_POST[‘SubmitOne’])) {
if ($_FILES[‘GuildData’][‘name’] == “guild.xml”) {
print ‘
Success: Roster Updated |
---|
The guild.xml has been successfully uploaded, and the roster updated. |