Re: Trouble With FTP_PUT Please Help!
| From: | Adnan | Date: | Wed, 28 May 2003 16:43:31 +0000 |
| Subject: | Re: Trouble With FTP_PUT Please Help! | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-149284@lists.php.net to get a copy of this message | ||
Adam Voigt wrote:
> If your running under linux/unix, do:
>
> chown webuser:webuser /tmp/php
>
> Supplement /tmp/php with whatever upload path you have
> set in your php.ini, and webuser with whatever user your
> webserver runs as.
>
>
>
> On Wed, 2003-05-28 at 12:33, Adnan wrote:
>> Jason Wong wrote:
>>
>> > On Wednesday 28 May 2003 20:11, Adnan wrote:
>> >
>> >> i have been having trouble working out how to upload an image, the
>> >> most progress ive made is putting a blank file on the server, but
>> >> thats it, any suggestions anyone??
>> >
>> > If you're wanting to do HTTP uploads then manual > Handling file
>> > uploads tells you all you need to know. Note that the FTP stuff are
>> > completely unrelated.
>> >
>>
>> Basically, im trying to upload a file to the server it isnt a big issue
>> on how its done, i have tried all sorts of different ways, i havent had
>> any luck, when i tried to upload with http i got something like cant
>> create /tmp/php/php.......
>>
>> any ideas?
>>
>> thanks for your help :)
>>
>> adnan
just did that, and did a
print_r($_FILES);
and this is what i got
Array ( [imagefile] => Array ( [name] => photo.jpg [type] => image/jpeg
[tmp_name] => /tmp/php/ phpBEzrql [error] => 0 [size] => 35532 ) )
thanks for your help :)
adnan