backup date weekly,monthly,quarterly in php [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
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.

Related

Developing PHP Custom Application Setup Environment [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
I Have Created PHP Custom Application, want to make a UI for Setup the project in User System without touching and configuring the code.
As of Now, I am Calling a Php File Writing the complete Script(DB creation, and table Creation, Loading the Content in Table, creating Config File etc.)
It`s Working File. if there is an other solution please Share.
Thanks.
During the installation, create a particular file.
In the index.php, check if this file exists before proceeding. If it does, installation has been run before and you can proceed. If it doesn't, the application is not installed yet.

Linux Server not responding [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 7 years ago.
Improve this question
Server not responding when I tried to convert uploaded video file(More than 100M) into mp4 format.I am using ffmpeg converter.its taking too much time to convert video file.
can any suggest how to fix this issue.?
the PHP-Instance, which is calling ffmpeg, stunning your Server. Its not a good idea to perform realtime Video-rendering.
i would handle this so:
users upload there videos via php-script videos are stored in a
folder named "toConvert"
a cronjob parsing this folder every 5 minutes and call ffmpeg for the job
when a job is done, make a recall to "jobReadyAction.php" for after action

How I can host Media files like mp3 in a diffrent 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 8 years ago.
Improve this question
How I can host Media files like mp3 in a different server ?
I have a website for converting videos to audio.
I want to host this audio files in a different server, but I want to keep the codein the first server.
Is this possible?
For example, if the user finished the conversion, he will be redirected to the other server.
http://example.com/.... ===> http://serv55.example.com/.....
It sounds like what you want to do is have the first server which does the processing copy the file onto the 2nd server once it's finished processing.
The best way to do this (depending on your setup) would probably be using ssh to copy the files.
http://php.net/manual/en/function.ssh2-scp-send.php

how can I monitor a folder for new files or folders [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
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.

Multiple PHP Requisitions per minute [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 8 years ago.
Improve this question
Is there a way in the server-side to execute once an operation instead of execute it every time when I sent a PHP request?
For example, I have an website that makes a lot of requisitions, but its independent from user or anything else, it just depends on the application running in the server with wich I'm willing to manage with my website.
So I want a way to just get the data that I need, processed by a script in the server not by every PHP request, i.e. The server will execute the only once and then I can grab the data with PHP.
As lonut suggested use cronjob (linux) or task manager (windows) to run you PHP task at specific intervals.
You can run standalone php script from the command line by using php path/to/your/script.php

Categories