Home Account

Tag :: php

build php solr extension on ubuntu linux BLA

14-Feb-2012 17:07:19 dennis

Tags: apache2 solr php

I had a few problems building the php5-solr extension with the regular pecl command on my Ubuntu 10.04 box, so this will show you how it is done. I guess it will work with other versions of ubuntu as well.


apc crashes when no file is uploaded

09-Apr-2012 19:55:15 dennis

Tags: php apc ubuntu

Fixing APC upload bug when no file is given in upload field. Complies to PHP 5.3.5-1ubuntu7.7 on Ubuntu 11.04


auth plain smtp

07-Jun-2012 14:18:57 dennis

Tags: php smtp

This short piece of PHP code generates valid AUTH PLAIN for smtp servers, at least Postfix. Can be used when testing smtp with telnet.


simple github api php

29-Dec-2012 16:44:42 dennis

Tags: php oauth

a verfy simple github API for PHP with example.


PHP PDO escape like query

29-May-2014 15:11:52 dennis

Tags: php pdo

How to escape like queries with PHP and MySQL


git delete remote tag script

27-Aug-2015 18:45:19 dennis

Tags: php git

Simple script to delete a remote git tag. When a programmer does a thing more than three times, he should make a small program.


michelf markdown rel = nofollow

18-Dec-2013 16:38:21 dennis

Tags: php scripts-and-functions

How to extend the michelf markdown parser to allow attributes to links, like rel="nofollow"


include classes without namespaces into namespace php

18-Dec-2014 14:51:00 dennis

Tags: php pear

Preventing fatal PHP error Cannot redeclare class Validate when importing classes without a namespace into a namespace.


babun and php composer

06-Jun-2016 15:20:09 dennis

Tags: babun php composer

Fix errors when running php composer on babun.


anonymous and inline functions with php

20-Nov-2012 18:25:36 dennis

Tags: php

Using inline and anonymous functions with PHP. Some tests and thoughts about function scope.


rename files recursively php

31-Jan-2012 17:14:57 dennis

Tags: php scripts-and-functions

A couple of function to use in order to rename a directory recursively. Needed it at my work and could not find anything that worked the way I excepted.


parse ini file cached with APC

29-Dec-2011 14:45:37 dennis

Tags: php scripts-and-functions apc

This is short howto which describes how to cache php ini files with APC by default. Ini files are not cached by APC by default.


Simple PRG Pattern PHP

05-Nov-2016 16:22:27 dennis

Tags: php prg

A very simple implementation of the PRG pattern with PHP using sessions alone.


AFC search sub fields

31-Mar-2017 22:52:45 dennis

Tags: php wordpress

How to search for AFC sub fields. Mostly about the date picker field or datetime.


Linux init scripts with php

18-Jun-2011 03:45:21 dennis

Tags: php scripts-and-functions

Showing how to create startup or init scripts with PHP on a Ubuntu machine. Short and easy to follow howto.


remove all dirs with selected name

12-Sep-2013 15:41:10 dennis

Tags: php scripts-and-functions

How to remove dirs with a special name using PHP and the unix shell.


create large text file with php

13-Dec-2012 11:40:46 dennis

Tags: php

Howto create a very large text file with PHP


Serv from local IP (inet addr) with PHP

15-Apr-2019 19:52:29 dennis

Tags: php

Use PHPs built-in server to serve from local IP - or inet addr. In order to use or test from other devices on the same network.


git auto commit script

25-Mar-2013 12:53:50 dennis

Tags: php scripts-and-functions git

Simple script to perform the steps involved in adding, committing and pushing to a remote git repo. It rewrites the https URL to ssh URL in the process.


Parse PDO string into an array

07-Nov-2019 20:47:46 dennis

Tags: php

How to Parse a PDO string into an array


redirect php request to secure https host

07-May-2011 21:54:16 dennis

Tags: php scripts-and-functions

this entry describes how to redirect a request acording to both servername and server port (e.g. 80 = http and 443 = https)


simple css compiler written in php

28-Jul-2012 20:56:04 dennis

Tags: php css

Blog entry showing how to make a very simple CSS compiler with PHP and CSS, without much effort.


simple event dispatcher php

29-Dec-2011 17:48:10 dennis

Tags: php scripts-and-functions

Most simple example of an event dispatcher I can think of. Written in PHP


how to create a screen dump with php on linux

26-May-2011 02:40:06 dennis

Tags: php scripts-and-functions linux screendumps

Short entry to show how to make screen dump on linux with PHP.


php built-in server and routing static content

19-Mar-2014 15:36:54 dennis

Tags: php

PHP built-in server. How to route static content when it clashes with content served from routes and database.