netpumber Posted November 5, 2009 Share Posted November 5, 2009 Halo.. So this is what i want to create. I have a folder that i share and it has many movies.. So i will setup a local web browser and i want to make a .php file that after you login it will saw you the files that are in this share(movies names). How i can make php print out a list of files in that specific directory ? Thanks..! Link to comment https://forums.phpfreaks.com/topic/180399-local-file-browser-with-php/ Share on other sites More sharing options...
taquitosensei Posted November 5, 2009 Share Posted November 5, 2009 php can only do file browsing on the computer it's running on. It's server side. Link to comment https://forums.phpfreaks.com/topic/180399-local-file-browser-with-php/#findComment-951712 Share on other sites More sharing options...
netpumber Posted November 5, 2009 Author Share Posted November 5, 2009 yes i know. the server that will run this script has the hdd that i share.. So these two things are in the same pc. Link to comment https://forums.phpfreaks.com/topic/180399-local-file-browser-with-php/#findComment-951869 Share on other sites More sharing options...
simshaun Posted November 5, 2009 Share Posted November 5, 2009 readdir() Link to comment https://forums.phpfreaks.com/topic/180399-local-file-browser-with-php/#findComment-951870 Share on other sites More sharing options...
kenrbnsn Posted November 5, 2009 Share Posted November 5, 2009 I find that glob is easier to use than readdir Ken Link to comment https://forums.phpfreaks.com/topic/180399-local-file-browser-with-php/#findComment-951871 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.