Archive for February, 2008

PHP Video Tutorials for iPods

Wednesday, February 20th, 2008

ipod-php-video-icon

Because of recent demand, I decided to release my PHP video tutorials in iPod format – that means they play on your iPod.

:)

… OK, you guys guessed that one.

These video were originally intended for viewing on a computer monitor, so some of the code examples will be harder to read since iPod screens are smaller.

Nonetheless, the discussions may be useful to watch on your iPod as you’re … say, on your way to work or school.

A small note: I’ve added some brief comments (in text) about each video, to give you a better idea of what you will find in the video before downloading it.

You can find the videos on the new iPod video page.

Thanks,

Stefan Mischook

PHP Sessions Video Tutorials – Part 3

Sunday, February 17th, 2008

This is part 3 (of 3) of my video tutorials that introduces PHP sessions to beginners.

php sessions video tutorial

The video:

PHP session video tutorial – part 3

Notes from the videos:

Session ID:

PHP sessions create a unique id that is passed on to the user by either a cookie or in the URL string. To be clear, the actual information tracked about the user is stored on the server, the cookie or URL string only contains the unique id that is automatically generated by the PHP session object.


How long do sessions last?

By default, sessions are set to last 24 minutes – although your hosting company could set this to any length of time they want. Once a session expires, the server deletes all information associated with that session. Sessions are kept active by the user hitting pages that have session enabled.

Remember that sessions are not meant as a long term storage solution, that is what databases are for.


Sessions are arrays:

Sessions are auto global associative arrays (on steroids) that can be accessed on any session enabled page. This is yet another example of why knowing arrays is so important in PHP … and in programming in general.

Sessions have to be declared at the very top of the PHP page!

To use session in a PHP page, it needs to be declared at the very top of the page, before anything else, otherwise you will get an error.

-

If any of the above points confuse you, all you need to do is watch the videos and it will all magically become clear.

:)

The video:

PHP session video tutorial – part 3

Thanks,

Stefan Mischook

www.killerphp.com

PHP Sessions Video Tutorials – Part 2

Friday, February 15th, 2008

This is the part 2 of 3 of my videos that introduces the beginner to PHP sessions.

php sessions video tutorial

In this video, I get into practical examples where we see basic PHP sessions in action.

PHP session video tutorial – part 2

Thanks,

Stefan Mischook

www.killerphp.com

PHP Sessions Video Tutorials – Part 1

Wednesday, February 13th, 2008

Hi,

I’ve just released a new beginners video tutorial that introduces people to PHP sessions:


PHP Sessions Video Tutorial

PHP sessions are one of the most important mechanisms in PHP because they solve a fundamental issue in web application development: keeping state on a user.

php sessions video tutorial

If what I just says confuses you, no worries, it’s explained in the video.

This is video 1 of 3 on sessions.

Thanks,

Stefan Mischook

www.killerphp.com

Top of page  go to top of page