Resend my activation email : Register : Log in 
BCF: Bike Chat Forums


HTML index page source code

Reply to topic
Bike Chat Forums Index -> General Bike Chat Goto page 1, 2  Next
View previous topic : View next topic  
Author Message

McJamweasel
BCF Junkie



Joined: 22 Mar 2002
Karma :

PostPosted: 16:12 - 08 Oct 2003    Post subject: HTML index page source code Reply with quote

Yo. I'm after some code that will automatically make links to all the files that are in the same folder as the html. I've got no idea where to start looking tho, and ideas?
____________________
BCF: Be yourself, just don't be an arse.
 Back to top
View user's profile Send private message Send e-mail You must be logged in to rate posts

TiN
Pocket Tin



Joined: 14 Feb 2002
Karma :

PostPosted: 16:36 - 08 Oct 2003    Post subject: Reply with quote

There's probably some PHP script out there...sorry I can't be more specific. Confused
____________________
TiN
dotgems.net
 Back to top
View user's profile Send private message Send e-mail Visit poster's website You must be logged in to rate posts

Dusty
King of the Rim



Joined: 25 Mar 2003
Karma :

PostPosted: 16:40 - 08 Oct 2003    Post subject: Reply with quote

https://dusty.my-site.me.uk/funny/bunnypancake.jpg

Sorry been waiting for a chance to use that...
____________________
Gallery
 Back to top
View user's profile Send private message Visit poster's website You must be logged in to rate posts

WildGoose
White Van Man



Joined: 21 Mar 2002
Karma :

PostPosted: 16:42 - 08 Oct 2003    Post subject: Reply with quote

Laughing that cheered me up quite a bit briefly, i thank you
____________________
So in other words, he stopped you for being flagrantly in posession of a motorcycle in direct contravention of the Hippies, Darkies and People Whose Face I Don't Like The Look of (Police Powers) Act. 1976
 Back to top
View user's profile Send private message You must be logged in to rate posts

MarJay
But it's British!



Joined: 15 Sep 2003
Karma :

PostPosted: 16:44 - 08 Oct 2003    Post subject: Reply with quote

LOL @ Dusty Laughing
____________________
British beauty: Triumph Street Triple R; Loony stroker: KR1S; Track fun: GSXR750 L1; Commuter Missile: GSX-S1000F; Cheap project: CBR900RR FireBlade
Remember kids, bikes aren't like lego. You can't easily take a part from one bike and then fit it to another.
 Back to top
View user's profile Send private message Send e-mail You must be logged in to rate posts

zaknafien




Joined: 25 Mar 2002
Karma :

PostPosted: 16:54 - 08 Oct 2003    Post subject: Reply with quote

/me frowns at dusty once again. Sad
____________________
02 Firestorm.
 Back to top
View user's profile Send private message Send e-mail You must be logged in to rate posts

TiN
Pocket Tin



Joined: 14 Feb 2002
Karma :

PostPosted: 16:56 - 08 Oct 2003    Post subject: Reply with quote

Here's something I've just knocked together:

Code:

<?php
$dir = "./images/";

// Open a known directory, and proceed to read its contents
if (is_dir($dir)) {
    if ($dh = opendir($dir)) {
        while (($file = readdir($dh)) !== false) {
            print "<a href=$dir$file>$file</a><br>";
        }
        closedir($dh);
    }
}
?>


You just need to change the base directory.
____________________
TiN
dotgems.net
 Back to top
View user's profile Send private message Send e-mail Visit poster's website You must be logged in to rate posts

Dusty
King of the Rim



Joined: 25 Mar 2003
Karma :

PostPosted: 16:58 - 08 Oct 2003    Post subject: Reply with quote

The hassle I go to for you Zak Rolling Eyes

Follow this link the picture I posted was put up by 'Booouurns', about a third of the way down the page,-

https://pub114.ezboard.com/fyamahar6messagenetfrm13.showMessage?topicID=1462.topic
____________________
Gallery
 Back to top
View user's profile Send private message Visit poster's website You must be logged in to rate posts

MarJay
But it's British!



Joined: 15 Sep 2003
Karma :

PostPosted: 16:59 - 08 Oct 2003    Post subject: Reply with quote

