Deprecated: Assigning the return value of new by reference is deprecated in /home/content/27/11020327/html/wp-settings.php on line 267

Deprecated: Assigning the return value of new by reference is deprecated in /home/content/27/11020327/html/wp-settings.php on line 269

Deprecated: Assigning the return value of new by reference is deprecated in /home/content/27/11020327/html/wp-settings.php on line 270

Deprecated: Assigning the return value of new by reference is deprecated in /home/content/27/11020327/html/wp-settings.php on line 287
PHP | ProDevTips - Web Development Tutorials


Archive for the ‘PHP’ Category

Proxying with PHP in Ubuntu 14.04 (Apache 2.4, PHP 5.4+)

Saturday, January 16th, 2016

I’ve just had to evade a Russian block of one of my employer’s sites, let’s call it CasinoX. Presumably they had blocked both www.casinox.com and www.casinox.com’s IP address (which is a Cloud Flare IP btw).... Read More

Hacking Wordpress The Ugly And Quick Way

Tuesday, August 4th, 2015

Recently I’ve started a little project to see how I can do with IDN affiliate sites where there is a lot less competition than in English.... Read More

Functional HTML Rendering with PHP

Tuesday, August 4th, 2015

When you’re working with a programming language that doesn’t have templating per default and you’re not in the mood - or don’t see the need - for templating your first course of actions is to write something to obviate having to print and concatenate everything.... Read More

Emacs as a Multi Mode Web Dev IDE is Now Possible

Friday, October 18th, 2013

Through web-mode the possibility of using Emacs as a web dev IDE with full multi mode capabilities a la Aptana Studio or PHPStorm is finally here. But it will take some tweaking to get things perfect so read on…... Read More

Aptana Studio 3 Snippets For The Singleton Pattern

Tuesday, November 6th, 2012

So it seems my old eclipse templates won’t work anymore in Aptana Studio 3.... Read More

Xmodmap for quick PHP programming in Linux

Tuesday, September 25th, 2012

When I program Clojure and PicoLisp I use Emacs and it’s the way things are done in Emacs which inspired me to looking into making myself more productive doing PHP in Eclipse.... Read More

Mercurial revision history search with PHP

Wednesday, August 8th, 2012

Hgview is a fantastic tool but for some reason the search field refused to come up in my version no matter how much CTRL+F I tried.... Read More

Dynamic Eclipse PDT (PHP) templates for the singleton pattern

Sunday, September 25th, 2011

I’m currently working with a legacy PHP CMS and do-it-all system which is heavily reliant on singletons. Instead of relying on static methods and direct invocation we store object instances in a global array, these instances are then retrieved through the use of a call looking like this: singleton(’ClassName’).... Read More

How to parse and tokenize a complete PHP project

Sunday, September 25th, 2011

Yesterday I had to loop through every directory in a whole PHP project and go through all the PHP files in order to get at their contents, the goal was to get information from each file in order to create an array looking like this for each class method:... Read More

MySQL replication in PHP - on the same machine

Wednesday, September 14th, 2011

I just realized I needed to replicate some data from one database to another, but only certain tables.... Read More