Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 5 of 5
  1. #1
    Member averan's Avatar
    Join Date
    Jan 2005
    Posts
    39
    Member #
    8796
    i'm not sure what i'm looking for. maybe someone out there can tell me.

    i essentially need to simulate a windows file explorer window within a div on a page in a website. i need to be able to upload .doc files to the server and allow users to view a file/folder tree that is live, letting users open, view, and save those files.

    can i do this with php and mysql? how can i create a similar visual interface to windows?

    is there a javascript method?

    i need to be able to simply upload these .doc files into a specific folder, then have a specific html page read and show the content of that folder, with users able to interact, view, and download them.

    if anyone has any examples they can link me to, i could do some reverse engineering to figure out how best to achieve this.

    thank you!
    -averan

  2.  

  3. #2
    Junior Member
    Join Date
    Apr 2005
    Posts
    3
    Member #
    9605
    If in doubt, php can

    i know php can do listing directory trees and upload files. As a matter of fact, php can do many powerful file system commands.

    check it out.
    http://us2.php.net/manual/en/ref.filesystem.php

    you'll probably need javascript also so that you dont have to contact the server unnecesarry for things like confirming to delete a file.

    if you want a live update to the directory tree, you might have to do some background contacting with the server (unless you want to reload the directory tree every so and so interval).

    as for imitating the windows explorer looks, that's up to the HTML and CSS.

    good luck, hope this helps

  4. #3
    Member
    Join Date
    Jan 2005
    Posts
    97
    Member #
    8727
    This is code that I made for directory listing, you might want to look at it. And for deleting, you use unlink().
    PHP Code:
    <?php
    function print_cwd_details() {
    $current_dir get_cwd();//or something, forgot. this use to be a full script but I modified it more
    $handle opendir($current_dir);
    echo 
    "Contents of $current_dir:<br>\n";
    while (
    false !== ($folder readdir($handle))) {
     if (
    is_dir($folder)) {
        
    $size disk_total_space($current_dir)-disk_free_space($current_dir);
        echo 
    "Folder:<a href='$folder/'>$folder</a>($size bytes)<br>\n";
     }
    }
    rewinddir($handle);
    while (
    false !== ($file readdir($handle))) {
    if (!
    is_dir($file)) {
    $size filesize($file);
    if (
    $size 1024) {
        
    $type "bytes";
    }else if (
    $size 1024*1024) {
        
    $type "KB";
        
    $size/=1024;
    }else if (
    $size 1024*1024*1024) {
        
    $type "MB";
        
    $size/=1024;
            
    $size/=1024;
    }

    $size=round($size);
    echo 
    "<a href='$file'>$file</a>($size $type)<br>\n";
    }
    }
    closedir($handle);
    echo 
    "<hr><font size=2  >\n";
    $free diskfreespace($current_dir)/1024/1024;
    $total disk_total_space($current_dir)/1024/1024;
    $used $total-$free;
    $percent_used explode('.',round($used/$total,2));
    echo 
    "Total disk space(MB):$total<br>\n";
    echo 
    "Used(MB):$used<br>($percent_used[1]%)\n";
    echo 
    "Free(MB):$free<br></font>\n";
    }
    print_cwd_details();
    ?>

  5. #4
    Member averan's Avatar
    Join Date
    Jan 2005
    Posts
    39
    Member #
    8796
    thanks guys,
    this will be very useful!
    php and mysql is the way i'm going.....its all new to me, so i'm about to scale another huge learning curve! =)

    in the future i'm going to work with the mamboforge content management system software, but i'm glad that first i'll be learning how it all works from the ground up.

  6. #5
    Member
    Join Date
    Jan 2005
    Posts
    97
    Member #
    8727
    Quote Originally Posted by michael jackson
    For content management, it is easiest to use Frontpage 2003 Dynamic Templates. You can manage 100's or 1000's of pages of content with just 1 template. You can make as many templates as you wish.
    No... just no.
    No offence.

    M$ FP2K3 5|_|><.

    Wow. I'm an idiot.


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 11:56 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com