Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > PHP How-To
|
PHP How-To Post your "How do I do this with PHP?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the PHP How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 8th, 2006, 11:47 AM
Friend of Wrox
 
Join Date: Mar 2005
Posts: 264
Thanks: 0
Thanked 0 Times in 0 Posts
Default how to read a subfolder content in php?

Hi all. Here i have a small script that reads content of a folder and prints it name out. But the problem is that if i have a subfolder like this /mp3/andy/ it does not read and print the content of that folder. Is there a way to over come this problem?Thanks


Code:
<?php 
$folder=dir("./mp3"); 

while($folderEntry=$folder->read()){ 
echo $folderEntry."<br>"; 
} 

$folder->close(); 

?>





Similar Threads
Thread Thread Starter Forum Replies Last Post
Read content of PPT files and saving to database Padmaja11 Other Programming Languages 0 July 19th, 2007 03:27 AM
How to read MS Word content from Classic ASP AcidBurn Classic ASP Professional 1 May 25th, 2007 06:51 AM
How to read MS Word content from Classic ASP AcidBurn Classic ASP Components 1 May 25th, 2007 06:51 AM
read content of MS Word file using PHP gokulnathan Pro PHP 0 November 25th, 2004 01:07 AM
read content of MS Word file using PHP gokulnathan PHP How-To 0 November 22nd, 2004 08:02 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.