MALIK SHAFI

Experienced PHP Developer with a strong background in building scalable web applications in the IT services sector. Proficient in PHP frameworks like Laravel and CodeIgniter, and front-end technologies, Skilled in MySQL database management, RESTful API integration, and working with AWS services such as EC2 and S3. Extensive hands-on experience with Nginx configuration on AWS EC2 instances, optimizing for performance and security.
47 Posts

How to Fix a file_get_contents() Warning Instead of the PHP Error

I’ve run into this problem more times than I care to admit: I call file_get_contents() on a URL, something goes wrong with SSL, and...

How to Fix PHP Error Showing in Both PHP FPM and Nginx Logs in Docker

I’ve been experimenting recently with Dockerized PHP applications, trying to move away from file based error logs and instead send everything to stdout. That...

How to Fix Get Data from XML Using PHP

Recently, I was working on a game project where I needed to fetch quests from an XML database using PHP. Everything seemed to work...

How to Fix a PHP Reporting Suppresses AJAX Error

In one of my recent PHP based projects, I stumbled across a surprisingly frustrating issue while working with an AJAX widget. Everything worked perfectly...

How to Send an Email via Gmail SMTP Server Using PHP

How I broke it, what that cryptic error actually means, and the cleaner code I use today plus a few drills you can practice...