Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
How to write a PHP coding
Old 09-28-2010, 02:06 AM How to write a PHP coding
Junior Talker

Posts: 1
Name: Romeo Leonard
Trades: 0
How to write a PHP coding to list out all files and directories as links to them?

This is somewhat similar to some index pages. When new file or folder is added to the directory, HTML page should display the newly created file/folder together with previous ones after it is being refreshed. (prefer in alphabatical order)

How to achieve this sort of functionality in PHP? Please provide sample coding as well.
__________________
Romeo Leonard

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
romeoleonard is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 09-28-2010, 03:26 AM Re: How to write a PHP coding
miki86's Avatar
Extreme Talker

Posts: 185
Location: print_r($serbia);
Trades: 0
Reading $dir content
PHP Code:
$dir ".";
if(
is_dir($dir)) {
    if(
$dir_handle opendir($dir)) {
        while(
$filename readdir($dir_handle)) {
            echo 
"filename: {$filename}<br />";
        }
        
closedir($dir_handle);
    }

miki86 is online now
Reply With Quote
View Public Profile
 
Old 09-28-2010, 04:40 AM Re: How to write a PHP coding
Skilled Talker

Posts: 90
Name: Rob Cook
Trades: 0
if you like to learn more about this thn go to w3schools.com/php/default.asp this will help you lot about this.
__________________

Please login or register to view this content. Registration is FREE
/
Please login or register to view this content. Registration is FREE
/
Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE
robcook is offline
Reply With Quote
View Public Profile Visit robcook's homepage!
 
Reply     « Reply to How to write a PHP coding
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.21542 seconds with 12 queries