Re: Using Excel Spreadsheet Writer

From: Date: Tue, 17 Jul 2007 07:09:46 +0000
Subject: Re: Using Excel Spreadsheet Writer
References: 1 2 3 4  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-27676@lists.php.net to get a copy of this message
brian schrieb:
Tom Synnott wrote:
Thanks Brian... Well I found this example in the manual... Can I add it to my Excel page? Or do I now need to create another script? Because I need the whole page to run all together if possible... <?php $uploaddir = '/var/www/uploads/'; $uploadfile = $uploaddir . basename($_FILES['userfile']['name']); echo '<pre>'; if (move_uploaded_file($_FILES['userfile']['tmp_name'], $uploadfile)) {
    echo "File is valid, and was successfully uploaded.\n";
} else {
    echo "Possible file upload attack!\n";
} echo 'Here is some more debugging info:'; print_r($_FILES); print "</pre>"; ?>
Well, that's just an example. I wouldn't echo out the "Possible ... atack!" string, for instance.
I assume there is a misunderstanding here. If I understand the OP's question correctly, he wants to save the XLS file at the server. As Spreadsheet_Excel_Writer runs at the server, he does not have to upload it, but write it - refer to Mark Wiesemanns Posting for this. If this is not what the OP wants, maybe he should clarify his question. File upload can IMO not be an issue with Spreadsheet_Excel_Writer. The files are generated at the server and thus cannot be uploaded without being downloaded before.

« previous php.pear.general (#27676) next »