Wednesday, July 18, 2012

Installing PEAR:SOAP

The Installation of PEAR:SOAP does not require any additional extensions, as the library will make use of the overload extension if it is loaded. The latest version of PEAR::SOAP at the time of this writing was 0.7. The dependencies for this release are listed below:

pcre - PHP Extension: This extension should be compiled in automatically in your PHP libraries/binary. If that is not the case, you need to enable it by passing --enable-pcre (note that this is standard) to configure.

HTTP_Request- PEAR Package: Should be installed by default. If it�s not, install it manually by downloading it from pear.php.net, and copying the files to your PEAR base directory, or use the pear program: pear install HTTP_Request.

Mail_Mime- PEAR Package: Install manually or with pear: pear install Mail_Mime.
Net_Dime- PEAR Package: Install manually, or with pear: pear install Net_Dime.
Net_Url- PEAR Package: Should be installed by default. If not, install manually, or with pear: pear install Net_Url.

When you�ve made sure you�ve got all the above packages installed, it�s safe to install PEAR::SOAP. As with the other PEAR packages, this can either be done manually by downloading from http://pear.php.net/soap, or by using the pear script:

root@localhost:~# pear install soap

It should be said that there have been some problems with the dependency-check in the pear script, and that�s not uncommon that the above command fails with a dependency error, although all required packages actually are installed. If that happens, just install the package manually instead, and try to keep in mind that we�re dealing with bleeding-edge, experimental software here. Note that pear will be standard in PHP 4.3, and all these issues should be taken care of by that time.

Tuesday, July 17, 2012

PHP

Get More Customers

Get More Shoppers, Get More Sales!!!

With no day-to-day current of shoppers you cannot have reliable everyday revenue.
It's not possible to get revenue if no one comes to your web-site. You have to have visitors to see your web-site, every day, 24 hours!
We help more than 30,000 clients get more customers online.
You will get more sales by receiving thousands of real interested visitors to see your website.
More Customers...

Increase search engine rankings

Increase your web-site search engine rank

Be presented on search engines is one of the most important strategy to increase web-site traffic and expose your content or service to people that might be interested in what you are offering.
All big search engines utilize an algorithm to calculate your website ranks.
They know the number of websites are linking to your web-site; more referrers and hits higher rank for your web site.
Get Better Rank...

Promote to over 10 million customers

Advertise to over 10 million users around the world.

We advertise your company in global network of affiliate webpages, each with own narrow points of interests.
Our company gives you innovative promotion methods that helps you succeed on the Internet.
We will give you real and visible results and take your website to the next level.
Advertise to Millions customers Now...


v Interfaces.
Gives the ability for a class to fulfill more than one is-a relationships. A class can inherit only from one class, but may implement as many interfaces as it wants:

interface Display
{
function display();
}
class Circle implements Display
{
function display()
{
print "Displaying circle\n";
}
}

v Instanceof  operator.
Language-level support for is-a relationship checking. The PHP 4 is_a() function is now deprecated:

If ($obj instanceof Circle)
 {
print '$obj is a Circle';
}

v Final methods.
The final keyword allows you to mark methods so that an inheriting class cannot overload them:

class MyClass
{
final function getBaseClassName()
 {
return __CLASS__;
}
}

v Final classes.
After declaring a class as final , it cannot be inherited. The following example would error out.

final class FinalClass
{

}
class BogusClass extends FinalClass
{

}

v Explicit object cloning.
To clone an object, you must use the clone keyword. You may declare a __clone() method, which will be called during the clone process (after the properties have been copied from the original object):
New Object-Oriented Features:

The new OO features are too numerous to give a detailed description in this section. Chapter 3, “PHP 5 OO Language,” details each feature.

The following list provides the main new features:

v  Public / private / protected access modifiers for methods and properties.

Allows the use of common OO access modifiers to control access to methods and properties:
class MyClass
{
private $id = 18;
public function getId()
{
return $this->id;
}
}

v  Unified constructor name __construct(). Instead of the constructor being the name of the class, it is now declared as __construct() , which makes it easier to shift classes inside class hierarchies:
class MyClass
{
function __construct()
{
print "Inside constructor";
}
}

v  Object destructor support by defining a __destructor() method. Allows defining a destructor function that runs when an object is destroyed:
class MyClass
 {
function __destruct()
{
print ”Destroying object”;
}
}