Re: any one can give an idea on this question ?

From: Date: Thu, 26 Oct 2006 17:09:02 +0000
Subject: Re: any one can give an idea on this question ?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-243677@lists.php.net to get a copy of this message
On Thu, October 26, 2006 6:36 am, Stut wrote: > Sancar Saran wrote: >> I just wondering this.. >> >> For example I had a several php pages. In this page there was an >> array named >> $arrHede >> >> It has lots of values. >> >> in index.php >> $arrHede['antin']='yada'; >> >> in config.php >> $arrHede['kuntin']='bada'; >> >> and so. >> >> So I want to write a scrpit check all those files to get all >> $arrHede keys. >> And I do not want to include those files because of errors. >> > > Maybe it's just me, but I didn't see a question anywhere in that lot, > just a statement of what you want to do. Seems obvious to me that you > need to open each file, find assignments to the $arrHede array and > pull > out the values. Have you even tried to do that yet? We're not here to > write scripts for you. Try it and come back if/when you have problems. Something like: grep -r -e "^\s\$arrHede\[[a-z0-9_]+\]\s=\s.*$" . | php might do it for you... I'm horrible at bash/regexp and escaping, but you get the idea. -- Some people have a "gift" link here. Know what I want? I want you to buy a CD from some starving artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So?

« previous php.general (#243677) next »