want to join us? register, it's easy | help

browse by tag: programming

sort by

newest, oldest, most popular


category icon

Securing your MySQL queries with sprintf

in PHP added by Wildhoney, on 13/9/2007 programming security sessions

Sprintf in itself will not secure a MySQL query from head to toe. That should be made clear from the word go. There are many more techniques that go into ensuring a MySQL statement is safe to execute on the MySQL server. Sprintf will, however, take a lot of the sting out of any malice.

Not only will your new found knowledge help you when it comes to security, but sprintf and its twin brother with a slight genetic mismatch, printf, are on hand to make your PHP code look a lot more programmer-friendly.

comment save report
category icon

Download files with cURL

in PHP added by Nikolas, on 11/7/2007 curl download files http networking programming

A snippet that helps you download files from the web, with the use of the well known cURL library for php.

comment save report
category icon

Top 21 PHP Programming Mistakes - Part 3: Seven Deadly Mistakes

in PHP added by goodphptutorials, on 19/12/2005 beginner tutorials error error handling mistakes programming

In this three part article series, a list of 21 PHP programming mistakes are presented, ranging in severity from non-critical down to those that can break the farm. Solutions, suggestions and/or comments on how to solve and prevent these errors are then offered.

comment save report
category icon

Top 21 PHP Programming Mistakes - Part 2: Seven Serious Mistakes

in PHP added by goodphptutorials, on 19/12/2005 beginner tutorials error error handling mistakes programming

In this three part article series, a list of 21 PHP programming mistakes are presented, ranging in severity from non-critical down to those that can break the farm. Solutions, suggestions and/or comments on how to solve and prevent these errors are then offered.

comment save report
category icon

Top 21 PHP progamming mistakes - Part I: Seven Textbook Mistakes

in PHP added by goodphptutorials, on 19/12/2005 beginner tutorials error error handling mistakes practise programming

In this three part article series, a list of 21 PHP programming mistakes are presented, ranging in severity from non-critical down to those that can break the farm. Solutions, suggestions and/or comments on how to solve and prevent these errors are then offered.

comment save report