is that Linux or do the /'s act like quotation marks in other scripts/languages? Question
____________________
British beauty: Triumph Street Triple R; Loony stroker: KR1S; Track fun: GSXR750 L1; Commuter Missile: GSX-S1000F; Cheap project: CBR900RR FireBlade
Remember kids, bikes aren't like lego. You can't easily take a part from one bike and then fit it to another.
 Back to top
View user's profile Send private message Send e-mail You must be logged in to rate posts

zaknafien




Joined: 25 Mar 2002
Karma :

PostPosted: 17:00 - 08 Oct 2003    Post subject: Reply with quote

Get better hosting and we wouldnt have this problem. Razz
____________________
02 Firestorm.
 Back to top
View user's profile Send private message Send e-mail You must be logged in to rate posts

Dusty
King of the Rim



Joined: 25 Mar 2003
Karma :

PostPosted: 17:03 - 08 Oct 2003    Post subject: Reply with quote

zaknafien wrote:
Get better hosting and we wouldnt have this problem. Razz


We don't have this problem, you have this problem. Get rid of Blueyonder Razz

Sorry for thread hyjack Colin Neutral
____________________
Gallery
 Back to top
View user's profile Send private message Visit poster's website You must be logged in to rate posts

McJamweasel
BCF Junkie



Joined: 22 Mar 2002
Karma :

PostPosted: 17:03 - 08 Oct 2003    Post subject: Reply with quote

Cheers Tin.

So if I put that online as a .html it should work? Well, once I've put the directory in.
____________________
BCF: Be yourself, just don't be an arse.
 Back to top
View user's profile Send private message Send e-mail You must be logged in to rate posts

TiN
Pocket Tin



Joined: 14 Feb 2002
Karma :

PostPosted: 17:04 - 08 Oct 2003    Post subject: Reply with quote

No, you need to save it as .php, and upload it as binary (if applicable).
____________________
TiN
dotgems.net
 Back to top
View user's profile Send private message Send e-mail Visit poster's website You must be logged in to rate posts

zaknafien




Joined: 25 Mar 2002
Karma :

PostPosted: 17:04 - 08 Oct 2003    Post subject: Reply with quote

Dusty wrote:
zaknafien wrote:
Get better hosting and we wouldnt have this problem. Razz


We don't have this problem, you have this problem. Get rid of Blueyonder Razz


I would but blueyonder is superior in every way to everything, therefore it's your hosting that sucks. Razz
____________________
02 Firestorm.
 Back to top
View user's profile Send private message Send e-mail You must be logged in to rate posts

McJamweasel
BCF Junkie



Joined: 22 Mar 2002
Karma :

PostPosted: 17:08 - 08 Oct 2003    Post subject: Reply with quote

It does nowt. :S

Bugger.
____________________
BCF: Be yourself, just don't be an arse.
 Back to top
View user's profile Send private message Send e-mail You must be logged in to rate posts

TiN
Pocket Tin



Joined: 14 Feb 2002
Karma :

PostPosted: 17:10 - 08 Oct 2003    Post subject: Reply with quote

McJamweasel wrote:
It does nowt. :S

Bugger.


Yes it does work, I wrote it and tested it.

What have you done?
____________________
TiN
dotgems.net
 Back to top
View user's profile Send private message Send e-mail Visit poster's website You must be logged in to rate posts

McJamweasel
BCF Junkie



Joined: 22 Mar 2002
Karma :

PostPosted: 17:13 - 08 Oct 2003    Post subject: Reply with quote

Changed the directory and uploaded it. here: https://www.aqub86.dsl.pipex.com/pics/index.php
____________________
BCF: Be yourself, just don't be an arse.
 Back to top
View user's profile Send private message Send e-mail You must be logged in to rate posts

TiN
Pocket Tin



Joined: 14 Feb 2002
Karma :

PostPosted: 17:18 - 08 Oct 2003    Post subject: Reply with quote

Ah, you're doing it like that, in which case, you'll need to change the directory to just "./"

ie.:

Code:

<?php
$dir = "./";

