PDA

View Full Version : Need help with web page for local network.




dubnluvn
Aug 6, 2009, 12:08 AM
I need to have a web page that lists the folders in a specific directory on a firewire hard drive from another mac on a local network. The folders will change regularly so the web page will need to be able to scan the directory and then display the names as well as open the index.html file within each corresponding folder. Someone told me PHP can do this fairly easily, in fact someone wrote up some code to for me for it, but doesn't work because of something to do with apache.

Any suggestions/insights as to how to accomplish this?



Cerebrus' Maw
Aug 6, 2009, 01:59 AM
Php will indeed do this, and its quite easy to do.

Make sure your server (which looks like it will be your own computer) has php installed on it. You can find several tutorials on the web for this (usually you just have to point your to the right file resource where your php kept)

angelwatt
Aug 6, 2009, 06:16 AM
Alternatively Perl, Python, or Ruby (all scripting languages) could do this, but it sounds like you already have a script to work from.

If you could provide some error messages, or the behavior of the system so we can better diagnose. Also, with PHP scripts, you'll want to make sure the file has a .php extension so the server knows to parse the PHP inside the file.

dmmcintyre3
Aug 9, 2009, 09:34 PM
If you want Mac OS X PHP enabled easily I used this (http://globs.org/articles.php?lng=en&pg=265) to do it. You then can just delete the thing it installed if you don't want it.