[PHP] Re: array block

2004-01-30 Thread John Schulz
Brian V Bonini wrote: I'm having array block, trying to format the data in a two dimensional associative array. foreach($menu as $k => $v) { etc.. need to end up with link(x) Since it's two-dimensional, the $v you're getting is actually an array. So you'll have to iterate through the outer arra

Re: [PHP] diff between script_filename, path_translated

2004-01-30 Thread John Schulz
John W. Holmes wrote: Not sure what to say on this one other than, yeah, they're the same. :) Ah, spiffy. ;) Not sure if this will help either, but this is what I use to determine "where I'm at" in scripts I write. Very helpful, thank you! :) I realized after sending that I should probably kee

[PHP] diff between script_filename, path_translated

2004-01-30 Thread John Schulz
After reading the manual entry on $_SERVER predefined variables, I'm unclear on the difference between 'SCRIPT_FILENAME' and 'PATH_TRANSLATED'. Results from a test script, run from a few different locations on my webserver, were always the same for these two variables. I'm especially confused b

[PHP] Performance of multidimensional arrays vs many variables

2004-01-28 Thread John Schulz
I'm planning to use a very large multidimensional array to store data for grouping quantities of Products. This information needs to be carried from page to page in a session. Here's a part of the array's hierarchy for an example: grouping (array) - owner => 'name' - message => 'text' - packa