Hello,
one of my projects (matgen,
http://matgen.sourceforge.net) does some dynamic data
generation which I wanted to be available for download.
I generate math matrices online using PHP, storing data
in files created with the tmpnam PHP function.
Everything works ok, except when I try to link to these
temporary files to download them. I got the following
error message:
-----------------
<br>
<b>Warning</b>:
fopen("'/tmp/mat01.out","r") - No such
file or directory in <b>/home
/groups/m/ma/matgen/htdocs/php/download_matrix.php</b>
on line <b>4</b><br>
<br>
<b>Warning</b>: Supplied argument is not a valid
File-Handle resource in <b>/home/gr
oups/m/ma/matgen/htdocs/php/download_matrix.php</b> on
line <b>5</b><br>
-----------------
From the shell server I saw that there was no such file
in /tmp.
Summary: can I create temporary files and make them
available to download in some system tmp dir? I also
tried to create these files on my projects website dir,
but I got access right errors.
For instance, the URL for the page is:
http://matgen.sourceforge.net/online/
Hits the generate matrix button and try to download the
matrix.
Thank you,
Ricardo Bonon.
Jacob Moorman
Project Web Services
Second Level Support
Public
|
Date: 2001-07-25 14:18 Logged In: YES |
| Field | Old Value | Date | By |
|---|---|---|---|
| status_id | Open | 2001-07-25 14:18 | moorman |
| category_id | User SSH Key Usage and Posting | 2001-07-25 14:18 | moorman |
| artifact_group_id | Administrative | 2001-07-25 14:18 | moorman |
| summary | Creating temporary files with PHP | 2001-07-25 14:18 | moorman |
| close_date | - | 2001-07-25 14:18 | moorman |
| assigned_to | nobody | 2001-06-20 13:26 | moorman |
Copyright © 2009 Geeknet, Inc. All rights reserved. Terms of Use