<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: Francesco Larossa</title>
    <description>The latest articles on Forem by Francesco Larossa (@hunterdev).</description>
    <link>https://forem.com/hunterdev</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3244613%2F4b4b1dc4-1211-4732-b5a3-3d8089690f04.png</url>
      <title>Forem: Francesco Larossa</title>
      <link>https://forem.com/hunterdev</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/hunterdev"/>
    <language>en</language>
    <item>
      <title>Configuring PHP securely in 2025 — common pitfalls and best practices</title>
      <dc:creator>Francesco Larossa</dc:creator>
      <pubDate>Fri, 15 Aug 2025 20:30:13 +0000</pubDate>
      <link>https://forem.com/hunterdev/configuring-php-securely-in-2025-common-pitfalls-and-best-practices-2k6o</link>
      <guid>https://forem.com/hunterdev/configuring-php-securely-in-2025-common-pitfalls-and-best-practices-2k6o</guid>
      <description>&lt;p&gt;When we talk about PHP security, most people think about sanitizing input or preventing SQL injection — but many vulnerabilities actually come from a misconfigured PHP environment.&lt;/p&gt;

&lt;p&gt;If your PHP installation is left at its defaults, you might be exposing more than you think. Here are some key settings to review:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Disable display_errors in production
Error messages can reveal sensitive information about your file paths, server setup, and even database structure. Always set:&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;display_errors = Off&lt;br&gt;
log_errors = On&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Turn off dangerous functions you don’t need
Functions like exec, system, shell_exec are powerful but dangerous if abused. Disable them in your php.ini with:&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;disable_functions = exec,passthru,shell_exec,system,proc_open,popen&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Use open_basedir restrictions
Limit PHP’s file access to only the directories your application actually needs:&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;open_basedir = /var/www/html&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Keep PHP updated
Old versions are often the easiest attack surface. Even if your code is secure, an outdated PHP version can be an open door.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;If you want a practical, modern guide to PHP in 2025 — including configuration tips and secure coding practices — I recently published one here:&lt;br&gt;
&lt;a href="https://chiccohunt.gumroad.com/l/fhzvh" rel="noopener noreferrer"&gt;Link&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Why Learning PHP in 2025 Still Makes Sense (Yes, Really)</title>
      <dc:creator>Francesco Larossa</dc:creator>
      <pubDate>Wed, 09 Jul 2025 14:22:30 +0000</pubDate>
      <link>https://forem.com/hunterdev/why-learning-php-in-2025-still-makes-sense-yes-really-1akg</link>
      <guid>https://forem.com/hunterdev/why-learning-php-in-2025-still-makes-sense-yes-really-1akg</guid>
      <description>&lt;p&gt;Every year, developers debate whether PHP is still relevant. Yet somehow, PHP continues to power over 75% of the web, from massive platforms to solo developer projects.&lt;/p&gt;

&lt;p&gt;If you're wondering whether PHP is still worth learning in 2025, here's the short answer: yes — and here's why.&lt;/p&gt;

&lt;p&gt;Some of the biggest names on the web — WordPress, Facebook (originally), Wikipedia, Slack’s backend services, and thousands of custom platforms — rely on PHP.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;That’s not by accident. PHP is:&lt;/li&gt;
&lt;li&gt;Fast to deploy&lt;/li&gt;
&lt;li&gt;Incredibly flexible&lt;/li&gt;
&lt;li&gt;Well-supported by hosts and tools&lt;/li&gt;
&lt;li&gt;In short: it works, and it scales.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you're new to backend development, PHP is one of the easiest languages to get started with. You can write your first script in minutes, and actually see something working in the browser.&lt;/p&gt;

&lt;p&gt;But don’t be fooled — PHP can also support huge, enterprise-grade applications. Modern frameworks like Laravel and Symfony have brought structure, security, and speed to the language.&lt;/p&gt;

&lt;p&gt;🛠️ 3. The Ecosystem is Mature and Powerful&lt;br&gt;
PHP offers:&lt;/p&gt;

&lt;p&gt;Seamless database integration (MySQL, PostgreSQL, SQLite, etc.)&lt;/p&gt;

&lt;p&gt;Native ses&lt;a href="https://dev.tourl"&gt;&lt;/a&gt;sion and authentication handling&lt;/p&gt;

&lt;p&gt;Tons of libraries and packages via Composer&lt;/p&gt;

&lt;p&gt;A massive global community&lt;/p&gt;

&lt;p&gt;Everything you need to build something real is already there — and well-tested.&lt;/p&gt;

