MadFly Posted November 21, 2007 Share Posted November 21, 2007 I am planning on setting up a media server on my LAN, but i want to make it so that users can only access the media list via a webpage. html.is there a way i can list everything in a specific directory on a specific hard drive?like say for example i have 3 drives with only media on, Movies, and Series...any ideas? Link to comment Share on other sites More sharing options...
MadFly Posted November 21, 2007 Author Share Posted November 21, 2007 the only thing i know of is to put html files in all directories and then href to all the .avi files... gonna take a WHILE... Link to comment Share on other sites More sharing options...
javaholic5 Posted November 21, 2007 Share Posted November 21, 2007 I am planning on setting up a media server on my LAN, but i want to make it so that users can only access the media list via a webpage. html.is there a way i can list everything in a specific directory on a specific hard drive?like say for example i have 3 drives with only media on, Movies, and Series...any ideas? Are users going to be downloading these files, or will it be some type of live video feed or streaming? Link to comment Share on other sites More sharing options...
Synook Posted November 22, 2007 Share Posted November 22, 2007 i have 3 drives with only media on, Movies, and Series...A server stretching across three drives? umm...is there a way i can list everything in a specific directory on a specific hard drive?You can use the PHP glob() function, but your page will have to end in .php unless you reconfigure the server. Link to comment Share on other sites More sharing options...
MadFly Posted November 22, 2007 Author Share Posted November 22, 2007 "A server stretching across three drives? umm..."no what i ment was, i am planning on installing a server thing, then install 3 hard drives with movies and series and stuff, then i want to share those files via a webpage... i got it to work in a way with test run... but im still not sure if that is what i want. but the server's media will only be shared on the local lan, and there is not very much users on the lan... so the users will have a choice of "downloading" the media or to watch it directly from the server, well... that depends on if my server can handle that... but i will test it someday, and perhaps get a fast ethernet or something...i dont really want to use php, a bit too complicated for me at this moment. jsut starting to actually learn about html, xhtml and css etc...oh and by the way... can i change the doctype thingy in the top of a xhtml or html document to my own website? or do i need certain things or some files or what?i want to change the "http://www.w3.org/../...../..../....... to "http://www.madfly.co.za/../..../...!DOCTYPE html PUBLIC"-//W3C//DTD XHTML 1.0 Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd Link to comment Share on other sites More sharing options...
Synook Posted November 22, 2007 Share Posted November 22, 2007 i dont really want to use php, a bit too complicated for me at this moment. jsut starting to actually learn about html, xhtml and css etc...You can't dynamically list the files without using a server-side scripting language such as PHP.oh and by the way... can i change the doctype thingy in the top of a xhtml or html document to my own website? or do i need certain things or some files or what?Well... yes... but you need to download the .dtd file. So, go to http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd and download it, then copy it to, say, the root of your website, then you can reference it with http://www.madfly.co.za/xhtml1-transitional.dtd . But you don't really need to do that, the W3 website isn't going to crash or disappear soon, and almost everyone just links the DTD to their server. Only if you made a modified or custom DTD would you need to have a copy on your website. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.