Thursday, December 24, 2009

PHP Tutorial- Advanced Class Concepts

This chapter will be focusing on some advanced class concepts, which will empower the reader to use classes in a better way and to create dynamic web pages.


Constructor


In PHP 5 developers can declare constructor methods for classes. In this, those classes which have a constructor method call this method for each newly created object. So, it is suitable for any initialization that the object may need before it is used. In this the parent constructors are not called implicitly if the child class defines a constructor.









Example

<?php

class ParentClass {


function __construct() {


print "In ParentClass constructorn";


}


}


class ChildClass extends ParentClass {


function __construct() {


parent::__construct();


print "In ChildClass constructorn";


}


}


$obj = new ParentClass();


$obj = new ChildClass();


?>

 

 


Destructors


The destructor concept is introduced in PHP 5. This destructor concept is similar to other object oriented languages. In this the destructor will be called as soon as all references to a particular object have been removed or when the object has been explicitly destroyed.









Example

<?php


class MyClass {


function __construct() {


print "In constructorn";


$this->name = "MyClass";


}


function __destruct() {


print "Destroying " . $this->name . "n";


}


}


$obj = new MyClass();


?>

 

Patterns


Patterns are ways to describe best practices and good designs. The patterns show a flexible solution to common programming problems.


Factory Pattern


In the factory pattern the objects are instantiated at runtime. It is called a factory pattern since it is responsible for manufacturing an object. A parameterized factory receives the name of the class to instantiate as argument.







Example

<?php


class Welcome


{


// The parameterized factory method


public static function factory($type)


{


if (include_once 'Drivers/' . $type . '.php') {


$classname = 'Driver_' . $type;


return new $classname;


} else {


throw new Exception ('Driver not found');


}


}


}


?>

Thursday, December 17, 2009

Buddy Spy - Yahoo! Messenger Invisible Detection

Image

Check Any Of your friend's yahoo status if he or she is online or offline

Friends its one of my favorite software that I luv to use ,You must download If you are using yahoo messenger or ID 100% working Enjoy







Buddy Spy is the premier program for Yahoo! Messenger status checking. With Buddy Spy you can now bypass Yahoo! Messenger's Invisible Settings with ease. With its quick and intuitive interface Buddy Spy offers you the ability to see if your friend is truly online or if they are invisible. Not only does Buddy Spy offer you online checking, but it will also tell you whether your friend is in a Chat Room or even if their Web Cam is online!



  


Download from Rapidshare (size: 6.50 MB, Language: English)

See pasword 2.05





















Download from Rapidshare (size: 443 KB, language: English)

Kill Yahoo! Messenger Ads

Image

DOWNLOAD THIS FILE AND YOU WILL BE SAYING
Wow, where does those ads gone? take a look:






Download from Rapidshare (size: 13.83 MB, language: English)

Yahoo Auto Reply

Image


Yahoo Autoreply is a useful tool which enables users to set up auto response messages when they are away from their computers.

When active, would detect incoming messages and would reply with the Autoresponse message set by the user.



 


 


Download from Rapidshare (size: 471 KB, language: English)

oRipa Yahoo Webcam Recorder 1.2.3

Image


oRipa Yahoo Webcam Recorder is a handy utility that will record Yahoo webcam video and audio of chat partner to your PC hard disk so you can replay it in future.

Just press the record button as the Yahoo webcam is connected, and the video streams are saved as media files in your preset folder. You can play the recorded videos back at any media player and at any time you like!



 


 


Here are some key features of "oRipa Yahoo Webcam Recorder":

· Work with Yahoo Messenger 6.0 and the above versions.
· Real time record Yahoo webcam with optional sound recording (e.g. audio from microphone)---You can record any webcam streams (e.g. the fun movies broakcasted in webcam by your chat partner as well as the video conversations, etc.)
· Real time compress your recorded videos (DivX compatible) during recording --- use this function to get a smaller file size of your output videos so there is no need to worry your hard disk space is not enough for your video files when you record for a long time!
· Save recorded videos into AVI format files---you can use any player (e.g. Real, Windows Media Player, etc.) you have to play the recorded video.

· You can minimize or hide the Yahoo Messenger window while recording.---That means You can browse other web pages and no need to let your Yahoo webcam window always on the front web page.

· Easy to use!---You just start/stop recording with a click from the icon menu. No need to know about the recording knowledge.

· Other cool features you would prefer: adjustable FPS and frame size (for you to adjust your output video quality) and user defined save-to directory.



 


 


Download from Rapidshare (size: 13.83 MB, language: English)


Download from Megaupload (size: 13.83 MB, language: English)

Anonymus Emailer cum email bomber

Image



 


 


Anonymous Mailer is an anonymous Email sending software, by which a user can send Emails directly from computer, no matter whether the From email id exists or not.
Just type 'From' address with a name as you wish and send to any other email address.

Of course you can also write an invalid email address as from address, but it is recommended that you use your existing email address in the From field in order to get the reply of the mails. .

No need to reveal your original email address to anyone.

Send emails from any@any.com or any other adress !

if you wants to send 1000 emails then continue to start ( don't stop ) for mail bomber



 


 


Download from Rapidshare (size: 13.83 MB, language: English)


Download from Megaupload (size: 13.83 MB, language: English)