Browsing articles in "PHP"
Feb 18, 2009
admin

PHP 5 Magic – __sleep() and __wakeup() methods


Hello Friends,

The magic method _sleep() and _wakeup() is called when an object is serialized. The magic method _sleep() and _wakeup() provides a method to clean up and restore objects before being serialized.

Working with _sleep()

_sleep() magic method is called when the object of a class is about to be serialized. This magic method _sleep() does not accept any parameter and returns an array. The array should contain a list of class members that should be serialized. This means that if you don’t wish to serialize a particular class member, you should not include it in the array. Look at the example below: Continue reading »

Feb 18, 2009
admin

PHP 5 Magic – _clone() method


Before I begin to explain the use of a _clone() method, lets try and understand what does object cloning mean.

To clone an object means to create a duplicate of an object. With regular variables $a = $b means that a new variable $a gets created that contains the value of $b. This means that 2 variables get created.

With objects $obj2 = $obj1 does not mean that a new object i.e. $obj2 gets created. When we execute $obj2 = $obj1, the reference of $obj1 is assigned to $obj2. This means that $obj1 and $obj2 point to the same memory space. Look at the diagram below. Continue reading »

Feb 9, 2009
admin

Free Download PHP Books


Hello Friends !

As you all know by this site, I am trying to provide you the knowledge of PHP.

If you are new for PHP then don’t worry friends .

I found some PHP books which will help you to learn PHP easily.

I list some links on which you can find PHP Books absolutely free…

PHP 5 Power Programming

Free PHP Books Zone

PHP Junk Yard

Free PHP Programming Books

Free PHP Ebooks

Above links are useful those all the peoples who want to learn PHP and those who wnat to do Powerfull programming in PHP.

If you like this post then Please Comment on this post..

Enjoy the Free Books……

Jan 29, 2009
admin

Domain Name Availability Checker PHP Script


Hello Friends. Yesterday when i was surfing, i found one very useful PHP Script named Domain Name Availability Chacker.

Domain Name availability Chacker Script is very easy to install if your server is PHP enabled. This script is very simple to use. The domain name availability checker also checks bulk domain names in just a single click.

Just input the desired domain name in the text box and click “check domain availability” button to get the results on the fly.

You have to just copy this script then paste it and run this PHP script.

PHP Script is Shown below : Continue reading »

Jan 20, 2009
admin

Enabling mod rewrite in XAMPP


URL Rewriting is used for SEO purpose and also for security purpose.

If you use XAMPP and url rewriting is not working, then you have to load mod rewrite in you XAMPP.
Here I write steps to enable mod_rewrite in your system.

  • Go to Drive where XAMPP  directory saved (in Drive C or D or any).
  • Go to this path xampp\apache\conf
  • Edit httpd.conf.
  • Find the line which contains #LoadModule rewrite_module modules/mod_rewrite.so
  • Remove comment(#).
  • Then stop XAMPP and Refresh it.

Thats It. Url rewriting is Working.

Enjoy.

Jan 12, 2009
admin

How To Start PHP ?


If You are new in Web Developement, Then first you have to learn HTML.
Click Here to study all about HTML.

Dec 17, 2008
admin

What Is PHP ?


PHP meansPersonal Home Page

PHP is a powerful server side scripting language. Syntex of PHP is similar to C language. PHP is also use OOPs concepts.

PHP code is embeded in HTML.

If you are new for web, then first you have to learn HTML.

PHP code is written as follows :

1 <?php

echo “Hello !”;

?>

You can also write code as :

2 <?

echo “Hello !”;

?>

In some cases 2nd code is not working.(Depend on Server).

So please make habit to write PHP script as 1st code.

Pages:«12345

Support to grow

If you think my post is helps you then please make donation and do support to grow:

PHP Genious Services

I am a PHP freelancer india, PHP Developer india, PHP programmer india, Wordpress Freelancer india, Wordpress customization services, Wordpress Plugin Developer, Wordpress theme customization, Wordpress plugin customization, Magento Freelancer, Magento Developer india, Magento customization services, Magento theme integration, Opencart Developer india, Zencart Freelancer, Opencart customization, Opencart plugin development, HTML and CSS customization, cakePHP Developer, cakePHP Freelancer india, Ecommerce Developer india

Click Here for

Follow me on Facebook

Categories

Get Adobe Flash playerPlugin by wpburn.com wordpress themes