Skip to main content
GrN.dk

Main navigation

  • Articles
  • Contact
  • Your Digital Project Manager
  • About Greg Nowak
  • Services
  • Portfolio
  • Container
    • Excel Freelancer
    • Kubuntu - tips and tricks
    • Linux Apache MySQL and PHP
    • News
    • Image Gallery
User account menu
  • Log in

Breadcrumb

  1. Home

Debugging PHP

There are many ways of debugging php. I will start creating a reference guide here.

One of the best references out there: https://phptherightway.com/

Activate showing php errors either in the application itself, cpanel or php.ini.

error_reporting(E_ERROR | E_WARNING);

Dumping variables

var_dump($variable_name);
file_put_contents("dump.txt", ob_get_contents());
ob_end_clean();

 

key words: debug

Last modified
2021-11-02
  • Log in to post comments

Review Greg on Google

Greg Nowak Google Reviews

 

  • Let’s Encrypt’s May 2026 profile changes turn certificate renewal into a live operations audit
  • Ubuntu 26.04 LTS Raised TLS Defaults, So Legacy Integrations Need a Real Test Plan
  • Cloudflare's new enforce DNS-only switch makes origin readiness a paid incident drill
  • Drupal's Automatic Updates Cleanup Got More Urgent After the Old API Shutdown
  • Apache 2.4.67 Put Old Reverse Proxies Back on the Risk List
RSS feed

GrN.dk web platforms, web optimization, data analysis, data handling and logistics.