Reply to Re: Strange form - upload file from a server or a URL address

Your name:

Reply:


Posted by J.O. Aho on 11/26/05 11:03

Kamyk wrote:
> Uzytkownik "J.O. Aho" <user@example.net> napisal w wiadomosci
> news:3upn8pF12k3kdU1@individual.net...
>> Kamyk wrote:
>>> Uzytkownik "J.O. Aho" <user@example.net> napisal w wiadomosci
>>> news:3upht2F12kks0U3@individual.net...
>>>> Kamyk wrote:
>>>>> Hello all!
>>>>>
>>>>> I have such question.
>>>>> Could you be so kind and give me tips or code example how to create a
>>>>> form
>>>>> with the input field where we would fill the http link and
>>>>> this URL address would be a download file, which I want to upload to
>>>>> the
>>>>> server after clicking on the Submit button?
>>>>> Is it possible to do it?
>>>> This isn't pure php code, uses the wget program:
>>>>
>>>> <?PHP exec("wget ".$_REQUEST['url']); ?>
>>> Thank you very much.
>>> How to set a server path of the file for uploading?
>> Normal form where you have
>>
>> <input type='text' name='url'>
>>
>>
>> //Aho
>
>
> I didn`t mean it..
> Input field "url" is the URL address of the file to upload.
> But I want to set the path of this file where it would be stored in my
> server
> after uploading.
> Could you write to me how set it?

wget -P/tmp http://www.example.net/files/bigfile.tgz

the "-P" option with the path _without_ whitespaces in between the option and
the path.

<?PHP exec("wget -P/tmp ".$_REQUEST['url']); ?>


//Aho

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация