0

Hi there.
I have a problem: I want send every image to every div and display.
My code:
all.php

<?
$files = glob("output/*.*");
for ($i=1; $i<count($files); $i++)
{
	$num = $files[$i];
	print $num."<br>";
	echo '<img src="'.$num.'" alt="random image" />'."<br><br>";
}
?>

index.php

<img src="all.php" alt="image">

So, I don't know how to display multi image in index.php

Can you help me? thankz

3
Contributors
6
Replies
7
Views
6 Years
Discussion Span
Last Post by vukidrock
0

sorry, I want send every image to every div and display.
because, i won't design all.php, just store image.

But thank you for your help

0

I am still confused what is your exact requirement?
Why don't you directly write loop on index.php.
What is the use of all.php?

0

Dear Vibhadevit!

I've written loop in index.php before, but when you view source code, the image link like [folder/image.jpg].

I try to write code when you view source, the image link like [http://imagelink.jpg]. Can you help me?

I am just a beginner

0

i'm very stupid, so can you explain?

i try you Urtrivedi but nothing happen

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.