hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Programming Discussion : Help :: Directory Listing = findfirst() function ????
Reply

Programming Discussion Discussions related to web programming languages and other related issues. Topics may include configuration, optimization, practical usage and database connectivity.
Forum Jump

Help :: Directory Listing = findfirst() function ????

Reply Post New Thread In Programming Discussion Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 08-25-2002, 12:41 PM
webkami webkami is offline
WHT Addict
 
Join Date: Aug 2002
Posts: 115
*

Help :: Directory Listing = findfirst() function ????


Hi
i wanted to get remote directory's file list
in C it was done with
findfirst()


How can i do it in PHP
Any body please help

P.S.
I Already searched PHPManual

__________________
█ Quickly check if a site is down or not - http://down.is
█ Remote & easy to use ... down.is/webhostingtalk.com


Reply With Quote


Sponsored Links
  #2  
Old 08-25-2002, 10:51 PM
phpcoder phpcoder is offline
Web Hosting Master
 
Join Date: Apr 2002
Location: Philadelphia
Posts: 2,276
Textbook php:

Quote:
<html>
<head>
<title>Listing 10.14</title>
</head>
<body>
<?
$dirname = ".";
$dh = opendir( $dirname ) or die("Couldn't open directory");

while ( ! ( ( $file = readdir( $dh ) ) === false) ) {
if ( is_dir("$dirname/$file" ) )
print "";
print "$file<br>";
}
closedir( $dh );
?>
</body>
</html>

I can't get it not to compact

Reply With Quote
  #3  
Old 08-26-2002, 07:10 AM
webkami webkami is offline
WHT Addict
 
Join Date: Aug 2002
Posts: 115
Thanx a LOOOOOOOOOOOT



[quote]Textbook php: [quote]

Where i can find this book?
is there any online version?

or any help that include these functions?

__________________
█ Quickly check if a site is down or not - http://down.is
█ Remote & easy to use ... down.is/webhostingtalk.com


Reply With Quote
Sponsored Links
  #4  
Old 08-26-2002, 09:51 AM
phpcoder phpcoder is offline
Web Hosting Master
 
Join Date: Apr 2002
Location: Philadelphia
Posts: 2,276
Actually it is the first book that I ever got about php. Its called:

"Sams Teach Yourself PHP in 24 Hours"

Hope that helps you

Reply With Quote
  #5  
Old 08-26-2002, 11:53 PM
webkami webkami is offline
WHT Addict
 
Join Date: Aug 2002
Posts: 115
Yes Thanx ,

I am off to a book shop

__________________
█ Quickly check if a site is down or not - http://down.is
█ Remote & easy to use ... down.is/webhostingtalk.com


Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
50c607bb-e104-4e8a-9ad9-761945a79943 Listing 2013-03-05 18:23:15
50c21c1c-1d94-4ed4-adac-26fa45a79943 Listing 2013-03-05 18:26:32
Get listed in WHIR Magazine's 6th Annual Hottest Hosts Issue coming in January 2013 Blog 2012-12-28 11:03:01
WHD 2012 - Data Backup Firm R1Soft to Launch Japanese, Spanish Support Web Hosting News 2012-03-22 10:30:09
Get listed in WHIR Magazine's 5th Annual Hottest Hosts Issue coming in January 2012 Blog 2011-10-18 18:35:27


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?