I have xampp (apache, mysql,php) development server on my windows 7, I’m developing a PHP application using a modern php5 framework that has cool URL routing, I was having some problems getting the routing to work the way I wanted because http://localhost or http://127.0.0.1 doesn’t have an extension like any domain (eg: .com , .net) [...]
Today I was in need to add captcha spam protection to a form I have in a Codeigniter app I’m building for a client, I have looked at Codeigniter captcha helper but the example was not clear enough and was showing that you must use database and that was something I did not want. I [...]
March 16, 2012 – 11:29 pm
Today I have built a function for a client that does include a file from wordpress wp-content directory and I have made a shortcode to use this function within posts & pages or widgets the function is very simple and all it does is includes a file function my_func() { echo ‘<div id="testimonials">’; include(ABSPATH . [...]
Today while I was chatting to friends on skype I suddenly stopped receiving their PMs, actually skype stopped sending or receiving messages I clicked on skype icon then “quit” it just won’t close and so i opened terminal and ran top command and skype was using 100% of CPU, very weird! so I ran killall [...]
I have openVPN access server setup on an openVZ vps, I’m using Ubuntu and I usually connect to my openvpn access server using profile file like this openvpn –config profile.ovpn Today for some reason I was not able to connect to my openVPN and I was getting the following errors: Sat Mar 10 23:31:34 2012 [...]
February 8, 2012 – 3:37 pm
This cpanel ftp problem is usually caused when there is something wrong with files ownership, this happened to me today while I was trying to delete some files from a cPanel account using FileZilla, It even happened while I was trying to use cPanel file manager, there is an easy and quick way to fix [...]
February 5, 2012 – 8:00 pm
I have been playing with Python & Tkinter for couple of days, then thought of sqlite3 so I can do something useful with Python Tkinter & sqlite3, after this tutorial you will know how to create basic a Python program to store notes in sqlite3 database and retrieve them, This program should work on Windows, [...]
January 25, 2012 – 9:57 pm
Facebook offers a flexible and easy to use API called Graph, graph is simply a URL that once you open in a browser or within your code it return a JSON (JavaScript Object Notation ) string, in this tutorial you will learn how to use php and facebook graph API to access public posts and [...]
January 18, 2012 – 11:04 pm
In today’s web, its much better to use x hour ago, day ago , month ago , a year ago etc. CodeIgniter has a built-in function in date_helper that allows you to convert any date/time to “xx Time ago” style, its called timespan() it takes 2 arguments the first one is the date/time you want [...]
January 18, 2012 – 10:47 pm
Let install OpenVZ AS (Access server) on an openvz VPS, as most vps providers are using openvz technology. We will be installing openvpn AS on a VPS with centOS 6 32bit, It should be no problem if you are using 64bit also this tutorial can work just fine on a dedicated server or Xen VPS. [...]