Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

damlays

Members
  • Joined

  • Last visited

  1. About code modification for the folder system which I told in my previous post, if someone can say me at least "easy and short" OR "difficult and long" modification needed, it will be a valuable information for me.
  2. In my host's control panel there is an option to enter a new "cron job" command so I can use this function...but I am not sure how can I use the command dnotify. I don't think so in php file, right?
  3. Yes that way is easier. I don't know script language but by the help of many people step by step this code is created as a solution to my case. And this php file is backuping the files by a cron job running every minute.. <?php $src_folder='/home4/user2//public_html/.mydomain/cam'; $dest_folder='/home4/user2//public_html/.mydomain/cam/old'; if(!is_writable($dest_folder)){ die("$dest_folder not writable"); } $arr=array('cam_office1','cam_office2a','cam_office2b','cam_home'); foreach($arr as $cam_office1){ if(file_exists("$src_folder/{$cam_office1}.jpg")){ copy("$src_folder/{$cam_office1}.jpg","$dest_folder/{$cam_office1}_".date('ymdhis').".jpg"); }else{ echo "can't find file {$src_folder}/{$cam_office1}.jpg<br />"; } } ?> But there are 2 problems in this solution; 1)In one minute there can be 10 different uploads but I can catch and copy only 1 image in this time period by this way 2)If there is no change (new upload according to the detected motion) in camera image file, it is useless to save a copy of image in every minute For the first item I think it is more difficult to find any solution, beacuse script must be triggered by every new upload, but it is not easy to do. But for the second item there can be still something to do. For example these 2 things below can help to manage high quantity of uploaded files; a) An addition to the script to check if the file is still same or not. If same no saving will be done by the script even every minute it is running. If we can modify the current code for saving the image files every hour to a new created folder instead of one stable folder, then it can be possble to manage many saved files. I mean for every day one parent folder of the day will be created automaticly by php file if it is the first file saving after 12:00 am of previous day. Folders as below 121116 121117 121118 ....... And in each folder, 24 folders will be created one by one by php file when the time comes to save an image if file belongs to a new hour, as 00 01 02 04 .... ... 22 23 If anyone can help me about modifying the file, thanks very much in advanced.
  4. For example in my web server, there are 4 webcam images in one folder (continiously updated by overwriting according to the upload coming from webcam software - as "a.jpg, b.jpg, c.jpg, d.jpg) Webcam software is always overwriting the image files but I want to keep and save all uploaded images with increasing numbered file names (as a0001.jpg, a0002.jpg, a0003.jpg, .... b0001.jpg, b0002.jpg, b0003.jpg, .... for every webcam image file) in a seperate folder (by using cron job?) while keeping their upload date and time information. I dont have knowledge for scripting language , but I can guess that there may be some way to do it?

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.