Tagged: PHP

How to Debug PHP Script From the CLI with PHP-XDEBUG

TL;DR Set your IDE to listen for incoming connections On the CLI set the session key,

Set XDEBUG configuration (can be set as environment variables or in-line parameters)

PS. set remote_host IP...

[PHP] Validate Email Address Format

A quick snippet I use to validate email address format.

E.g

 

Setup Xdebug for remote debug over SSH

If you have PHP application you need to debug, and there is a firewall between you and the hosting server, One can use SSH to tunnel the traffic from the remote site to the...