 |
|
|
| View previous topic :: View next topic |
| Author |
Message |
daemonkin
Joined: 05 Feb 2008 Posts: 10
|
Posted: Tue Feb 05, 2008 5:23 pm Post subject: |
|
|
| Code: | <?php
error_reporting(E_ALL);
ini_set('display_errors', 1);
require_once 'PEAR.php';
PEAR::setErrorHandling(PEAR_ERROR_DIE);
require_once 'Spreadsheet/Excel/Writer.php';
$workbook = new Spreadsheet_Excel_Writer('/home/devkba/public_html/files/test.xls');
$worksheet =& $workbook->addWorksheet('My first worksheet');
$workbook->setTempDir('/home/devkba/public_html/files/temp');
$worksheet->write(0, 0, "did this work?");
$workbook->close();
?> |
Directory files is in public_html and is 777 permissions.
Is this correct? _________________ Regards,
D. |
|
| Back to top |
|
 |
mark

Joined: 07 Jan 2007 Posts: 998
|
Posted: Tue Feb 05, 2008 5:27 pm Post subject: |
|
|
| daemonkin wrote: | Directory files is in public_html and is 777 permissions.
Is this correct? |
Should work, yes. Did you have deleted test.xls before running the script? |
|
| Back to top |
|
 |
daemonkin
Joined: 05 Feb 2008 Posts: 10
|
Posted: Tue Feb 05, 2008 5:49 pm Post subject: |
|
|
ZOMG!
I put a file in there just in case it was looking for it.
I just removed it and it has now worked.
Thank you for your time and effort in this.
I will continue to use and abuse this package and I hope you are as helpful with my inevitable questions in the future!
D. _________________ Regards,
D. |
|
| Back to top |
|
 |
mark

Joined: 07 Jan 2007 Posts: 998
|
Posted: Tue Feb 05, 2008 6:23 pm Post subject: |
|
|
| daemonkin wrote: | I put a file in there just in case it was looking for it.
I just removed it and it has now worked. |
Okay, perfect. Just as an explanation: The FTP user is different from the webserver user, and therefore, the latter may not overwrite files from the other.
| daemonkin wrote: | | I will continue to use and abuse this package and I hope you are as helpful with my inevitable questions in the future! |
I'll try.  |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|