arrays;session variable; empty variable

From: Date: Fri, 31 Jan 2003 16:24:40 +0000
Subject: arrays;session variable; empty variable
Groups: php.general 
Request: Send a blank email to php-general+get-134097@lists.php.net to get a copy of this message
Hi, I have spend several hours on the following issue, and I can't figure out what I am doing wrong. Consider the next function: function CreateFileForRealPlayer () { global $playlist; $filename = $playlist[0]['url']; header("Content-Type: audio/x-pn-realaudio;"); echo ($filename); } This is a simplified version of the actual function: here, the function should get a url from a session variable ($playlist), and create a Real file on-the-fly that references to this file. The function works in Netscape (both cookies enabled and disabled), and in IE with cookies disabled, but not in IE when cookies are enabled. For some reason, in that configuration the value assigned to $filename is an empty string when it is echoed. However, it DOES have the proper value after the line $filename = $playlist[0]['url']; I am certain there is nothing wrong with the session variable itself (as said, it works in the configurations I mention above; it's the value of $filename that behaves strangely in IE. Any ideas? I am using php 4.0.4pl1 on HP-UX, IE 6.0, Win XP client side. TIA André Rosendaal

« previous php.general (#134097) next »