note 28261 added to function.parse-ini-file

From: Date: Tue, 07 Jan 2003 16:24:15 +0000
Subject: note 28261 added to function.parse-ini-file
Groups: php.notes 
Request: Send a blank email to php-notes+get-41795@lists.php.net to get a copy of this message
Just a quick note for all those running into trouble escaping double quotes: I got around this by "base64_encode()"-ing my content on the way in to the ini file, and "base64_decode()"-ing on the way out. Because base64 uses the "=" sign, you will have to encapsulate the entire value in double quotes so the line looks like this: varname = "TmlhZ2FyYSBGYWxscywgT04=" When base64'd, your strings will retain all \n, \t...etc... URL's retain everything perfectly :-) I hope some of you find this useful! Cheers, Kieran -- http://www.php.net/manual/en/function.parse-ini-file.php http://master.php.net/manage/user-notes.php?action=edit+28261 http://master.php.net/manage/user-notes.php?action=delete+28261 http://master.php.net/manage/user-notes.php?action=reject+28261

« previous php.notes (#41795) next »