Pivot Tabellen mit PHP
Damit kann man dann bei seinem nächsten Projekt seinen BWL'er beeindrucken.
• Pivot tables in PHP
Bananas Development Blog: share your thoughts
/**
** set the error reporting
** DEBUG has to be false in live enviroment !!
**/
if(DEBUG === true) {
ini_set('error_reporting',8191); // E_ALL & E_STRICT
ini_set('display_errors',true);
}
else {
ini_set('error_reporting',8191); // E_ALL & E_STRICT
ini_set('display_errors',false);
ini_set('log_errors',true);
ini_set('log_errors_max_len',"10M");
ini_set('error_log','path/to/error/error.file');
}
Danke.
Das erspart SEHR viel Ärger !!
Note: Dots and spaces in variable names are converted to underscores. For example <input name="a.b" /> becomes $_REQUEST["a_b"].
We can use mysql_connect and mysql_select_db functions to create our connections. For closing the connections there is mysql_close function. These are basic functions of managing connections in PHP. There are also a lot of classes made by developers for free.
MODx helps you take control of your online content. An Open Source Content Management Framework, it frees you to build sites exactly how you want and make them 100% yours. Zero restrictions and fast to build. Super-simple templates in HTML/CSS/JS (any lib you want). Registered user systems and a killer community. Welcome to web-building nirvana.
Not all CMSes are created equal—though from the list of features, you'd sure think they are. While having a checkbox in every column isn't a true test of the value of a CMS, it can provide a general overview of what can be accomplished in a particular system.
Every developer should know that storing any type of password in plain text is the worst possible decision anyone can make in a secure environment. Between security and confidentiality which one will you choose? Nowadays hacking are perform through social engineering or an inside job, by an employee or trusted person. How exactly confident are you towards securing your stuff and confidentiality of your user? Most of us will know that the Reddit suffer from such problem when all their username and password were compromised as their password wasn’t hashed and stored as plain text. And twitter was attacked through social engineering recently. We won’t want this to happen to us right? Therefore, in this article you will get to know some ways to better hash your password in PHP and some ways to improve your security.
Data security is important and often undervalued by designers, developers, and clients alike. Since PHP 5.2.0, data sanitization and validation has been made significantly easier with the introduction of data filtering. Today, we're going to take a closer look at these filters, how to use them, and build a few custom functions.
I have always felt that it's easy to write code in PHP, and even easier to write bad code in PHP. The proliferation of PHP on the web has really been helped out by its use in popular open-source software packages like WordPress, Drupal, and Magento as well as major web applications like Facebook; with PHP being used in so many varied instances (dynamic websites, in-depth web applications, blogging platforms, content management systems, and e-commerce being only a subset of the many applications of PHP) the opportunities for dirty data and insecure systems are numerous. This tutorial will explain some methods of Getting Clean With PHP: Data Sanitization and Validation by focusing on several different forms of data inputs and how to use PHP filters and custom functions.
Nobody enjoys the process of debugging their code. If you want to build killer web apps though, it’s vital that you understand the process thoroughly.
This article breaks down the fundamentals of debugging in PHP, helps you understand PHP’s error messages and introduces you to some useful tools to help make the process a little less painful.
This channel is basically a helping channel for people with PHP problems, but we (the staff) enjoy to discuss various topics as well. You have to be aware of the fact that there is absolutly no right for help, help is a privilege. To get an answer depends much on the way how you ask your question, so take a minute or two and read the link to the left "How to ask". OP or voice does not compulsorily mean, that this person is good in PHP, and of course flags are not reward for idleing on the channel.
For many beginners, regular expressions seems to be hard to learn and use. In fact, they're far less hard than you may think. Before we dive deep inside regexp with useful and reusable codes, let's quickly see the basics: