Reply to Re: reading in multiarray

Your name:

Reply:


Posted by Jon Slaughter on 04/20/07 10:30

"gosha bine" <stereofrog@gmail.com> wrote in message
news:462879c1$0$2890$6e1ede2f@read.cnntp.org...
> On 20.04.2007 00:11 Jon Slaughter wrote:
>> I wrote some code to read in a file
>>
>> and I'm curious as to is this is a decent way to do it or if there is a
>> much more elegant way. Essentially I want to convert a text file that
>> into a ul in html for my nav menu. This way I can easily add and remove
>> links without messing with any other code(Except of course where the link
>> points to).
>>
>> Anyways, the code works as far as getting the links into a multi-array
>> that I can work with but not sure if its the best way or not.
>
>
> Your code looks ok to me, however it won't work with deeply nested
> structures. Perhaps more scalable would be to store data in XML format.

Right now I'm not worried about more than 2 deep because I initially wrote
my code and did my graphics only for 2D. Later I'm after I finish my web
site I'm thinking about making it much more robust and redo everything(Since
I have learned a lot of new stuff already(first time doing html/css/php
crap). I have a few ideas but I guess I really just need to get me a site
up first and then I can worry about making it better.


Thanks,
Jon

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация