Reply to Re: file upload problem

Your name:

Reply:


Posted by ljuljacka on 10/12/06 14:31

first of all tnx for all the help, great people here :)

I tried this code for debuging that you suggested, and on while line I get
this error: "readdir():supplied argument is not a valid directory resource
in C:\....\ispit\script.php"

$uploaddir='ispit1/';
if ($handle = opendir($uploaddir)) { # in php5 use scandir to replace this
block
/* This is the correct way to loop over the directory. */
while (false !== ($file = scandir($handle))) {
echo "$file<br />";
}
} else {

echo "<br />could not open that directory<br />";
}

[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

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