Reply to Re: File upload to new folder

Your name:

Reply:


Posted by petersprc on 04/19/07 13:46

Hi,

Do you have any luck with this:

if (!move_uploaded_file($_FILES['myFile']['tmp_name'], '/my/new/dir'))
{
trigger_error('Upload failed.', E_USER_ERROR);
}

The temporary dir can be changed with the upload_tmp_dir setting in
php.ini or in httpd.conf.

On Apr 19, 9:26 am, Kesavan <k7.in...@gmail.com> wrote:
> On uploading file.., the file moves into the temp dir "C:\Windows
> \Temp" which is not accessible in the server.
> Is there any way to store the uploaded files in a new directory and
> then move it to desired directory?
>
> Kesavan M
> m.kesa...@hotmail.com
> INDIA

[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

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