Good programming practices

php

AJAX and normal URL in each link

February 6th, 2011

AJAX allows you to change some part of a page without reloading the whole window. But this raises problems of accessibility for search engines and disabled users. However it is easy to combine both of these methods, offering an AJAX version only there, where it is possible. There is no need for the large changes in the code.

Application

In a simple web pages it changes only the main content, thus, there is no need to reload the entire page. It can be easly changed – whenever you click on the link, AJAX is called, and if JavaScript is not supported, there will be a normal page reloading. More…

Thot 1.0

January 16th, 2011

Thot is a software written in PHP 5 to optimize the meta description of web pages for search engines. Supports the Polish language, but you can customize it to handle other languages, by filling the database by relevant dictionaries. This project contains plugin for instant integration with WordPress 2.9.2 (not tested with other versions). It has a very simple API, which can be easily integrated with other CMS systems. More…

Hybrid class with JavaScript and PHP

January 9th, 2011

JavaScript and PHP are very often used together in one project. In order to facilitate programming with these two languages I created a library that allows you to implement part of the class in JavaScript, and the rest in PHP. In this way, you can call a JavaScript method written in PHP. The developer can focus on creating code, and synchronization is done by the library.

Applications

Objects in JavaScript are client-side, allowing you to interact with the user. Logical layer remains on the server side.

  • Create and modify objects in the GUI, which are next written in PHP, for example in a database.
  • Validation of data entered by the user.
  • Hiding parts of the implementation from the user.
  • Use features not available in JavaScript. More…