|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 |
|
Member (5 bit)
|
HTML or PHP folder link
Hey all, i just finished installing and configuring the localhost file server. anyways, id like to know if anyone could please give me a bit of code that lets someone just click a link to a folder in my appserv/www and see the contents without having to type out the whole thing like http://localhost/mypic.jpeg? thank you all, this would be very helpful
it could be any formatt, as long as i could use it that way, thanks all
|
|
|
|
|
|
#2 |
|
Come in Ray...
Join Date: Sep 2004
Posts: 1,668
|
All you have to do is enable directory browsing on the directory with your files. I would make this a sub-directory so they cannot get to your php source files.
Example: if this is the path... http://localhost/files/mypic.jpg Enable the "files" sub-directory for directory browsing. |
|
|
|
|
|
#3 |
|
Member (5 bit)
|
Thank you for the help
but my files are in C:\Appserv\WWW, and online for my pc its http://localhost, anyways, i went into the www folder and activated the directory browsing feature, but did you mean to make another folder, call if files or w/e, put the files i want in there, then activate it there? because what i wanted was something so that it had links to download the files in my files folder, and so that someone could just choose a link and download it, without having to type out http://localhost/*filename*, so, in other words, to make it look like FTP, taht it shows all the files you could download, etc. Thanks for the help faulkner132, Could you please help me one more time please?
|
|
|
|
|
|
#4 |
|
Security Dude
Staff
|
As long as there is no set index file (a filename starting with index) and your .htaccess folder is set to allow directory listing, this feature is automatic. If I recall, AppServ has directory listing enabled by default, but I'm not sure on that. When you want to get a directory list, simply go to http://localhost/ and you will get the directory listing you wish. For security reasons, I recommend creating another folder where you store info that is meant to be listed, so you dont accidentally save file with private information in the root folder. If you create a new folder, to directory list, you would just have to go to http://localhost/foldername. Good luck, HTH
__________________
Tyler A. Thompson Small Business Networking Services Specialist tyler@derbydigital.com |
|
|
|
|
|
#5 |
|
Member (5 bit)
|
thanks buddy, that helped alot,
anywyas, you know of any good WYSIWYG programs for PHP, becuase i dont know php and i wanted to know if i could make some simple things with it. Because i dont know if appserv supports HTML, does anyone know? thank you because so far ive only seen php files in there, thanks again
|
|
|
|
|
|
#6 |
|
Security Dude
Staff
|
PHP does not come in a WYSIWYG form, because most of what it does is server side, and "behind the scenes", meaning there is no graphics involved in PHP. AppServ does support HTML. HTH
PS: Did you happen to read my article on creating a Web Server? |
|
|
|
|
|
#7 |
|
Member (5 bit)
|
thx buddy, and i think i did read the tutorial on making a web server...the one on this site right, on the home page. Anyways, all i did was make a new folder within the C:/appserv/www/ and put all my files in there, and went to http://localhost/*foldername* and it worked just like i wanted it to
thank you again for helping me.
|
|
|
|
|
|
#8 |
|
Member (5 bit)
|
one last thing buddy, html is different from frontpage extensions right? so i dont need to install the frontpage extensions to make the html work on my appserv ? thanks alot buddy.
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|