This time, I’m going to dig into individual functions and explain them a little. In particular, I’m going to go in depth on the ob_start () function, which is the basis of many output control functions.
This time, we’ll be looking at the various functions relating to output control (the ob_* functions). First, let’s look at the common use case. First, by far the most common use is probably to work against the messages ‘Warning: session_start (): Cannot start session when headers already sent in’ and ‘Warning: Cannot modify header information […]
Last time, we looked at implementation of cookies. This time, I’ll write about implementing sessions. As I wrote in my 7 th article, ‘Cookies and sessions, part 1 ’, sessions have various implementations such that just calling them sessions broadly is confusing, so for this text, ‘session’ will refer to the use of session functions […]
Last time, we mostly looked at the difference between cookies and sessions (relating to PHP-provided sessions.This time, let’s go a bit heavy on the code, and learn about things to watch out for during implementation.
This time, I’d like to talk a bit about cookies and sessions, two functions that look quite similar at a glance. First, let’s go over the basics on HTTP communication. HTTP’s most simple form is HTTP/0.9, so let’s start there. To break it down to its basics: A simple request is made A simple response […]
Previously, we learned about the hash itself, the first step in preserving and comparing passwords. This time, we use that knowledge to learn about how passwords should be saved.
In this column, let’s learn about hash functions as a prelude to learning about ways to save and compare passwords. First, I’ll discuss hashing.
PHP comes with math functions.Of these functions, several don’t seem to be used much outside of specific jobs.
In my last column, I said that depending on the circumstances, it is possible that an error may be produced when calculating a total, for example in an accounting system. Let’s explore such a situation in more detail.