[PHP] Re: pathinfo function

2011-07-26 Thread Shawn McKenzie
On 07/26/2011 05:47 PM, Tim Streater wrote: > Is it to be expected that, if a file has no extension, and I do this: > >$info = pathinfo ($myfile); > > that I will get an error if I try to reference $info["extension"] ?? > > -- > Cheers -- Tim Just like any other array you'll get a notice:

Re: [PHP] pathinfo function

2011-07-26 Thread Micky Hulse
On Tue, Jul 26, 2011 at 3:47 PM, Tim Streater wrote: > that I will get an error if I try to reference $info["extension"] ?? >From what I can tell via reading the docs: "The following associative array elements are returned: dirname, basename, extension (if any), and filename."

[PHP] pathinfo function

2011-07-26 Thread Tim Streater
Is it to be expected that, if a file has no extension, and I do this: $info = pathinfo ($myfile); that I will get an error if I try to reference $info["extension"] ?? -- Cheers -- Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Tree menu list in php

2011-07-26 Thread Bálint Horváth
Hi, I'd like to write my opinion quickly.. My way both usable with and without JS... In my structures there is an array of the menu elements similar to: $menu[gravity][name] = link; - filled from database, easy to handle to more prof., more params use three-dimensional array... In the url u can

Re: [PHP] Tree menu list in php

2011-07-26 Thread Stuart Dallas
On 26 Jul 2011, at 19:01, Jasper Mulder wrote: > >> From: alekto.antarct...@gmail.com >> Date: Tue, 26 Jul 2011 19:20:58 +0200 >> To: php-general@lists.php.net >> Subject: [PHP] Tree menu list in php >> >> Hi, >> is there a way to create a tree menu list only by using php/html/css? >> I found so

Re: [PHP] Tree menu list in php

2011-07-26 Thread alekto
Thank you all for good answers and explanations, think I will give JavaScript a try! Den 26. juli 2011 kl. 20.37 skrev Bojan Tesanovic: > Look at it this way, PHP is just another scripting language, it processes > data. > That said PHP is not responsible for user interface , it just prints o

Re: [PHP] Tree menu list in php

2011-07-26 Thread Bojan Tesanovic
Look at it this way, PHP is just another scripting language, it processes data. That said PHP is not responsible for user interface , it just prints out what you tell him to , it can be HTML XML JSON etc presentation thing is eg HTML and CSS is for styling HTML, JS is to dynamically change st

Re: [PHP] Tree menu list in php

2011-07-26 Thread Jim Giner
"Jasper Mulder" wrote in message news:snt106-w6527d1e82d0a3efe6f76f1f7...@phx.gbl... > From: alekto.antarct...@gmail.com > Date: Tue, 26 Jul 2011 19:20:58 +0200 > To: php-general@lists.php.net > Subject: [PHP] Tree menu list in php > > Hi, > is there a way to create a tree menu list only by usin

RE: [PHP] Tree menu list in php

2011-07-26 Thread Jasper Mulder
> From: alekto.antarct...@gmail.com > Date: Tue, 26 Jul 2011 19:20:58 +0200 > To: php-general@lists.php.net > Subject: [PHP] Tree menu list in php > > Hi, > is there a way to create a tree menu list only by using php/html/css? > I found some, but they are all in JavaScript, do I have to make them

[PHP] Tree menu list in php

2011-07-26 Thread alekto
Hi, is there a way to create a tree menu list only by using php/html/css? I found some, but they are all in JavaScript, do I have to make them by using JavaScript or is there a way in php as well? This is how I imagine the tree menu should look like: v First level > Second level > Second