&lt;p&gt;🎓 Want to Learn PHP the Right Way?&lt;br&gt;
If you're curious about learning PHP — or coming back to it with a fresh perspective — I’ve created a beginner-friendly course on Gumroad that teaches:&lt;/p&gt;

&lt;p&gt;How to set up a clean development environment&lt;/p&gt;

&lt;p&gt;Core PHP concepts explained clearly&lt;/p&gt;

&lt;p&gt;Real-world use of MySQL, SQL, and PHP together&lt;/p&gt;

&lt;p&gt;The foundation you need to build your own web projects&lt;/p&gt;

&lt;p&gt;No unnecessary theory — just practical, modern PHP with context and purpose.&lt;/p&gt;

&lt;p&gt;👉 Check it out here if you're ready to start building:&lt;br&gt;
&lt;a href="https://chiccohunt.gumroad.com/l/fhzvh" rel="noopener noreferrer"&gt;Link&lt;/a&gt;&lt;/p&gt;

</description>
      <category>php</category>
      <category>programming</category>
      <category>webdev</category>
      <category>html</category>
    </item>
    <item>
      <title>What Can You Build with PHP in 2025? More Than You Think</title>
      <dc:creator>Francesco Larossa</dc:creator>
      <pubDate>Wed, 25 Jun 2025 07:45:17 +0000</pubDate>
      <link>https://forem.com/hunterdev/what-can-you-build-with-php-in-2025-more-than-you-think-1edi</link>
      <guid>https://forem.com/hunterdev/what-can-you-build-with-php-in-2025-more-than-you-think-1edi</guid>
      <description>&lt;p&gt;When people hear "PHP," many still think of old-school websites or outdated codebases. But the truth is, PHP in 2025 is modern, powerful, and incredibly flexible — used by millions of developers around the world.&lt;/p&gt;

&lt;p&gt;If you’re just starting out and wondering “Is PHP still worth learning?”, here’s a spoiler: yes, absolutely.&lt;/p&gt;

&lt;p&gt;Let’s take a look at what you can actually build with PHP today.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;E-commerce Platforms&lt;br&gt;
PHP is behind the scenes of many popular online stores — thanks to platforms like WooCommerce, Magento, and PrestaShop. If you’re looking to build your own store or customize an existing one, PHP gives you full control and scalability.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Content Management Systems (CMS)&lt;br&gt;
WordPress, the most widely used CMS in the world, is built entirely in PHP. So are Joomla and Drupal. That means if you know PHP, you can build your own plugins, customize themes, or even create your own CMS from scratch.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Custom Web Applications&lt;br&gt;
From dashboards to booking systems to internal tools, PHP (especially with frameworks like Laravel or Symfony) lets you build highly interactive and scalable web apps quickly. Modern PHP is clean, testable, and robust — far from the "spaghetti code" days.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;REST APIs and Backends&lt;br&gt;
PHP is excellent for building RESTful APIs that connect your frontend (like React or Vue) to your backend logic and database. Tools like Laravel Sanctum or Slim Framework make it easy to create secure, high-performance APIs.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Community Platforms &amp;amp; Forums&lt;br&gt;
Need to build a custom community or user-driven platform? With PHP, you can create messaging systems, user profiles, upvoting features, and more. Stack Overflow was originally built using PHP!&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Bonus: Automation Scripts &amp;amp; Cron Jobs&lt;br&gt;
PHP isn’t limited to the browser — you can run it from the command line to create scheduled tasks, batch processes, or even lightweight backend scripts.&lt;/p&gt;

&lt;p&gt;Final Thoughts&lt;br&gt;
PHP in 2025 is far from dead — it's more capable than ever. Whether you're looking to build dynamic websites, powerful APIs, or entire web platforms, PHP has the tools and ecosystem to make it happen.&lt;/p&gt;

&lt;p&gt;If you're new to PHP and want to build real projects from day one, I’ve created a beginner-friendly course on Gumroad that covers everything from setup to SQL integration, with hands-on examples and modern best practices.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://chiccohunt.gumroad.com/l/fhzvh" rel="noopener noreferrer"&gt;Check it out here if you're ready to start building:&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>3 Common Mistakes Beginners Make When Learning PHP (and How to Avoid Them)</title>
      <dc:creator>Francesco Larossa</dc:creator>
      <pubDate>Tue, 10 Jun 2025 07:42:33 +0000</pubDate>
      <link>https://forem.com/hunterdev/3-common-mistakes-beginners-make-when-learning-php-and-how-to-avoid-them-3lop</link>
      <guid>https://forem.com/hunterdev/3-common-mistakes-beginners-make-when-learning-php-and-how-to-avoid-them-3lop</guid>
      <description>&lt;p&gt;When you're starting with PHP, it's easy to fall into some common traps that can slow down your learning or lead to bad habits. I’ve been working with PHP for nearly a decade, and I’ve mentored many beginners — I’ve seen the same issues come up again and again.&lt;/p&gt;

