Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: html  (Read 4786 times)

0 Members and 1 Guest are viewing this topic.

Neo

  • Guest
html
« on: July 12, 2006, 10:51:48 PM »
i am looking for and html code that will show all the files in the same folder as the html file and allow you to view them

Zylstra

  • Moderator


  • Hacker

  • The Techinator!
  • Thanked: 45
    • Yes
    • Technology News and Information
  • Certifications: List
  • Computer: Specs
  • Experience: Guru
  • OS: Windows 7
Re: html
« Reply #1 on: July 13, 2006, 12:53:29 AM »
Quote
i am looking for and html code that will show all the files in the same folder as the html file and allow you to view them
Its not a matter of an HTML code, its a matter or directories.
Create a blank directory on your site
(eg: http://www.mysite.com/directorythatiwanttoshow/ )
Do not create a Index.htm file.
Place non index.htm files into that directory.

Then go to the directory (eg: http://www.mysite.com/directorythatiwanttoshow/ )
without adding a file name (like main.htm ) to the end of the URL.
(Thats the only way I know how to do that)

T-Chai

  • Guest
Re: html
« Reply #2 on: July 13, 2006, 11:50:17 AM »
Do you mean how to show the folder in sort out directory level
Let say if you have a site the appears to be in section...... www/sub_html/mysite
Then you want to show where the site file is place at, you can use php.

Use this code
<?php echo $_SERVER['SCRIPT_NAME']."
"; ?>

Neo

  • Guest
Re: html
« Reply #3 on: July 13, 2006, 09:47:55 PM »
i want an html document so thet when u go to what ever say index.html it will show u a list of all the files thet are in the same folder as the index.html file
example

_______________________
|www.????.com/index.html |
|                                   |
|index.html                      |
|pic1.jpg                         |
|pic2.jpg                         |
|file.exe                          |
|movie.avi                       |
|                                    |
-------------------------------


and by clicking on the name it will open the file


and by going to the www.???.com/whatever     dose not work becouse i wont it to work when viuwing a local file     so there is no server to make the list
« Last Edit: July 13, 2006, 09:49:47 PM by Neo »

Zylstra

  • Moderator


  • Hacker

  • The Techinator!
  • Thanked: 45
    • Yes
    • Technology News and Information
  • Certifications: List
  • Computer: Specs
  • Experience: Guru
  • OS: Windows 7
Re: html
« Reply #4 on: July 13, 2006, 11:13:36 PM »
Quote
i want an html document so thet when u go to what ever say index.html it will show u a list of all the files thet are in the same folder as the index.html file
example

_______________________
|www.????.com/index.html |
|                                   |
|index.html                      |
|pic1.jpg                         |
|pic2.jpg                         |
|file.exe                          |
|movie.avi                       |
|                                    |
-------------------------------


and by clicking on the name it will open the file


and by going to the www.???.com/whatever     dose not work becouse i wont it to work when viuwing a local file     so there is no server to make the list
Well, because your computer is not a server, and because you don't have Apache, and because PHP doesn't work on  your computer, strait up, you cant.

You could make a page, however, that links to the files you want to open. Like so
Code: [Select]
<html>
<title> Your Page </title>
</br<
<body>
<a href="file://image.gif"> File1 </a>
<br>
</body>
</html>

Well, that's about all you can do without a server.


Neo

  • Guest
Re: html
« Reply #5 on: July 13, 2006, 11:56:46 PM »
darn

Rob Pomeroy



    Prodigy

  • Systems Architect
  • Thanked: 124
    • Me
  • Experience: Expert
  • OS: Other
Re: html
« Reply #6 on: July 14, 2006, 03:39:48 AM »
You cannot use plain HTML to display contents of folders automagically.  But do not dispair.  You can install PHP (and a web server) on any computer really, so if it's particularly important to you to do this, there is always a way.  :)
Only able to visit the forums sporadically, sorry.

Geek & Dummy - honest news, reviews and howtos

Neo

  • Guest
Re: html
« Reply #7 on: July 15, 2006, 05:25:35 PM »
i was trying to use it to show a list off all the flash games on my psp so anything to do with a server cant be done and there are a lot of files so i dont want to make it by hand

Rob Pomeroy



    Prodigy

  • Systems Architect
  • Thanked: 124
    • Me
  • Experience: Expert
  • OS: Other
Re: html
« Reply #8 on: July 17, 2006, 07:42:53 AM »
Can you browse all of the files on the PSP, using a different computer?  If so, we may have a quick solution for you.
Only able to visit the forums sporadically, sorry.

Geek & Dummy - honest news, reviews and howtos

Neo

  • Guest
Re: html
« Reply #9 on: July 17, 2006, 11:44:05 AM »
yes    what?

Rob Pomeroy



    Prodigy

  • Systems Architect
  • Thanked: 124
    • Me
  • Experience: Expert
  • OS: Other
Re: html
« Reply #10 on: July 18, 2006, 03:31:48 AM »
Are the flash files all in the same folder?  If so, go to the folder in question, and do
dir > files.txt
then post that file ("files.txt") here, and we can then discuss how exactly you want this formatting.
Only able to visit the forums sporadically, sorry.

Geek & Dummy - honest news, reviews and howtos