Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
readdir
- Page 1
Re: Sorting using readdir
Programming
Web Development
13 Years Ago
by bobgodwin
readdir
orders by when they were put on the server (As … would like to suppress the possible warnings on closedir() and
readdir
() while in attempt to read files as directories, as @closedir…
readdir help
Programming
Web Development
14 Years Ago
by rickarro
…><hr><br />"); while ($file =
readdir
($dir)) // while loop { $parts = explode(".", $file); // pull apart…
Re: readdir help
Programming
Web Development
14 Years Ago
by rickarro
…><hr><br />"); while ($file =
readdir
($dir)) // while loop { $parts = explode(".", $file); // pull apart…
Sorting using readdir
Programming
Web Development
13 Years Ago
by bobgodwin
… ){ $ignore = array( '.', '..', 'index.php' ); $dh = @opendir( $path ); while( false !== ( $file =
readdir
( $dh ) ) ){ if( !in_array( $file, $ignore ) ){ $spaces = str_repeat( ' ', ( $level…
Re: Sorting using readdir
Programming
Web Development
13 Years Ago
by NettSite
I am surprised that your results are not sorted alphabetically -
readdir
() always seems to do that for me, on Windows at least. What operating system are you using?
Re: Sorting using readdir
Programming
Web Development
13 Years Ago
by network18
Even I get the sorted result on windows as Nettsite suggests, but would like to suppress the possible warnings on closedir() and
readdir
() while in attempt to read files as directories, as @closedir() etc
Re: Sorting using readdir
Programming
Web Development
13 Years Ago
by NettSite
…('.', '..', 'index.php'); $folder = array(); $dh = @opendir($path); while (false !== ( $file =
readdir
($dh) )) { if (!in_array($file, $ignore)) { if (is_dir("$path/$file…
Populating a drop down box with readdir
Programming
Web Development
11 Years Ago
by bradly.spicer
…;?php $path = "uploads/"; $handle = opendir($path); while ($file =
readdir
($handle)) { if (substr($file,0,1) != ".") { echo "…
Re: Populating a drop down box with readdir
Programming
Web Development
11 Years Ago
by bradly.spicer
…/"; $handle = opendir($path); echo '<select>'; while ($file =
readdir
($handle)) { if (substr($file,0,1) != ".") { echo "…
PHP FTP Loop (with dynamic inputs)
Programming
Web Development
14 Years Ago
by atrophiedsoul
…winterdirname="images/winter"; $winterdn=opendir($winterdirname); while ($dircount=
readdir
($winterdn)) { $wintercnt=$wintercnt+1; } closedir ($winterdn); $…summerdirname="images/summer"; $summerdn=opendir($summerdirname); while ($dircount=
readdir
($summerdn)) { $summercnt=$summercnt+1; } closedir ($summerdn); $…
Stream line some code (help)
Programming
Web Development
14 Years Ago
by atrophiedsoul
…winterdirname="images/winter"; $winterdn=opendir($winterdirname); while ($dircount=
readdir
($winterdn)) { $wintercnt=$wintercnt+1; } closedir ($winterdn); $…summerdirname="images/summer"; $summerdn=opendir($summerdirname); while ($dircount=
readdir
($summerdn)) { $summercnt=$summercnt+1; } closedir ($summerdn); $…
a simple puzzle to be solved
Programming
Software Development
13 Years Ago
by onus
… free(filepath); } //if(filepath) } //while while ((entry =
readdir
(dp)) != 0) { if (strcmp(entry->d_name, ".&… *entry = 0; struct stat statBuf; while ((entry =
readdir
(dp)) != 0) { if (strcmp(entry->d_name,… *entry = 0; struct stat statBuf; while ((entry =
readdir
(dp)) != 0) { if (strcmp(entry->d_name,…
Traversing file system according to a given root place by using threads by using C
Programming
Software Development
13 Years Ago
by virtue
…return 0;. } else { counter=0; while ((object_dir =
readdir
(object_dir)) != NULL) { pthread_create(&thread[counter],NULL,funcThread…return funcThread(ptr); } else { while(ptr=
readdir
(dPtr)!=NULL) { printf("\n%s\n&…
Writing files to a different directories & sub directories
Programming
Web Development
11 Years Ago
by ska_defender
…$txtname =''; $related =''; while( $file2 =
readdir
($folder2) ) { if (substr($file2,0,strpos($…= $file2; } } while( $file4 =
readdir
($folder4) ) { if (substr($file4,0,strpos…
Re: segmentation fault - Help me..
Programming
Software Development
14 Years Ago
by nezachem
Use code tag please. Now: while ((entry =
readdir
(pdir)) != NULL) { entry =
readdir
(pdir); cout << entry->d_ino <&…) == DT_REG) { You shouldn't do the second `
readdir
`. The way your code is written, you throw away every…crash). If the number of entries is odd, a `
readdir
` in a `while` condition returns a valid entry, …
Can I have a moment? I got stucked in here :\
Programming
Web Development
15 Years Ago
by Q8iEnG
…['images'] = array( ); $contents['albums'] = array ( ); while ( false != ( $f =
readdir
( $h ) ) ) { if ( $f != '.' && $f != '..' ) …['images'] = array( ); $contents['albums'] = array ( ); while ( false != ( $f =
readdir
( $h ) ) ) { if ( $f != '.' && $f != '..' )…
Duplicates project :
Programming
Software Development
15 Years Ago
by dhandb01
…(directoryName)) == NULL) { perror("opendir"); return 0; } while ((dit =
readdir
(dip)) != NULL){ if (dit->d_name[0] == '.'){ continue; } i++; }…; } strcat(directoryName,"/"); char currentFile[50]; while ((dit =
readdir
(dip)) != NULL){ i++; } rewinddir(dip); i=0; while ((dit…
uploading to ftp server my directory hae some problom
Programming
Web Development
15 Years Ago
by asifkamalzahid
…successfully created $remote_dir\n"; $handle = opendir($local_dir); while (($file =
readdir
($handle)) !== false) { if (($file != '.') && ($file…ftptest\uploadfunctionpage.php on line 34 Warning:
readdir
(): supplied argument is not a valid …uploadfunctionpage.php on line 34 PHP Warning:
readdir
(): supplied argument is not a valid …
script works in firefox but not IE7
Programming
Web Development
14 Years Ago
by freshfitz
…;/".$del_dir."/thumbs"); if ($Open) { while ($Files=
readdir
($Open)) { if (($Files!='.')&&($Files!='..')) { if (file_exists($…); }; // $dirs_count=0; $category_settings=''; $Open=opendir($gallery_path); while ($Files=
readdir
($Open)) { if (!is_file($Files)&&$Files!='.'&&$Files…
Form Button is not sending the proper info
Programming
Web Development
14 Years Ago
by WaltP
…;; } else { $nopage = true; while ($pagval =
readdir
($paghnd)) { if (!is_file("./" . $pagval) &… $dirname); } else { $chg = 1; while ($fil =
readdir
($filhnd)) { if (is_file($dirname . $fil)) { $sl =…
Creating a userfield on register form
Programming
Web Development
13 Years Ago
by Geordie_Ben
…_ASREG5."\n"; $handle=opendir('themes'); while ($file =
readdir
($handle)) { if ((!ereg("[.]",$file) AND file_exists("themes…_ASREG5."\n"; $handle=opendir('themes'); while ($file =
readdir
($handle)) { if ((!ereg("[.]",$file) AND file_exists("…
Creating a userfield on register form
Programming
Web Development
13 Years Ago
by Geordie_Ben
…n"; $handle=opendir('themes'); while ($file =
readdir
($handle)) { if ((!ereg("[.]",$file) AND file_exists…n"; $handle=opendir('themes'); while ($file =
readdir
($handle)) { if ((!ereg("[.]",$file) AND …n"; $handle=opendir('themes'); while ($file =
readdir
($handle)) { if ((!ereg("[.]",$file) AND …
gallery Flash error on data.php
Programming
Web Development
13 Years Ago
by eng.mina
…if ($show_categories!='') { // $Open=opendir($gallery_path); // while ($Files=
readdir
($Open)) { $cats = getDirectoryList(); foreach($cats as $Files){ if …{ //$Open=opendir($gallery_path); $cats = getDirectoryList(); // while ($Files=
readdir
($Open)) { foreach($cats as $Files){ //read category settings $FileName…
Re: gallery Flash error on data.php
Programming
Web Development
13 Years Ago
by eng.mina
…="....") { // $Open=opendir($gallery_path); // while ($Files=
readdir
($Open)) { $cats = getDirectoryList(); foreach($cats as $Files){ if…{ //$Open=opendir($gallery_path); $cats = getDirectoryList(); // while ($Files=
readdir
($Open)) { foreach($cats as $Files){ //read category settings $FileName…
Re: gallery Flash error on data.php
Programming
Web Development
13 Years Ago
by diafol
…1 if ($show_categories!='') { // $Open=opendir($gallery_path); // while ($Files=
readdir
($Open)) { $cats = getDirectoryList(); foreach($cats as $Files){ if (!… { //$Open=opendir($gallery_path); $cats = getDirectoryList(); // while ($Files=
readdir
($Open)) { foreach($cats as $Files){ //read category settings $FileName="…
Photo Album PHP Help!!
Programming
Web Development
13 Years Ago
by waqaspuri
…'' ) $count++; } $count = 0; while ( $count < $per_page && ($file =
readdir
($handle)) !== false ) { if ( !is_dir($file) && ($type = getPictureType($file…;/li>'; $count++; } } echo '</ul>'; while ( ($file =
readdir
($handle)) !== false ) { if ( !is_dir($file) && ($type = …
problem with php code line
Programming
Web Development
12 Years Ago
by premier213
…($handle = opendir($dir_path)) { while (false !== ($file =
readdir
($handle))) { if ($file != "." &&…{ $dirname.='/'; } $handle = opendir($dirname); while (false !== ($file =
readdir
($handle))) { if ($file != '.' && $file != '..') { …
Troubles with DIR * and dirent- linux enviroment
Programming
Software Development
11 Years Ago
by Despairy
…have to run through the folder entries using `while ((ent=
readdir
(directory))){ do stuff ; }` but it wont get into the…dirr=openDir(path);// same openDir function from above while(ent=
readdir
(dirr)){stuff} i do get into the while loop. …question) and what can i do in order for the
readdir
to avoid subdirectories? ( avoiding the new folder i …
php image gallery
Programming
Web Development
11 Years Ago
by abeer.rao
…$count = 0; while ( $count < $per_page && ($file =
readdir
($handle)) !== false ) { if ( !is_dir($file) && ($type = …$count++; } } echo '</ul>'; while ( ($file =
readdir
($handle)) !== false ) { if ( !is_dir($file) &&…
Re: Stream line some code (help)
Programming
Web Development
14 Years Ago
by ShawnCplus
… (!$dir = opendir($path)) { return array(); } $files = array(); while (false !== ($file =
readdir
($dir))) { if ($file != '.' && $file != '..') { $files[] = $file; } } closedir($dir…
1
2
3
17
Next
Last
Search
Search
Forum Categories
Hardware/Software
Programming
Digital Media
Community Center
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Meet People
Forums
Top Members
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2024 DaniWeb® LLC