Re: [PHP] working with ini files

2006-02-28 Thread Adam Ashley
On Tue, 2006-02-28 at 13:32 -0500, Benjamin Adams wrote:
 I have created my own ini file. I can read the values into an array  
 fine. but What I want to do is change a value in the ini file. Example
 
 file.ini
 dog = 3
 cat = 4
 fish = 7
 
 altered file.ini
 dog = 3
 cat = 5
 fish = 7
 
 how can I do this, I tried using ini_set but its not working.
 help would be great, Thanks!!
 Ben

As has been mentioned ini_set is for php.ini values. You can do what you
want with fopen and all that manually or check out
http://pear.php.net/package/Config all the hard work has been done for
you.

Adam Ashley


signature.asc
Description: This is a digitally signed message part


Re: [PHP] Limitation on PEAR : Spreadsheet_Excel_Writer

2006-02-12 Thread Adam Ashley
On Fri, 2006-02-10 at 05:47 +0700, Bagus Nugroho wrote:
 Hello Everyone,
  
 I'm succesfully generate report from mysql table using PEAR :
 Spreadsheet_Excel_Writer, but I have problem to generate from table
 which contain long text, the text is not download completely.
 such as  blablabla.
 it only contain  blab
  
 How can manipulate PEAR, to get full text on excel sheet.
  

Next time direct your question to the PEAR General List
([EMAIL PROTECTED]) to get a much more useful answer.

This is due to the default mode of Spreadsheet_Excel_Writer creating an
Excel 7 (or maybe 6) compatible spreadsheet which has these string
limitations. If you change the version of spreadsheet it is creating you
will not have these problems.

I don't know the exact commands or versions to set it to but check the
documentation or search the archives of pear-general. I know for sure it
is in the pear-general archives as this question has been asked and
answered many times.

Adam Ashley


signature.asc
Description: This is a digitally signed message part