PHP Classes

my images are not on my server

Recommend this page to a friend!

      PHP Mosaic  >  All threads  >  my images are not on my server  >  (Un) Subscribe thread alerts  
Subject:my images are not on my server
Summary:Can I do this using an array of images instead of a local dir?
Messages:3
Author:Rui
Date:2011-08-09 23:24:14
Update:2011-09-04 15:15:15
 

  1. my images are not on my server   Reply   Report abuse  
Picture of Rui Rui - 2011-08-09 23:24:14
Currently i'm echoing hundreds or thousands of thumbnails (50x50px) in a webpage.

The thumbs location come from JSON and their hosted on a cdn and wend i start loading the page I don't know how manny thumbs i will echo (max 5000) so i use foreach()

i have an html mosaic in my webpage but i will also like to let my users download a single file with all the images together in one big mosaic
can your class be adapted to this situation?

THANK YOU
ps: sorry for my bad english

  2. Re: my images are not on my server   Reply   Report abuse  
Picture of johno dread johno dread - 2011-08-14 12:46:01 - In reply to message 1 from Rui
Rui,
Your english is not as bad as you think as had no problems understanding your needs.
First, can the class be adopted to use an array? Yes. However, it was not written to do that. But you could definitely rewrite that section of the code that looks in the directory to use an array instead.
You may want to limit the size of the image you are allowing your users to download so that download times will be faster from their perspective

  3. Re: my images are not on my server   Reply   Report abuse  
Picture of Rui Rui - 2011-09-04 15:15:15 - In reply to message 2 from johno dread
Hello Johno, thank you for your kind reply. I think my english is way better than my PHP Skils :)

Im currently using

foreach($me['data'] as $frns)

{

echo "https://graph.facebook.com/".$frns['id']."/picture\"


}

To build a list of image locations how can I feed this into the

var $sources of your class??


Regards