Re: File upload via HTML forms
| From: | \[Intent A/S\] Tais M. Hansen | Date: | Tue, 03 Apr 2001 07:32:52 +0000 |
| Subject: | Re: File upload via HTML forms | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-46782@lists.php.net to get a copy of this message | ||
Hi!
system(), exec(), popen() and similar has been disabled in the system I'm
working on, if that's what you're talking about. :(
I can't read the temp file because it's created in PHP's UID which is not
the same as the script's. I also tried the FTP approach, but apparently the
files written with FTP can't be manipulated with PHP. Can't create new files
and can't unlink the old! No permission.
I must admit I've come to hate the web hotel this is all running on!
Thanks!
--
--
Intent A/S
Tais M. Hansen
Web Developer
""John Almberg"" <jalmberg@identry.com> wrote in message
news:FAENKBPPIJJNEIHGCFKLGENOCLAA.jalmberg@identry.com...
> Howdy,
> You should be able to read this file using the file system functions. The
> PHP process (if it is set up properly) should have read access to this
> directory. The problem you will have is *writing* it to your own
directory,
> as the PHP process probably *doesn't* have write access to your directory
> structure. The way I got around this was to read the tmp file with the
file
> system, and write it using FTP (which can log in to your area.)
>
> Hope this helps.
> John