• November 02, 2024, 01:13:57 PM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  

News:

This Forum Beta is ONLY for registered owners of D-Link products in the USA for which we have created boards at this time.

Pages: 1 [2]

Author Topic: DIY: How to easily view your FTP'd images in a gallery using your web browser  (Read 72990 times)

Kyyyyyy

  • Level 1 Member
  • *
  • Posts: 1
Re: DIY: How to easily view your FTP'd images in a gallery using your web browser
« Reply #15 on: September 22, 2013, 10:34:47 AM »

Hey, can you please let me know how you made PHPAlbum refresh more than every 24 hours?

 I tried your second link as well (single file php album) and it didn't work with my web host (1&1) :(


Thanks for the awesome write up! :D
Logged

Notworried

  • Level 2 Member
  • **
  • Posts: 98
Re: DIY: How to easily view your FTP'd images in a gallery using your web browser
« Reply #16 on: September 22, 2013, 05:31:38 PM »

Where do you get free FTP server these days? I am getting pics emailed to me but that is very disruptive.
Logged

schwieb

  • Level 1 Member
  • *
  • Posts: 1

For what it's worth, I've created a simple bash script to delete the folders over a certain age.  This script will work with the 'Single file PHP Galery' setup. All you need to do is set the path to your uploaded images and _sfpg_data directories.  I used cron to execute this script every night at midnight.
-R

Code: [Select]
#!/bin/bash

#Set deletion interval (x days ago).
daysago=`date -d "10 days ago" +%Y%m%d`

#Set directory path 
dir=/home/html/webcam

#Set SFPG data directory path
sfpg=/home/html/webcam/_sfpg_data

#The Delete Script
for dirs in "$dir"/*/
do
 if [[ "$dirs" != "$sfpg"/ ]]
 then
   cam=`basename $dirs`
   cd $dirs
for backup in [0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]
do
       if test "$backup" -lt "$daysago"
       then
      #echo $dirs$backup
      rm -rf $dirs$backup
      #echo $sfpg/info/$cam/$backup
      rm -rf $sfpg/info/$cam/$backup
      #echo $sfpg/thumb/$cam/$backup
      rm -rf $sfpg/thumb/$cam/$backup
       fi
done
 fi
done
Logged

RYAT3

  • Level 10 Member
  • *****
  • Posts: 2254

Where do you get free FTP server these days? I am getting pics emailed to me but that is very disruptive.

iusbport ?

filezilla server?
Logged
Pages: 1 [2]