recentpopularlog in

dirtystylus : php   76

PHP: Traits - Manual
A way to encapsulate reusable methods that can be shared across classes without inheritance
oop  php  documentation  codearchitecture 
november 2018 by dirtystylus
Truncating Text & HTML with PHP | Patrick Galbraith
Basically you just count the number of chars using strlen if the length is greater than the limit then return a subset of the string.
php  truncation  webdev  programming 
march 2017 by dirtystylus
Debug a PHP app in a Docker container with Xdebug | Blog |
set xdebug.remote_host to the IP address of your Mac

When the LAMP stack is running in a container though, Docker’s network stack sits between the running processes inside the container and the host machine that’s running Docker Machine. This means that when I run a web server in a container, then open that site in my browser, the web server inside the container will see that the request originated from a host with an IP like which is the IP address of the host (Mac in my case) on the virtual network stack that Docker runs on the host.
docker  php  xdebug  vscode  ide  webdev  debugging  kalabox 
january 2017 by dirtystylus
Xdebug: Documentation
PHP and Xdebug are available from the unofficial Mac OS X package manager Homebrew. If you use PHP installed via Homebrew (see this installation guide for details on how to do that) Xdebug can be installed via brew install:

# brew install <php-version>-xdebug

# brew install php56-xdebug
php  xdebug  homebrew 
september 2016 by dirtystylus
How to pass PHP variables to Javascript/jQuery? - Drupal Answers
Encoding a PHP array in JavaScript scoped to Drupal.settings.
php  drupal7  javascript 
august 2016 by dirtystylus
Package/dependency manager for PHP
php  composer 
may 2013 by dirtystylus
PHP Tutorial for WordPress Users – PHP 101
Welcome to PHP 101, to the quickest, simplest PHP tutorial around, and the only PHP tutorial written specifically for the average WordPress user.
php  wordpress  tutorial  webdesign  webdev  mcad 
september 2012 by dirtystylus

Copy this bookmark:

to read