Archive

Posts Tagged 'PHP'

Social Network with PHP

6 commenti November 24, 2008 Nicholas 6 comments

Now do not talk about anything else. Social Networks have invaded our lives, whether niche or generalist.

Those of you who have not heard of Facebook? Myspace? Xing?

As an end user this may be satisfactory, but as a programmer might have to build your own social network, be it amateur or a client interested in Web 2.0.

Why do we always reinvent the wheel if there are already two products that are open to our case?

If you want to check it out here they are:

  • Elgg : he won the award for best open source platform for social networking 2008.
    Also you already have a book of Packt Publishing for those who want to explore its
    characteristics. But if you do not mind spending money, you can use the documentation provided on the official website of Elgg.
  • PHPIZABI : software downloaded already some hundreds of thousands of times and used in professional sites. The documentation is complete and helps the developer to move into the components of Phpizabi with relative ease.

Some of you I can say that there are other more powerful, but the ones listed here are free, editable and expandable, since the source code available to anyone.

There remains to try and realize their own potential.


PHP Refactoring - Lez. 3: Methods of a class

2 commenti November 12, 2008 Nicholas 2 comments

As regards the methods of a class, also applies in this case the naming convention outlined above for the properties of the class itself. We repeat them below for convenience:

  • If consists of a single word, all lowercase, for example, currency ();
  • If made ​​of many words the first letter of each, from the second, in uppercase, all lowercase other, for example addElement ();
  • The method name must be self-explanatory.

Continue reading ...

PHP Refactoring - Lez. 2: array property of a class

Today we will discuss the properties consist of a class or property containing an array.

We saw in the previous lesson ( PHP Refactoring - Lez. 1: properties of a class ) how to write simple properties of a class.

With regard to the properties consist of naming conventions, the rules introduced in the previous tutorial, except for methods to access them. Below the standard to follow at the class level.

Continue reading ...