Suchergebnisse für „Perl“

TOP

Using Memcache for session storage

We started using Memcache for a project some time ago and the sessions of our web users had been one of the first functions using it. Here is how to use Memcache to reduce database load and speed up your websites.
Weiterlesen
TOP

The truth about DBD::mysql's bind values

SQL has some drawbacks, the worst one might be the SQL injection chance. There are many ways to avoid them but few of them are really working, one of them is using bind values by replacing all values by ? and passing the real values at execution time.
Weiterlesen
TOP

Using Memcache as database locking helper

Race conditions are nice: Two (or more) tasks are fighting for the same thing at the same time. Row locking on the database may help to avoid such races but only if the database supports them.
Weiterlesen
TOP

Parse both GET and POST data in the same request using CGI::Simple

The Perl CGI module is commonly used, but it's heavy. CGI::Simple is more lightweight but lacks some features. Here is a feature not supported by CGI but by CGI::Simple.
Weiterlesen
TOP

Besucher, Fische und Drogen

Gestern war Vatertag, den Brückentag frei nehmen lohnt sich nicht so ganz, wenn ich eh zu Hause bin. Der Tag selbst war dann eher ruhig, der Abend allerdings weniger.
Weiterlesen
TOP

Happy Birthday myself!

Dieser Artikel ist etwas besonderes. This post is something really special. Er ist nicht besonders lang, interessant oder schön geschrieben, aber trotzdem einmalig. It isn't the longst, most interesting or best written post, but it's very unique. Es ist mein - soweit ich mich erinnern kann - erster zweisprachiger Artikel. This is my first dual-language post, as far as I remember. Aber vor allem ist es mein erster Geburtstagsartikel und dabei habe ich noch gar nichtt Geburtstag. But much more important - this is my first birthday-post -  but it's not my birthday.
Weiterlesen
TOP

Setting up Gearman

I recently announced an article about Gearman, today I'ld like to start with setting up a Gearman dispatcher server.
Weiterlesen
TOP

Web-Multitasking: Whos gonna work for the working man?

Web scripts usually do one thing at a time which is quite good as long as there is not too much to do. But serving thousands of request per minute with thousands of source code lines per request starts getting challenging. Bon Jovi asked for help for web scripts some time ago by writing his song "(Whos gonna) work for the working man". Well, there are little chances that he had something else in mind, but who cares.
Weiterlesen
TOP

Don't use exec and database connections

Typical Perl scripts (and others running as CGI-scripts) run and exit once they're done, but this isn't very efficient with medium or high request counts. Persistent solutions like FCGI and ModPerl avoid the additional interpreter loading and compiling phases, but start being challenging if any source file is changed.
Weiterlesen
TOP

Order your checks

Doing many checks may slow down a program, but sorting the tests may improve your program's speed a lot at a very low cost.
Weiterlesen