Operations | Monitoring | ITSM | DevOps | Cloud

PHP

Native Binaries with PHP

There is always a big debate about whether interpreted or compiled languages are more useful. I think it is important to look at the pros and cons. Both language types have their strengths and weaknesses. While interpreted languages are great for maintaining and modifying software, compiled languages usually outperform them in terms of performance and packaging.

How To Prevent SQL Injection in PHP

SQL injection is a big security problem that can let attackers change database queries and get access to private data they shouldn't have. In PHP applications, SQL injection attacks happen when user input is not checked or cleaned before being used in SQL queries. This article looks at the different kinds of SQL injection attacks, shows examples of PHP code that is open to attack, and talks about the best ways to stop SQL injection problems in your applications.

Sending PHP Single-Page Application Logs to Loggly

In this post, we’ll embark on the journey of building a simple PHP single-page application that interacts with a MySQL database. We’ll integrate logging functionality on top of our application. Logging is a crucial aspect of any application—for providing insights into user behavior, tracking errors, and monitoring performance. We’ll start by walking through how to set up our application.

Schedule Cron Jobs in PHP

Automating tasks is important in web development. It saves time and lowers the risk of mistakes. Cron jobs in PHP are a good way to automate tasks on your server, like sending emails every day, making reports, or backing up databases. This article will show you how to schedule and manage cron jobs for different web development tasks using PHP. Whether you're new to cron jobs or want to improve your knowledge, this guide will help you automate server-side tasks with PHP efficiently.

Making sure Laravel's debug mode is always disabled in production

Recently, people started talking about a malware called “Androxgh0st” specifically targeting Laravel apps. In a recent edition of Securing Laravel, Stephen Rees-Carter wrote a good explanation of how it works. The malware targets apps with APP_DEBUG set to true. When enabled, Laravel will give detailed error messages, and some security features will be disabled. In production, you always want this value to be set to false.

Laravel Pulse cards to show response times, scheduled jobs, broken links

Today, we released the ohdearapp/ohdear-pulse package, which contains Laravel Pulse cards to show you the status of your scheduled jobs, any broken links you have in your Laravel app, and uptime / HTTP performance stats. All of these cards use the Oh Dear API to fetch their data. Laravel Pulse is a first party package that can display a dashboard with information surrounding usage and performance of your Laravel app. Here’s how a default installation looks like.

A festive treat: PHP 8.3 is already available on Platform.sh

Just like the feeling you get when you hear the first notes of Mariah Carey's "All I Want for Christmas Is You" signaling the arrival of the festive season, PHP developers can also rejoice in the release of a special gift this month—PHP 8.3. As many of you may already know, a few days ago PHP 8.3 was released and after some testing, it’s now ready to use on all Platform.sh projects.

Display All PHP Errors: Basic & Advanced Usage

A PHP application might produce many different levels of warnings and errors during its execution. Seeing these errors is crucial for developers when troubleshooting a misbehaving application. However, many developers often encounter difficulties displaying errors in their PHP applications, leading to silent app failures.