&lt;p&gt;Let’s go through three common mistakes you should watch out for, and how to avoid them from day one.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. Skipping the Basics Too Fast&lt;/strong&gt;&lt;br&gt;
Many beginners jump straight into building projects without really understanding what’s going on under the hood. Variables, data types, arrays, and control structures might seem “boring,” but they’re absolutely essential.&lt;br&gt;
&lt;em&gt;What to do instead&lt;/em&gt;&lt;br&gt;
Spend time writing small snippets of code that focus on each basic concept. Understand why things work, not just how. Try modifying simple examples and observing the result.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Not Using Error Reporting&lt;/strong&gt;&lt;br&gt;
By default, PHP may not show all the errors and warnings your code is producing — and that’s dangerous. You might think your code works just fine, but it could be hiding bugs.&lt;br&gt;
&lt;em&gt;What to do instead&lt;/em&gt;&lt;br&gt;
At the beginning of every PHP script you write while learning, add:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;ini_set&lt;/strong&gt;('display_errors', 1);&lt;br&gt;
&lt;strong&gt;error_reporting&lt;/strong&gt;(E_ALL);&lt;/p&gt;

&lt;p&gt;This will show you exactly what’s wrong — and help you fix it faster.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Copy-Pasting Without Understanding&lt;/strong&gt;&lt;br&gt;
It’s tempting to copy code from Stack Overflow or tutorials and paste it into your project. That can work in the short term, but it doesn’t teach you anything.&lt;br&gt;
&lt;em&gt;What to do instead&lt;/em&gt;&lt;br&gt;
When you find code online, rewrite it in your own words. Add comments. Change variable names. Ask yourself: &lt;em&gt;What does each line do? Could I explain it to someone else?&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;This kind of active learning makes all the difference.&lt;/p&gt;

&lt;p&gt;**PHP **is a powerful and beginner-friendly language — but like any language, it takes practice and patience. Avoiding these common mistakes can help you build a strong foundation and progress faster.&lt;/p&gt;

&lt;p&gt;If you're serious about learning PHP from the ground up, I’ve put together a beginner-friendly course on Gumroad that walks through everything step-by-step — with no fluff, just clear examples and practical exercises.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Check it out here if you’re interested:&lt;/strong&gt; &lt;br&gt;
&lt;a href="https://chiccohunt.gumroad.com/l/fhzvh" rel="noopener noreferrer"&gt;My Course&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Thanks for reading, and happy coding!&lt;br&gt;
Francesco&lt;/p&gt;

</description>
      <category>php</category>
      <category>devops</category>
      <category>webdev</category>
      <category>web</category>
    </item>
    <item>
      <title>Why I Wrote a PHP Guide in 2025</title>
      <dc:creator>Francesco Larossa</dc:creator>
      <pubDate>Wed, 04 Jun 2025 12:54:33 +0000</pubDate>
      <link>https://forem.com/hunterdev/why-i-wrote-a-php-guide-in-2025-2gn0</link>
      <guid>https://forem.com/hunterdev/why-i-wrote-a-php-guide-in-2025-2gn0</guid>
      <description>&lt;p&gt;Hi everyone,&lt;/p&gt;

&lt;p&gt;This is my first post here on DEV, and I wanted to take a moment to talk about something that keeps coming up in dev circles: PHP.&lt;/p&gt;

&lt;p&gt;Yes, PHP — the language many love to hate, others quietly rely on, and some never really looked into beyond WordPress or legacy projects.&lt;/p&gt;

&lt;p&gt;Despite its reputation, PHP is far from dead. It’s still one of the most widely used languages on the web, and in 2025, I believe it’s more relevant than ever.&lt;/p&gt;

&lt;p&gt;That’s exactly why I put together a practical PHP guide — not a beginner course that stops at echo statements, but a clear, focused resource for developers who want to understand why PHP still matters and how to use it effectively today.&lt;/p&gt;

&lt;p&gt;You can check it out here:&lt;br&gt;
&lt;a href="https://chiccohunt.gumroad.com/l/fhzvh" rel="noopener noreferrer"&gt;My Course&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Thanks for reading — happy coding and see you around DEV!&lt;/p&gt;

</description>
      <category>php</category>
      <category>programming</category>
      <category>webdev</category>
      <category>devops</category>
    </item>
  </channel>
</rss>
