note 2897 deleted from features.file-upload by jimw
| From: | jimw@php.net | Date: | Wed, 21 Nov 2001 00:51:04 +0000 |
| Subject: | note 2897 deleted from features.file-upload by jimw | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-21089@lists.php.net to get a copy of this message | ||
to avoid the problems with php in safe mode, when uploading files use this small file:
#!/bin/bash
cp $1 $2
call it "copy" or something and place it in the same dir as your php3 upload script. Now
call from your script to this bash script like "system("./copy $file
$file_name");" and the script will place the uploaded files in the same directory as your
script. Now you're ready to use the uploaded files and you get no security or other warnings.
bye bye!