From C++ to PHP
February 14, 2009 Category: Client Programming, Web Databases, Web Programming
article on some of the key differences and similarities from C++ to PHP.
Bespoke PHP SEO Code
February 1, 2009 Category: Web Databases, Web Programming
If you want to achieve SEF (search engine friendly) URLs bespoke in PHP Code, then this is the article for you.
Essentially what you aim to do is write a .httaccess file that redirects parameters/arguments to functions/pages named differently to what the browser sees.
ncoded.com/about whereas in reality you go to ncoded.com/index.php?page=about
To be honest just having 1 parameter is fairly easy, where it needs a redesign slightly, including thinking about if you treat ncoded.com/ differently to ncoded.com/index.php (etc), is when you have multiple parameters or folders.
ncoded.com/internet/ide/dreamweaver/cs3
which equates to:
ncoded.com/index.xyz?a=internet;b=ide;c=dreamweaver;d=cs3
You can see some early code at this beta test site: www.idmag.biz
We intend to expand this article out with full design (UML etc) and code (PHP5), perhaps we will even wrap it up in classes (eg an Engine).
PHP5 MVC
January 25, 2009 Category: Web Databases, Web Programming
Model-view-controller (MVC) is an architectural pattern used in software engineering. Successful use of the pattern isolates business logic from user interface considerations, resulting in an application where it is easier to modify either the visual appearance of the application or the underlying business rules without affecting the other. In MVC, the model represents the information (the data) of the application; the viewcorresponds to elements of the user interface such as text, check-box items, and so forth; and the controller manages the communication of data and the business rules used to manipulate the data to and from the model.
The PHP5 Object Model
January 25, 2009 Category: Web Databases, Web Programming
Object handling was completely rewritten for PHP 5, expanding the feature set and enhancing performance. In previous versions of PHP, objects were handled like primitive types. The drawback of this method was that the whole object was copied when a variable was assigned or passed as a parameter to a method. In the new approach, objects are referenced by handle, and not by value.
PHP 5 introduced private and protected member variables and methods, along with abstract classes and final classes as well as abstract methods and final methods. It also introduced a standard way of declaring constructors and destructors, similar to that of other object-oriented languages such as C++, and a standard exception handling model.
Furthermore, PHP 5 added interfaces and allowed for multiple interfaces to be implemented. There are special interfaces that allow objects to interact with the runtime system. Objects implementing ArrayAccess can be used with array syntax and objects implementing Iterator or IteratorAggregate can be used with the foreach language construct. There is no virtual table feature in the engine, so static variables are bound with a name instead of a reference at compile time.
The Eclipse I.D.E
January 25, 2009 Category: IDE Editors
Eclipse is a multi-language software development platform comprising an IDE and a plug-in system to extend it. It is written primarily in Java and is used to develop applications in this language and, by means of the various plug-ins, in other languages as well — C/C++, Cobol, Python, Perl, PHP and more.
The initial codebase originated from VisualAge. In its default form it is meant for Java developers, consisting of the Java Development Tools (JDT). Users can extend its capabilities by installing plug-ins written for the Eclipse software framework, such as development toolkits for other programming languages, and can write and contribute their own plug-in modules. Language packs provide translations into over a dozen natural languages.