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

 

  • WordPress Tips and Tricks: Admin Access Recovery
  • Protocols: h2, h2c, and HTTP/1.1 Tips and Tricks
  • Nagios check_http notes for practical HTTPS monitoring
  • JavaScript-Heavy Service Pages Still Lose Leads in 2026: A Practical Rendering Audit
  • WordPress Google PageSpeed: Practical Fixes for Core Web Vitals
RSS feed

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