Monthly Archives: August 2013

Using Cookies in PHP


Using Cookies in PHP Hi everyone, at the time this article was written, I was very hungry, and yeah … this is pretty much the place where the inspiration begins. So let’s cut to the serious things now and let me show you really quick how is using cookies in php. What are cookies ? Cookies

Getting title, excerpt, category outside loop in wordpress

wordpress logo

Getting title, excerpt, category outside loop in wordpress When developing your own template, I found that in some cases it is best not relying on the wordpress loop for getting information related to a specific post in our database. In some case, we just need information for just one article, so its a hassle if

5 of the best PHP frameworks for programmers

MVC PHP frameworks

A bit about php frameworks This is a topic that is not very well understood  by people who jump into development pool. PHP frameworks help to promote rapid application development, which saves you time, helps build more stable applications, and reduces the amount of repetitive coding for developers. Frameworks can also help beginners to build more

Install squid proxy with –enable-ssl for https_port

squid reverse proxy

Squid proxy with –enable-ssl A few months back when I was testing a few reverse proxy for leveraging load on my web server, I needed to setup SSL for one of my websites, unfortunately squid proxy, which I was using for reverse proxy, was not installed by default with –enable-ssl. This is only happening on

Best practices to optimize code performance in php

php code

Best practices to optimize code performance in php We developers, should search constantly for best practices when writing code. In this article I will focus on how to can write better and faster php code.  Keep in mind also that people get carried away with performance. I personally prefer to design for flexibility first, and worry

How to update and install php 5.3 and php 5.2 CentOS webtatic repo

How to install php 5.3 and php 5.2 A few weeks ago I had a client that needed an old php version updated, normally you can easily update or install php 5.3 directly from repository, but unfortunately there are a few scripts that require an older version of php installed, this is tricky when there

Building web apps with Phonegap.

Building web apps with Phonegap. Because the mobile platforms expanded a lot in the last years, people started switching programming languages in order to be hired. This is a problem that can be partially solved with the next thing I will present to you, and you will see why I use the word “partially”. The

How to install APF Firewall and DDoS Deflate protection

Firewall support

About APF firewall APF Firewall stands for Advance Policy Firewall, exactly as it name, it is script that contains a certain set of firewall rules. These rules are all being saved inside the folder /etc/apf/ directory and can be changed using any editor. This script is one of the best firewall scripts that I’ve used

JSONP cross-domain ajax call with jquery


JSONP cross-domain ajax call with jquery This was killing me back in the past. Imagine the following situation. You are on domain, and you want to make a request to domain to get some data or whatever. To do so, you need to cross domain boundaries, which is a DO-NOT in the world

Install memcached daemon / Install memcached extension using pecl

A little about Memcached Memcached is a service that allows you to store in memory key-value data like strings or objects, from results like databases queries, API calls and drastically accelerating queries and reducing the load on your server. Memcached is being used by major websites like Youtube, Twitter, Digg, and many many more.

Request an article ←