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 200 OK
Date: Thu, [...]

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 are [...]

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

The best way for saving user data using PHP 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 the latter.
Sessions
But what are sessions? It’s [...]

About this site

This website is the personal weblog of Ralph Broenink. He studies Computer Science at the University of Twente and works for the support department at Antagonist webhosting. Furthermore, he's member of the 31st board of study association Inter-Actief. More information about him can be found at the 'About me'-page.


Photos

Uitzicht vanaf Gloriette (Schönbrunn)
IJsbeer (Tiergarten Schönbrunn)
Obelisk (Schönbrunn)
Capibara (Tiergarten Schönbrunn)
Uitzicht over stad vanaf pad naar slot
Romeinse ruïne (Schönbrunn)
Luipaard (Tiergarten Schönbrunn)
Gebouwen
Gloriette (Schönbrunn)

Archives