July 9th in PHP Scripts by pbu .

Eclipse IDE loading slow?

There has been a lot of talk on the Web regarding the Eclipse IDE which is regarded as the best editor and IDE for PHP and javascript development and other languages including.

i did give a try on the the new kit and later realized that the latest version …

September 29th in PHP Scripts by pbu .

How URL shortening scripts work?

I have been quite intrigued with the working of these URL shortner scripts and surprisingly most of them employ an ingenious solution to compress the URL to a shortened one.

http://example.com/fe45 ——-> http://corpocrat.com/blah/page.htm

The answer is base36 encoding. why base36? because it can contain 26 alphabets and 10 numbers in the …

September 28th in Linux/Unix, PHP Scripts by pbu .

How to check IPs on same subnet?

How to check IPs on same subnet?

In many cases, you might want to check whether an ip address falls under a same subnet or not. It can be done both in perl and php using the Network library.

For PHP use Net IP4 library
For PERL use Net::IP library

<?php
// check for IP …

September 22nd in Linux/Unix, PHP Scripts by pbu .

HOWTO: Install PEAR for php in Linux

Install PEAR for php in Linux

It is very easy to install PEAR package for php. It lets you to install many many php extensions easily without compiling the source packages.

If you get

pear – command not found

then it means pear is not installed in your server. To install it …

August 18th in Linux/Unix, PHP Scripts by pbu .

Automatic Face Detection in Photos with PHP

testface1.jpg

I have always wondered how to detect faces automatically with php script. I have seen in many photo sharing and social network sites automatically detect a face and tag a name after being uploaded.

In this article, i will explain how possible this task can be achieved with simplicity with OpenCV …

July 28th in PHP Scripts by pbu .

How to filter & escape data from Injection attacks in PHP!

Ask any security expert! He will say you should always filter POST and GET data by escaping them before insertion into the database. In that way your scripts can be safe from SQL injection attacks.

Many php programmers are so lazy and just directly insert the POST data without filtering it …

July 27th in Linux/Unix, PHP Scripts by pbu .

Using htaccess to redirect domain without http://

Using htaccess to redirect domain without http

A very simple problem made me to sweat a lot. I have a site where users post their website link and most of them are so dumb and just wont put http:// in their domain and they submit just like www.domain.com.

If the link goes …

July 6th in PHP Scripts by pbu .

PHP script using mail() vs smtp?

PHP script using mail vs smtp method for emailing

I have often confused about the which method to use for sending mails with a php script. I have used php mail() function in many projects and it is often slow, which is because this function opens sockets everytime you call this …

June 23rd in PHP Scripts by pbu .

PHP script to convert text string to image

PHP script to write email address into a image

I was after a php script that dynamically converts text to image and finally i decided to code on my own. It also does convert small length text to image like names, emails etc..

This script automatically calculates the width of text …

May 25th in PHP Scripts by pbu .

Retrieve select box value from database using PHP

Retrieve select box value from database using PHP

I have been in many situations in designing a html form where i want the value stored in database selected in select box when editing the user data.

For example if i have colors like Red, Green, Blue, Yellow, Violet shown in selectbox and …

 Page 1 of 5  1  2  3  4  5 »