// Open a known directory, and proceed to read its contents
if (is_dir($dir)) {
    if ($dh = opendir($dir)) {
        while (($file = readdir($dh)) !== false) {
            print "<a href=$dir$file>$file</a><br>";
        }
        closedir($dh);
    }
}
?>

____________________
TiN
dotgems.net
 Back to top
View user's profile Send private message Send e-mail Visit poster's website You must be logged in to rate posts

McJamweasel
BCF Junkie



Joined: 22 Mar 2002
Karma :

PostPosted: 17:21 - 08 Oct 2003    Post subject: Reply with quote

Still booger all. Sad
____________________
BCF: Be yourself, just don't be an arse.
 Back to top
View user's profile Send private message Send e-mail You must be logged in to rate posts

TiN
Pocket Tin



Joined: 14 Feb 2002
Karma :

PostPosted: 17:25 - 08 Oct 2003    Post subject: Reply with quote

Erm, I've just taken a peek at your index.php, and it's still reading "./pics" as the directory, you need to change it to "./".
____________________
TiN
dotgems.net
 Back to top
View user's profile Send private message Send e-mail Visit poster's website You must be logged in to rate posts

McJamweasel
BCF Junkie



Joined: 22 Mar 2002
Karma :

PostPosted: 17:26 - 08 Oct 2003    Post subject: Reply with quote

TiN wrote:
Erm, I've just taken a peek at your index.php, and it's still reading "./pics" as the directory, you need to change it to "./".


No its not, I have changed it. And yes, I even uploaded it!
____________________
BCF: Be yourself, just don't be an arse.
 Back to top
View user's profile Send private message Send e-mail You must be logged in to rate posts

TiN
Pocket Tin



Joined: 14 Feb 2002
Karma :

PostPosted: 17:29 - 08 Oct 2003    Post subject: Reply with quote

Are you sure that PHP is enabled on your server then? Or that it doesn't need some other naming convention? i.e. .PHP4 or something.
____________________
TiN
dotgems.net
 Back to top
View user's profile Send private message Send e-mail Visit poster's website You must be logged in to rate posts

McJamweasel
BCF Junkie



Joined: 22 Mar 2002
Karma :

PostPosted: 17:31 - 08 Oct 2003    Post subject: Reply with quote

TiN wrote:
Are you sure that PHP is enabled on your server then? Or that it doesn't need some other naming convention? i.e. .PHP4 or something.


Not the foggiest mate. Will go and find out...
____________________
BCF: Be yourself, just don't be an arse.
 Back to top
View user's profile Send private message Send e-mail You must be logged in to rate posts

TiN
Pocket Tin



Joined: 14 Feb 2002
Karma :

PostPosted: 17:34 - 08 Oct 2003    Post subject: Reply with quote

Save the following code as info.php

Code:
<html>
<head>
<title> PHP Test Script </title>
</head>
<body>
<?php
phpinfo();
?>
</body>
</html>


Then see if *that* does anything.
____________________
TiN
dotgems.net
 Back to top
View user's profile Send private message Send e-mail Visit poster's website You must be logged in to rate posts

McJamweasel
BCF Junkie



Joined: 22 Mar 2002
Karma :

PostPosted: 17:39 - 08 Oct 2003    Post subject: Reply with quote

Bugger all.

Pipex doesn't mention having PHp support at all, so I'm guessing thats a big fat NO! Confused
____________________
BCF: Be yourself, just don't be an arse.
 Back to top
View user's profile Send private message Send e-mail You must be logged in to rate posts
Old Thread Alert!

The last post was made 22 years, 351 days ago. Instead of replying here, would creating a new thread be more useful?
  Display posts from previous:   
This page may contain affiliate links, which means we may earn a small commission if a visitor clicks through and makes a purchase. By clicking on an affiliate link, you accept that third-party cookies will be set.

Post new topic   Reply to topic    Bike Chat Forums Index -> General Bike Chat All times are GMT + 1 Hour
Goto page 1, 2  Next
Page 1 of 2

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Read the Terms of Use! - Powered by phpBB © phpBB Group
 

Debug Mode: ON - Server: birks (www) - Page Generation Time: 0.10 Sec - Server Load: 0.59 - MySQL Queries: 14 - Page Size: 131.66 Kb