php question

Joshua Eichorn jeichorn@burroak.com
Mon, 15 Jan 2001 19:43:38 -0700


The php upload directory is set by the php3.ini file.  This file is 
located /usr/local/bin/php/ and is setup by the administator of the 
webserver.
The upload directory can't be changed in the script because its a 
security risk.

Unless your system is setup wierd nobody should be able to write to 
/var/tmp.

http://www.php.net/manual/en/features.file-upload.php
Read through the above url to see howto handle file uploads using forms.
If your still having problems give me an email and i can write you an 
example script.
-joshua eichorn


David P. Schwartz wrote:

> sinck@ugive.com wrote:
> 
>> \_ The [PHP] script gets the file, uploads it, and the $myfile
>> \_ variable says the uploaded file is named something like
>> \_ "/var/tmp/phpq32345".  However, I don't have write permissions to
>> \_ /var/tmp.
>> 
>> You don't, but does the server?  If the server has perms there, then
>> you're good to go...just copy out the file and unlink it.  If not,
>> hope for another response.  :-)
> 
> 
> Nothing ever shows up in the /var/tmp directory.  Owner is a number (1102 (?)) and group is 'wheel'.  The PHP scripts are created as
> owned by nobody in group nobody, which is not a member of the wheel group.
> 
> My question really has to do with re-directing this via established methods of over-riding the defaults -- the local php3.ini file isn't
> being read.  That's what is of more concern. :-)
> 
>> 
>> David
>> 
>> ________________________________________________
>> See http://PLUG.phoenix.az.us/navigator-mail.shtml if your mail doesn't post to the list quickly and you use Netscape to write mail.
>> 
>> Plug-discuss mailing list  -  Plug-discuss@lists.PLUG.phoenix.az.us
>> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
> 
> 
> 
> ________________________________________________
> See http://PLUG.phoenix.az.us/navigator-mail.shtml if your mail doesn't post to the list quickly and you use Netscape to write mail.
> 
> Plug-discuss mailing list  -  Plug-discuss@lists.PLUG.phoenix.az.us
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss