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() [...]

SEO links in Smarty

Written on March 31, 2010 – 11:44 am | by Stan Kuhn |

There is no need for discussion why links on a website should be optimized for search engines. There are certainly automated ways how you can build SEO links. If this process is automated you loose some flexibility you used to have to “just” write the link in <a> tag. This is how you can do [...]

Tags: , ,

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 [...]