Programming Category

Fixing ‘cannot modify header information’

In: Programming

A common problem found by starting PHP programmers is the warning: Warning: Cannot modify header information – headers already sent by (output started at index.php:1) in index.php on line 3 Before understanding this problem, you have to know how pages are transmitted using the HTTP-protocol.  Any page or image you receive looks like this: HTTP/1.x [...]

Don’t get GET and POST confused

In: Programming

A very long time ago, the idea of the internet was providing static information. For a long time already, this isn’t true anymore. User-generated and dynamic content are common nowadays and web developers are still trying to keep their applications up-to-date with the latest developments. However, they are becoming lazy and are getting confused. They [...]

PHP: mysql_fetch_what?

In: Programming

MySQL is a powerful database engine, especially in combination with PHP. But how do you retrieve information from a dabatase? In this post I’ll try to explain the difference between mysql_fetch_array, _assoc, _field, _length, _object and _row.

PHP Sessions: How they do work

In: Programming

One of the (pure PHP) ways PHP offers for saving user data across several pages are Sessions. They come in different flavours: at first, there’s the one that makes your URL ugly, but makes them usable for all users. Secondly you can use cookies. That’s much nicer, but doesn’t work for all browsers. Surf2me.nl uses [...]

About this site

This website is the personal weblog of Ralph Broenink. He studies Computer Science at the University of Twente and is lead software engineer at Antagonist webhosting. Furthermore, he was member of the board of study association Inter-Actief. More information about him can be found at the 'About me'-page.


Archives