Forum Moderators: coopster
then ive logout.php file having this code:
<?php
session_start();
$_SESSION = array();
if (isset($_COOKIE[session_name()])) {
setcookie(session_name(), '', time()-42000, '/');
}
session_destroy();
?>
and when I click on the "logout" link I get this error so why?
Warning: Session object destruction failed in C:\Documents and Settings\Administrator\My Documents\php\Budget\bu\logout.php on line 16
thanks in advance
I actually installed this 2 weeks ago and I used these 2 tutorials
Installing a new web server: Apache2, PHP5, MySQL4 and PHPmyAdmin [webmasterworld.com]
Installing PHP5 Under Windows XP and Apache [webmasterworld.com]
My personla preference was the second one, but that's just me. In your case it will be a bit different, since you just need to upgrade php. I would literally remove all core php files (find out where it is stored) and then search your disk for any stray php.ini files since that will screw everything up.
I actually followed the first tutorial above and it didn't work, so I had to remove/undo the php install. Then I followed the second tutorial and it was flawless.
<aside>no offense henry0 ;)
Installing PHP on Windows IIS [php.net]
or the general section on windows installation
PHP Installation on Windows systems [php.net]