Skip to main content
GrN.dk

Main navigation

  • 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

 

  • Portfolio
  • About Greg Nowak
  • Gregs IT and Logistics Optimization
  • Shrink PDF In Linux
  • Running Linux on T450s T495s T14, Thinkpads and Others
RSS feed

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