You are here: upload_tmp_dir « PHP Programming Language « IT news, forums, messages
upload_tmp_dir

Posted by iulian.ilea on 12/12/62 11:59

I have a problem when I upload files: if try to upload files stored in
the same directory whith upload script it is ok, it uploads them on the
ftp. IF I select a file from another directory than the one with tha
php script I get an error: uploadPHP Warning:
ftp_put(langtxt-update.sql) [function.ftp-put]: failed to open stream:
No such file or directory in D:\Atlanticmoon\collaudi\ftp_upload.php on
line 35. I tried to set the upload_tmp_dir in the php.ini to
c/Windows/Temp/ - that is the default. I tried phpinfo() and it is set.
Trying $_FILES["file"]["tmp_name"] I get the correct path. After many
tryes to understand why I get an error, I changed again upload_tmp_dir,
hit an phpinfo() and it changed. At $_FILES["file"]["tmp_name"] in the
script I get the default: windows/temp. What is the problem?

 

Navigation:

[Reply to this 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

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