Tagged: PHP

laravel logo

Laravel & Lumen with Informix DB

I was looking to try and work with Lumen to create a API frontend for few services we have, and the problem I had was to make Laravel/Lumen to work with Informix DB. I...

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, export XDEBUG_CONFIG=”idekey=netbeans-xdebug” Set XDEBUG configuration (can be set as environment variables or in-line parameters) # in-line php -dxdebug.remote_enable=1...

[PHP] Validate Email Address Format

A quick snippet I use to validate email address format. <?php if (empty($argv[1])) { echo ‘usage: ‘ . $argv[0] . ‘ [email protected]’ . PHP_EOL; exit (1); } array_shift($argv); foreach ($argv as $key => $email)...

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...