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

Resolving conflicts in Subversion (SVN)

Written on July 6, 2010 – 7:09 pm | by Stan Kuhn |

As I have seen many people not being able to sort out conflict state of their local copy of the project I decided to write a little about it. First of all why do these conflicts happen. Subversion unlike for example SourceSafe from Microsoft by default does not require locking of files in repository when [...]

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

AOL email parsing error

Written on April 4, 2010 – 11:42 am | by Gaspo |

AOL (America OnLine)  is an American global Internet services and media company. They also provide email services for milions of users including part (220k) of users registered on our website. We received several bug reports about problems with emails we send to users. They were complaining they dont get all information needed in their emails, [...]

Tags: , ,

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