|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
remote ftp gallery
I have pictures that are on a ftp server and I want to know if there is a way for my webserver to connect to my ftp server and display the pictures in a table. I would like to just have a gallery that pulled from a certain directory on the ftp server.
I don't want to copy the pictures to my webserver because of space issue. Is there a script that will achieve this? |
|
#2
|
||||
|
||||
|
you should be able to make a seperate file that gets the image, here s an example if you aready have the file names
PHP Code:
it would be faster to have all the image names in a database, but if you want to read the names then use ftp_nlist(); and the other ftp functions to do that |
|
#3
|
||||
|
||||
|
yes, there is a way to do this..check my sample out:
http://terminal.x5788.net/ig.php it pulls everything out from http://terminal.x5788.net/img/ and displays it in a table $r cells across (i must admit though, it looks sorta crappy cuz it took me about 10 seconds to do, so dont criticize pleaz!:P) if this is sorta what you want, just say so, and ill give you my source code -xn |
|
#4
|
|||
|
|||
|
Quote:
Yes that is basically what im looking for. I would like something with thumbnails. I dont need anything fancy. Just a way to check screenshots over the web from a gaming server. |
|
#5
|
||||
|
||||
|
ok, heres the code:
PHP Code:
this codes sorta messy, but i think ill be able to clean it up sometime if more people requested it. you just need to set the 7 variables at the top and then youre set. tell me if you find any bugs in it pleaz -xn |
|
#6
|
|||
|
|||
|
it is pulling the files but isn't displaying images. The ftp server is windows. Would the ipath be c:/directory/path?
Also one more thing. I have .htm files in the same directory with the images and I won't be able to move them. How could I tell it to just display *.png files? http://www.isdp.net/ig.php Thanks alot! Last edited by vadertech : April 23rd, 2004 at 12:12 AM. |
|
#7
|
|||
|
|||
|
i have 100's of pictures to display. Maybe im better off with a gallery that uses a database.
|
|
#8
|
||||
|
||||
|
yeah...you would be much better of using a database or simply some sort of array due to speed problems....maybe i can find some way to do this for you..
|
|
#9
|
|||
|
|||
|
that would be great.
![]() |
![]() |
| Viewing: Dev Shed Forums > System Administration > FTP Help > remote ftp gallery |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|