Why you should not use @ sign in PHP

Written on October 22, 2010 – 8:05 am | by Stan Kuhn |

For those who don’t know @ is error control operator. Taken from PHP documentation “When prepended to an expression in PHP, any error messages that might be generated by that expression will be ignored”. In other words error message won’t be printed out. There are some situations when  @ sign might be helpful e.g. include() [...]

Learning LAMP web developement – 6. PHP project organization, framework, libraries and third party code

Written on June 14, 2010 – 3:52 pm | by Stan Kuhn |

Source code re-usability is one of the most important things if you plan to keep developing applications for longer. All Internet applications have set of functionalities that are common. These are for example, User management, permissions management, CMS functionality, forums, categories, menus, profiles etc. Therefore you don’t have to write a lot of code from [...]

SEO links in Apache

Written on April 12, 2010 – 5:54 am | by Stan Kuhn |

Nice search engine optimized links may look something like this http://www.mydomain.com/products/home-garden/Patio-Glass-Coffee-Table.html To create e.g. online shop with such formatted  real pages would be crazy. Althoug it would be possibly doable to autogenerate cache pages as real files, this is not how these links are being done. To create dynamic pages with such structure you use [...]

PHP Static variables – Object factory

Written on February 24, 2010 – 7:34 pm | by Stan Kuhn |

On large busy projects where server resources do matter it is good idea to reuse object which is used several times during script execution in different scopes. There are more options. One is to use global keyword on top of each function where object is needed but you must make always sure object really exist [...]

Learning LAMP web developement – 3. Object oriented programming

Written on February 22, 2010 – 5:09 pm | by Stan Kuhn |

If we look to the history of scripting preprocessors such as PHP used to develop Internet applications we can see that from very beginning they were plain procedural languages. Over the time object oriented functionality was introduced and nowadays the object oriented support is pretty good. So what makes it interesting? Why the object programming [...]