how can I monitor a folder for new files or folders [closed] - php

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
Using PHP, I am trying to create a monitoring or watch script that will let me know that a new file or folder has been created. I am not sure if it is possible in PHP or do I have to use any other program to monitor the folder.

Yes it is possible. You can create a cronjob or an infinite loop with a sleep period, that will initially map the folder, then listen for changes.

Related

Can a HTTP Server send multiple files in a structured file directory to browser [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
Can a web server push multiple downloads to a browser and ask it to download all the files and place them in the local storage in a pre-provided directory structure.
No.
You have two main options.
Serve a .zip file with the directory structure inside it.
Your web page can initiate multiple downloads - although the browser will warn the user.

PHP invoke Scanner Hardware and scan documents and upload it to Server [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
How to invoke Scanner from php script and scan document and then upload scanned document to server ?
Maybe you can try phpSANE.
phpSANE is a web-based frontend for SANE written in HTML/PHP so you can scan with your web-browser. It also supports OCR.

backup date weekly,monthly,quarterly in php [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I want to create a backup script to automatically run 3 times: monday of every week,first day of 1 of each month,and once per 3 months.My logical thinking,isnt that good,so i need your help guys.The code has to be in php,and the easiest way is with if.
You would need to do a cron job or launchd to do the automation but you could have it run your PHP script without a problem. All it would do is a directory recursive iterator to copy and make directories in a backup location. PHP has a ZIP library, if installed on your server, to create compressed files if so desired. See this page. This could be as complex a you make it. You may want to store the files on a remote server which you could use the FTP features in php to send with.

Can I host ownCloud & a Wordpress blog at the same URL? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I have a Wordpress blog hosted by Bluehost. I am now looking in to setting up ownCloud and I was wondering if and how I could set up both services on at same website. (I realize I'll probably have to do something so that the ownCloud is installed at mysite.com/cloud or something.)
I'm not totally sure that this is the right Stack Site for this question, but I think it is.
Yes, you can create a subdirectory as you wish and use mysite.com/subdirectory to start installation of ownCloud.

Web development in LAMP VM WARE [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
I have a LAMP configuration set up in a VM WARE. I am going to transfer files via FTP using transmit client.
Currently I have my files in the following directory
192.133.323.122/website/project/home.php
Do I create a folder in a specific directory?
Usually it'll go in your
your_user_here/var/www
but it doesn't matter really, as long as you know where it is and you know how to reach it.
I would suggest creating a folder with the name of the site, so you can find it easily, so it'll be something:
your_user_root/var/www/project_name

Categories