File Handling in PHP
Let's begin with the basic file-accessing functions. Originally, those functions only worked on normal files, so their names begin with "f," but PHP extends this to almost everythi
Read tutorialTHE TUTORIAL LIBRARY
Let's begin with the basic file-accessing functions. Originally, those functions only worked on normal files, so their names begin with "f," but PHP extends this to almost everythi
Read tutorialThe first line is the XML declaration; it specifies the XML version and the XML file encoding. Notice that the line starts with
Read tutorialBLOB stands for Binary Large OBject and refers to binary data, such as JPEG images stored in the database.
Read tutorialThis article contains some information about the strengths and weaknesses of MySQL.
Read tutorialA PHP session allows an application to store information for the current "session," which can be defined as one user being logged in to your application. A session is identified by
Read tutorialOne simple way to maintain data between the different pages in a web application is with cookies. Cookies are sent by PHP through the web server with the setcookie() function and a
Read tutorialThe Crypt_HMAC class implements the algorithm as described in RFC 2104 and can be installed with pear install crypt_hmac.
Read tutorialIf you need to prevent bad guys from tampering with variables passed in the URL (such as for a redirect as shown previously, or for links that pass special parameters to the linked
Read tutorialOne essential technique to protect your web site from users is input validation, which is an impressive term that doesn't mean much at all. The term simply means that you need to c
Read tutorialSQL Injection is a method in which an attacker inserts malicious code into queries that run on your database.
Read tutorialWhen writing object-oriented code, it is often customary to put each class in its own source file. The advantage of this is that it's much easier to find where a class is placed, a
Read tutorialUnlike most other data types, printing the object's id will usually not be interesting to you. Also, objects often refer to data that should have print semantics—for example, it
Read tutorialOne example today. A better developer tomorrow.