Share

SourceForge.net

Tracker: Support Requests

5 Project web services: tmp files question - ID: 434670
Last Update: Comment added ( moorman )

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.




Ricardo Bonon ( bonon ) - 2001-06-20 03:04

5

Closed

None

Jacob Moorman

Project Web Services

Second Level Support

Public


Comment ( 1 )

Date: 2001-07-25 14:18
Sender: moormanSourceForge.net SubscriberSourceForge.net Site Admin

Logged In: YES
user_id=152443

Greetings,

Please make a directory under your project group directory
for holding temporary files. In order for the project web
server (which runs as nobody) to create files in this
directory, it will be necessary for this directory to be
flagged as group writeable. The project web services are
provided through the use of five web servers, which share
access to the project group directories, but do not share
access to the /tmp directory structure. Please let me know
if you should have further questions or concerns regarding
this matter.

Thank you,

Jacob Moorman
Quality of Service Manager, SourceForge


Attached File

No Files Currently Attached

Changes ( 6 )

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