1/8/2023 0 Comments Php set expiration time utimeNow, if all goes well the package will check the uptime of every five minutes. The documentations contains a description of all the fields in that table. Instead of using the monitor:create command you may also manually create a row in the monitors table. This is optional, but if you do choose to specify a string and the string does not appear in the response when checking the url, the package will consider that uptime check failed. This is handy if you know a few words that appear on the url you want to monitor. You will be asked if the uptime check should look for a specific string on the response. Here's how to add a monitor for : php artisan monitor : create https : // The basicsĪfter you've set up the package you can use the monitor:create command to monitor a url. In this post I'd like to show you how to start using the package and discuss some of the problems we faced (and solved) while creating the code. Topics range from the basic installation setup to some more advanced settings. To make sure you can easily work with the package, we've written extensive documentation. Under the hood, the package leverages Laravel 5.3's notifications, so it's easy to use Slack, Telegram or one of the many available notification drivers. You can also be notified a few days before an SSL certificate on one of your sites expires. It will notify you when your site is down (and when it comes back up). It's written in PHP and distributed as a Laravel package. It's a powerful, easy to configure uptime monitor. If(is_dir("$address/$entry") & ($entry != "." & $entry != ".Today we released our newest package: spatie/laravel-uptime-monitor. This is the function which is doing the search. I run the function here to start the search. Put the date you want to compare with in the format of: YYYY-mm-dd hh:mm:ss Put / if you want to search your entire domain Put here the directory you want to search for. This script will go through all folders in the specified directory recursively and echo the modified files with the last modified date/time. Here is a small but handy script that you can use to find which files in your server are modified after a date/time that you specify. $highestKnown ) $highestKnown = $currentValue Įcho 'The newest file has the time stamp:' Įcho date ( 'Y-m-d H:i:s', getHighestFileTimestamp ( './' )) if you want to find out when the last change was made to your project). It could be useful to determinate the timestamp of the newest file in a directory. The function below takes care of any redirections, even multiple redirections, so that you reach the real file of which you want the last modification date. In such a case, the server HTTP response contains no Last-Modified header, but there is a Location header indicating where to find the file. However a problem may arise if some redirection occurs. To get the modification date of some remote file, you can use the fine function by notepad at codewalker dot com (with improvements by dma05 at web dot de and madsen at lillesvin dot net).īut you can achieve the same result more easily now with stream_get_meta_data (PHP>4.3.0). Getting Started Introduction A simple tutorial Language Reference Basic syntax Types Variables Constants Expressions Operators Control Structures Functions Classes and Objects Namespaces Enumerations Errors Exceptions Fibers Generators Attributes References Explained Predefined Variables Predefined Exceptions Predefined Interfaces and Classes Context options and parameters Supported Protocols and Wrappers Security Introduction General considerations Installed as CGI binary Installed as an Apache module Session Security Filesystem Security Database Security Error Reporting User Submitted Data Hiding PHP Keeping Current Features HTTP authentication with PHP Cookies Sessions Dealing with XForms Handling file uploads Using remote files Connection handling Persistent Database Connections Command line usage Garbage Collection DTrace Dynamic Tracing Function Reference Affecting PHP's Behaviour Audio Formats Manipulation Authentication Services Command Line Specific Extensions Compression and Archive Extensions Cryptography Extensions Database Extensions Date and Time Related Extensions File System Related Extensions Human Language and Character Encoding Support Image Processing and Generation Mail Related Extensions Mathematical Extensions Non-Text MIME Output Process Control Extensions Other Basic Extensions Other Services Search Engine Extensions Server Specific Extensions Session Extensions Text Processing Variable and Type Related Extensions Web Services Windows Only Extensions XML Manipulation GUI Extensions Keyboard Shortcuts ? This help j Next menu item k Previous menu item g p Previous man page g n Next man page G Scroll to bottom g g Scroll to top g h Goto homepage g s Goto search
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |