PHP, or Hypertext Preprocessor (originally Personal Home Page), is an open-source server-side scripting language used for developing dynamic websites and web applications. It’s extremely popular, too — more than 75% of all websites were still using PHP as of October 2022, with no signs of slowing down any time soon. It’s free to download and use and powerful enough to run some of the biggest websites on the internet (WordPress, Facebook, and Wikipedia, just to name a few).
In the scenario where you want to execute tasks repeatedly at a specific time and have full control over when they are executed and how the results are handled, it makes sense to build this into your application instead of setting up a cron job, for example. I’d like to give you a quick example of how you can achieve this in PHP using two great libraries, ReactPHP and cron-expression. ReactPHP is an event-driven programming library that has an event loop at its core.
A few years ago, we introduced a new, completely independent library. The IPL – Icinga PHP Library, a bundle of Icinga PHP libraries. Since then we are actively working on further development and adding new features. Today I would like to highlight individual parts of this library and the tasks they perform.
PHP is one of the most popular open source programming languages on the internet, used for web development platforms such as Magento, WordPress, or Drupal. In addition to all PHP bases, PHP-FPM is the most popular alternative implementation of PHP FastCGI. It has additional features which are really useful for high-traffic websites. In this article, you’ll learn how to monitor PHP-FPM with Prometheus.
In a typical Laravel application, you'll likely to have many routes, config files and possible some events. In your development environment these routes and config files will loaded and registered in each request. The performance penalty for this is not too big. In a production environment, you want to cache these things. Laravel makes this easy by offering a couple of Artisan commands that you can use in your deployment procedure.
With the growing pace of tech-oriented companies, software development is picking up. Many new tech stacks are coming into the world to make the development process easier, and a lot of these new companies are using PHP as the backend framework for their apps. PHP, with its various version updates, has grown popular among developers. Most PHP developers have heard and worked with Laravel at least once.
Why are PHP memory limits important to your website development journey? PHP is a famous backend technology that is used by many tech giants for supporting their applications. PHP gives many advanced features for making web pages dynamic and integrating some features you can not simply get using javascript, HTML, and CSS. Whenever you set up a new PHP project, some memory is allocated automatically. This memory is mostly suitable for general applications.
In part one of our PHP logging blog series, we discussed what logging is and covered the basics of creating logs in PHP applications using the PHP system logger. While the PHP system logger automatically records critical events like errors in code-execution, a more customized logging setup can be achieved using PHP functions. For part two, let's look at the basics of creating custom error logs by calling PHP functions.