Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
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?

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

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?

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,
LarryPS- 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...

![]() |
![]() |
![]() |

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