News Feed
Jobs Feed
Sections




News Archive
feed this:

Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

PHPMaster.com:
PHP Sessions
November 17, 2011 @ 10:19:08

On PHPMaster.com today there's a new introductory tutorial for those trying to figure out sessions in PHP. Sessions can be one of the most powerful tools at your disposal and handling them correctly can sometimes be a little tricky.

$_SESSION is a special array used to store information across the page requests a user makes during his visit to your website or web application. The most fundamental way to explain what a sessions is like is to imagine the following scenario: You are working with an application. You open it, make some changes, and then you close it. That is a session in it's simplest form.

They start with a basic "how to use them" example of setting a username value to the current session and pulling the value back out. They also show the use of the session_unset and session_destroy methods for ending the session. Some security tips are mentioned too - timeouts, regenerating the session ID, destroying them correctly and using a more permanent storage option (by default, they store on the local disk).

0 comments voice your opinion now!
session tutorial introduction security destroy timeout


PHP F1:
PHP Session Tutorial
July 10, 2007 @ 08:46:57

If you're just getting started with PHP, some things can be a bit confusing. For a lot of developers, sessions seem to hold a bit of mystery and can be difficult to use. To help combat this, PHP F1 has posted this new tutorial to demystify this super-handy PHP functionality.

In this tutorial I will show you how to work with sessions in PHP. You will learn how to transfer information between pages. [...] Using sessions you can transfer data between various pages. If you are using sessions then each of your visitors will got a unique id. This id will identify various visitors and with the help of this id are the user data stored on the server.

They introduce what sessions are (the concept behind them), some of the php.ini settings that can be used to change how they work and code to work with assigning values to a session, checking for values in them and removing/destroying the session and its information.

5 comments voice your opinion now!
session introduction tutorial create destroy assign session introduction tutorial create destroy assign


Christian Stocker's Blog:
"Wordpress hat den Blog-Hosting Markt versaut"
May 09, 2006 @ 06:15:54

There's an interesting new post on Christian Stocker's blog looking at what some consider to be "ruining the blog hosting market" - WordPress (as mentioned by the Swiss Blog Awards Panel).

What I basically wanted to say is, that the installation of Wordpress is sooo easy and there are so many features built in, resp. plugins available, that there are not many incentives to use a dedicated blog host provider and maybe even pay for it. Why should I pay 5 Euro a month to a blog hoster, when I can get for the same price a full hosting, with more disc space, full control over the design, my own domain and certainly more features (I can not only run my blog there, but also other software and get dozens of email addresses).

He argues that since WordPress is such an easy install (and an easy thing to move), but you're also foregoing the benefit of having someone there to help/ask questions. He also notes, though, that a possible 90 percent of the population doesn't want to mess with installing WordPress (good for blog hosters), but of those, most probably wish they could have a more flexible solution (bad for blog hosters).

I don't say, that this counts for everyone, there is certainly a market for bloghosters (be it for free or paid), but Wordpress et al. made that potential market much much smaller. Like eg. Apache made the commercial Webserver market really small :)
0 comments voice your opinion now!
wordpress blog host destroy market easy wordpress blog host destroy market easy



Community Events











Don't see your event here?
Let us know!


install opinion release framework hack component language security package podcast composer hhvm application overview example code symfony2 unittest facebook introduction

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework