[PHP] unset key/element in array

2002-06-14 Thread Aljosa Mohorovic
i need to remove elements in array which are empty. this code works but is it ok to do it like this? code: if(in_array(, $people)) unset($people[array_search(, $people)]) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] output control functions

2002-06-21 Thread Aljosa Mohorovic
is there some kind of problem with output buffering in php 4.2.1. i use ob_start() ob_end_clean(), ob_get_contents() to capture output. everything worked before and i don't know what could be the problem. my upgrade was focused on xml/xslt stuff. any solution/similar problem?

[PHP] session expires on server side

2002-04-27 Thread Aljosa Mohorovic
session cookie exists on client side and it is set to last 5 days. the problem is that after some time session data expires. cookie on client side exists ($PHPSESSID), but session data on server side does not exists. i think that the answer is something like: ini_set(session.cache_expire, 7200);

[PHP] client side cache

2003-06-23 Thread aljosa mohorovic
i have problems with client side cache, how can i disable it? i use this, but it still caches pages. header(Expires: Mon, 26 Jul 1997 05:00:00 GMT); header(Cache-Control: no-store, no-cache, must-revalidate); header(Cache-Control: post-check=0, pre-check=0, false); header(Pragma: no-cache);