Computing.Net > Forums > Web Development > html table from windows dir content

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

html table from windows dir content

Reply to Message Icon

Name: send2bill
Date: January 5, 2005 at 14:39:39 Pacific
OS: win/xp
CPU/Ram: p3/512
Comment:

i have a bunch of files on an internal work server that my customer wants to see. however, said customer is picky and does not want to pick files from a windows directory format. any one know how i can read a windows directory and put the output into a html table?



Sponsored Link
Ads by Google

Response Number 1
Name: SN
Date: January 5, 2005 at 15:58:26 Pacific
Reply:

If you can run server side scripts (like PHP), it's not very difficult. See this recent post:

http://www.computing.net/webdevel/wwwboard/forum/1252.html

-SN


0

Response Number 2
Name: send2bill
Date: January 5, 2005 at 16:18:55 Pacific
Reply:

I read the post you referenced me to and it looks excellent! I'm not sure if I can run php on the server (how would I be able to tell?)...this is all within the same company so i should be able to do as you suggest in referred post and install php stuff....btw, (insert shameful look here) what is php?


0

Response Number 3
Name: Larry21
Date: January 6, 2005 at 01:56:43 Pacific
Reply:

Hi,
Before speaking of PHP, you have to make sure that you even have a public server, and that this particular computer is connected to it!

PHP is a 'server side script'. What that means is that instead of being 'flat' like HTML (it simply is what it is and does what it does), PHP can be interactive with your server. For example, you could tell a PHP script to look at a certain directory on the server and list its contents in a particular manner (similar to what you spoke of) and the script will do this each time it is loaded (eg. each time the person goes to http://www.yoursite.com/directory_list.php)

In addition PHP can write files (lets say if someone inputs data on you site, PHP can create a file on the server with that data, or add it to a database) or execute files on the server... etc. etc.

If you have a server with a domain name (ie. a publicly accessible server) then you can simply create a file with the following line:
<?php phpinfo(); ?>

Then name this file 'anything.php' or 'anything.php4' (if php doesnt work in the end)

If you use notepad or similar, make sure that you dont choose 'text file' but rather 'all files' when saving it (below the space for the name)

Then just uploads this file to the server and access it as a web page- www.yourserver.com/anything.php

It should list a whole bunch of info about your server. If it does, then you are PHP enabled. If it does not, then firstly try the PHP4 file, and if that doesnt work, then you may not have PHP intalled on your server. (Its fairly simple to install and if the administrator wouldnt mind doing it, it should take too much time to do)

Good luck,
Larry

PS- A more simple idea might be to use a PHP script such as what I believe was mentioned above and just upload your files to a third party web host (if you use one) This way you dont have to mess up your offices servers and leave your boss without worry...


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Web Development Forum Home


Sponsored links

Ads by Google


Results for: html table from windows dir content

html table out of db table using CF www.computing.net/answers/webdevel/html-table-out-of-db-table-using-cf/3303.html

Generating HTML Links from Folder C www.computing.net/answers/webdevel/generating-html-links-from-folder-c/3641.html

HTML Tables www.computing.net/answers/webdevel/html-tables/1158.html