Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => Images

Using Remote Image Files

images php coding issues or problems here.

Moderators: macek, egami, gesf

Using Remote Image Files

Postby Devon » Mon Jun 23, 2003 4:20 pm

I have a Q that I hope is easy to answer... is there a simple way to serve gif images from a remote folder via url? Here's what I mean.. I was making a gallery of 102 x 116 images for a chat program I hang out in... the standard old make a loop, make a table, load the images, throw in a next/previous link kinda deal. The script works fine if the images are actually on my server. Is there any way to serve these gif files up from a remote server, say angelfire or whatever? I've got about 600 meg of em, and would hate to pay for the extra space... :(
Any ideas would be helpful, I'm new to this and truly stumped. Everything I've read so far on image files needs a path on my own server, I need to use a url...
Devon
New php-forum User
New php-forum User
 
Posts: 2
Joined: Mon Jun 23, 2003 4:11 pm

Postby liquedus » Mon Jun 23, 2003 6:39 pm

the answer to your question is this:

<img src="http://www.somehost.com/yourpic.gif" />

that is, if i understand your question correctly.
liquedus
php-forum Active User
php-forum Active User
 
Posts: 266
Joined: Tue Apr 08, 2003 5:18 am
Location: Ottawa, Canada

Using Remote Image Files

Postby Devon » Tue Jun 24, 2003 10:37 am

Actually.. I got that part...:) What I meant was is there any way to load the images files into an array from a remote folder... I can do this locally with fopen, using a relative path, ei... /usr/local/apache/images. What I need to be able to do is the same, but by using a Url. If there was a way for me to load an array up with the image file names, I can just serve them with print() or echo(). The problem is, and maybe I'm just staring the answer in the face, I can't seem to be able to figure out how to access a remote directory via URL and retrieve a listing of the image file names. Hope that clarifies it for someone.
Devon
New php-forum User
New php-forum User
 
Posts: 2
Joined: Mon Jun 23, 2003 4:11 pm


Return to PHP coding => Images

Who is online

Users browsing this forum: No registered users and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.