October 19th in PHP Scripts by .

How to add adsense code to vanilla forum?

vanilla

i looked at vanilla and really liked the cool design of the forum software. After setting up my forum powered by vanilla i wanted to show some adsense ads. i did download the google adsense plugin for vanilla and it never worked and there wasnt much of information in …

September 30th in PHP Scripts by .

15+ Best Free PHP IDEs for PHP Developers

phplogo

I have always loved open source IDEs for php code development and from what i have seen most of the best php editors are commercial, yet there are only few free ones available, so i have decided to put up a list of pretty handful ones.  I am sure there …

July 9th in PHP Scripts by .

Eclipse IDE loading slow?

eclipse

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 of …

September 29th in PHP Scripts by .

How URL shortening scripts work?

base361.PNG

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 .

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 .

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 .

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 .

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 .

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 .

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 …