PHP – Delete files by pattern

Martin Zeller php 1 Comment

If you want to delete files by pattern (e.g. “*.txt”) in a directory, you can do this with the php function glob! With this method you can also delete all files of a directory – with pattern *.*

Client localisation with zend framework

Martin Zeller php Leave a Comment

If you want to find out the language or country of the clients browser, do it this way: But be aware! This way you only get the localisation of the clients browser. And this is configurable by the user. The code above will give you output like this: or There are many methods you can use with zend localisation: Example …