Jump to content

Trying To Display Images From A Directory On To Webpage


Nigel12

Recommended Posts

Hi,

I have been trying to display images from a directory on to a webpage. The code I am using is here and it is in 2 parts, I have a directory called "upload" which is where my images are. I have created a php file and called it getimages.php I put the php file in my directory called "upload" where my images are the code in it is

<p>




			
		
Link to comment
Share on other sites

You have to link to the image relative to the file that the user first loaded.

 

If they loaded http : //www . example . com/dir/abcd/efg/index.php, and the image was in /dir/upload, you would have to either call the image relatively, ../../upload/image.jpg or absolutely, http : //www . example . com/dir/upload/image.jpg.

Edited by maxudaskin
Link to comment
Share on other sites

For some reason it only posed half of what I wrote :)

Crystal balls are just a myth, a fantasy let's not get to carried away. But if you have a php script that can make one let me have a copy :) it might let me know what to buy the wife for Christmas

I will update my post later when I have access to it. I am not at home right now.

Edited by Nigel12
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.