Monday, November 26, 2007

New Class --- AES Cipher

This class is a pure PHP implementation of the AES algorithm. It can encrypt and decrypt data using the AES Rijndael algorithm with key lengths of 128, 192, 256.

Wednesday, November 21, 2007

LAMP is better...

All of those are open source resource. Security of Linux is very more than windows. Apache is a better server that IIS both in functionality and security. Mysql is world most popular open source database. Php is more faster that asp or any other scripting language.

PHP Designer 2007

PHP Designer is powerfull php editor. And, its freeware! It can use for novice and professional alike. Designed to help accelerating and enhance the process of edit, debug, analyze and publish PHP scripts all wrapped into a sophisticated streamlined interface. Time saving features that helps you boost your productivity so you can get more done, like accessing as you type functions, variables, tags and properties. The Intelligent Code Highlighter, that automatic switches between code highlighters dependant on your position in the document.

Below, some feature of PHP Designer (copy from their web):


  • All-in-one editor to edit, debug, analyze and publish PHP scripts

  • Numerous of enhancements for developer deployment and productivity

  • Syntax highlighting and support for PHP, HTML, XML, CSS, JavaScript, Java, Perl, JavaScript, VB, C#, Java & SQL

  • Automatic indentation and insertion of brackets

  • Automatic code completion while typing

  • Great performance in speed and size

  • Sophisticated streamlined and intuitive interface

  • User-friendly development environment that is comfortable both for beginners and experienced programmers

  • Tabbed multi-document interface

  • Fully customizable

  • Integration with the PHP manual available from php.net with quick keyword search

  • Localhost preview

  • Simple external browser integration with Internet Explorer, Netscape, Firefox and Opera Todo Manager

  • Project Manager

  • FTP

  • Code Libraries

  • Class Browser

  • Templates

  • Snippet Support
You can Download it here...

http://www.mpsoftware.dk/downloads.php

Tuesday, November 20, 2007

Tree view with page loading using AJAX

This package can be used to generate and update an hierarchical tree of elements from MySQL database content.

A HTML page with some Javascript performs an AJAX request to obtain the list of elements of the tree from a MySQL database query.

The tree of elements is returned to the browser in JSON format.

For further reference..

http://www.phpclasses.org/browse/package/4242.html&upsid=265356699725

OOPs Possible in PHP

Now, in the computer programming world, object-oriented programming (OOP) has rapidly taken hold as the programming methodology of choice for the enterprise. The basic concept is encapsulation - the grouping of data and code elements that shar common traits inside a container known as class.


A class contains the definition of data elements (or properties) and functions (or methods) that share some commont trait and can be encapsulated in a single structure. A class is declared using the class structure:



  • // class keyword is followed by name of class: vehicle
  • class vehicle
  • {
  • // Data property
  • var $type;

  • // a method, if same name as the class, it as the class constructor. Automatically called whenever class is instantiated
  • // have paramater $type
  • function vehicle( $type )
  • {
  • $this->type = $type;
  • }

  • }

  • ?>
  • PHP History

    PHP was conceived sometime in the fall of 1994 by Rasmus Lerdorf. Early non-released versions were used on his home page to keep track of who was looking at his online resume. The first version used by others was available sometime in early 1995 and was known as the Personal Home Page Tools.

    It consisted of a very simplistic parser engine that only understood a few special macros and a number of utilities that were in common use on home pages back then. A guestbook, a counter and some other stuff. The parser was rewritten in mid-1995 and named PHP/FI Version 2. The FI came from another package Rasmus had written which interpreted html form data. He combined the Personal Home Page tools scripts with the Form Interpreter and added mSQL support and PHP/FI was born. PHP/FI grew at an amazing pace and people started contributing code to it.