Hi there
This is my problem:

- Upload image (not important)
- Store its in [filename].php
- Show [filename].php like image.jpg in show.php (gallery)

Can you solve? Thank you so much

Member Avatar

show us your code so far.

$files = glob("output/*.*");	
for ($i=0; $i<count($files); $i++)
	$num = $files[$i];
	echo '<img style="display: inline;" alt="" class="" id="" rel="" src="'.htmlspecialchars($num).'" alt="random image" />';	


I just know display image, sorry, I'm beginner

Member Avatar

Have you looked at the php.net manual: move_uploaded_file()?

thank for your help!

can you help me any more?

in my problem, i have some image in Image Folder, i want display it as link.

For example: in webpage, images display of course, but when i save web, root folder saved. How does web saved, but image not saved, and display as just link.



<form action="uploader.php" method="post"
<label for="file">Filename:</label>
<input type="file" name="file" id="file" /> 
<br />
<input type="submit" name="submit" value="Submit" />



echo "Party Symbol<br/>";
  echo $_FILES["file"]["name"];
  echo $_FILES["file"]["tmp_name"];
      "./images/" . $_FILES["file"]["name"]);
         echo "<img src='"."./images/" . $_FILES["file"]["name"]."' width='500px' height='500px' border='2'>";
      //now open database connection and save tha path ./images/$_FILES["file"]["name"]



Hope it will solve your problem.
PS-If Your problem is solved mark the thread as solved...