Re: CRLF in file

From: Date: Sun, 26 Jan 2003 17:42:07 +0000
Subject: Re: CRLF in file
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-133177@lists.php.net to get a copy of this message
On Monday 27 January 2003 01:27, Malcolm Brownell wrote: > Thank you Jason, > If you'll bear with me for one more question -- > The /\ fix did what I wanted but now the word Array > appears before the first var -- the text file looks like this - > > Array$hostname = hostname > $SQL_USER = username > $SQL_PWD = dbpass > > I know this is php telling me the data is an array but can I supress this > somehow so all I'll print is the keys and vals? > fputs($fp,$ch); Remove the above line. > foreach($ch as $key => $val) { > fputs($fp,"$$key = $val/r/n"); > } > fclose ($fp); -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* "I just want to be a good engineer." -- Steve Wozniak, co-founder of Apple Computer, concluding his keynote speech at the 1988 AppleFest */

« previous php.general (#133177) next »