Originally posted by YUPAPA
What's a fly?
Insects?
Originally posted by Johnny
an expression. they use.. liek instead of making a html page for ever image.. just make one html page and call the image out with that.
Originally posted by is0lized
you know exactly what he is talking about, stop spamming please
<html>
<head>
<title>Images Viewer</title>
</head>
<body>
<center>
<?
if (file_exists("$DOCUMENT_ROOT/images/$QUERY_STRING")) {
?>
<img src="/images/<? echo("$QUERY_STRING"); ?>" border="2"><br>
<?
}
else {
?>
<font face="arial" size="2"><b>
Whoops! No such image.<br>
</b></font>
<?
}
?>
</center>
</body>
</html>
/images.php?picture.jpg
in action at [url]http://www.weezerfans.com/rock/discs.shtml[/url]
Originally posted by keith
yupapa, you're so unfunny it's laughable. and if you're not being a dork and you really are that stupid, it's a damn shame. a damn shame...
[/code]
keith always revolves around me.
Whenever I post something on the board, he always reply me right away. And most of them are usually useless because why? He wants to attack or insult me. And that's make him really cool isn't it?
SO what did I do to him making him treating me this way? I really want to know the answer. Is he bored and needs to make fun of me?
And you think that I really do know what Johnny is trying to do?? sorry, but not everyone knows everything in the whole world...
I never said I am a smart person, so why did you all thought I knew what Johnny was trying to do?
Originally posted by Johnny
how do i edit it so that I would have my own html design? cause this is just a plain page with the image you call out.
And on that site they had "http://www.weezerfans.com/rock/discs/sayitaintso.jpg"
that is where the image is at.. but the script "http://www.weezerfans.com/images/discs.php" is here.. aren't they suppose to be in teh same dir?
Originally posted by Johnny
yupapa even I believe you are just acting stupid.. and f-ing aroudn with me.
Originally posted by YUPAPA
You can add the "include" code at the top of the script OR just edit the header in that php file.
Originally posted by Johnny
make me an example please.. yupapa uf know this, how coould u not know what on the fly means. after somone explain it to you u still say you don't know.. see what i mean you just tryint to act stupid.
Ok.. I really dont' know jack about php.. anyone could show me what i need to do for it to work.
#!/usr/bin/perl
my $imageDIR = qq($ENV{'DOCUMENT_ROOT'}/path/to/image/dir);
my $imageURL = qq([url]http://www.yourdomain.com/path/to/image/dir[/url]);
my @image_ext = ("jpg","jpeg","jpe","gif");
chdir($imageDIR);
foreach (<*>) {
chomp;
@ext = split(/\./,$_);
foreach $extension (@image_ext) {
if($ext[1] eq $extension) {
print qq(
<IMG SRC="$imageURL/$_">
);
}
}
#!/usr/bin/perl
my $imageDIR = qq($ENV{'DOCUMENT_ROOT'}/path/to/image/dir);
my $imageURL = qq([url]http://www.yourdomain.com/path/to/image/dir[/url]);
my @image_ext = ("jpg","jpeg","jpe","gif");
&header;
chdir($imageDIR);
foreach (<*>) {
chomp;
$ext = split(/\./,$_);
foreach $extension (@image_ext) {
if($ext eq $extension) {
print qq(
<IMG SRC="$imageURL/$_">
);
}
}
&footer;
sub header {
print qq(
<HTML>
<HEAD><TITLE>My images</TITLE></HEAD>
<BODY>
Header<P>
);
}
sub footer {
print qq(
<P>Footer<P>
</BODY>
</HTML>
);
}