Re: [PHP-WIN] variable in an array? Answer: Double quotes

2006-03-03 Thread John Ellingsworth
The answer to the interpolation problem is to use double quotes: $dsn = "{$servers["$id"]["type"]}://{$servers["$id"]["username"]}:{$servers["$id"]["password"[EMAIL PROTECTED]"$id"]["hostName"]}/{$servers["$id"]["databaseName"]}"; John Ellingsworth wrote: Hi. I am sure there is an easy answe

[PHP-WIN] variable in an array?

2006-03-03 Thread John Ellingsworth
Hi. I am sure there is an easy answer to this, but I do not know it and have not found the answer anywhere. I want to be able to dynamically set my database from an array of options: $database = array( array( "type" => "mssql", "name" => "database1", "hostName" =>

RE: [PHP-WIN] Re: DOM/XML -> PHP 5.0.3 HowTo?

2006-03-03 Thread S.F. Alim
ah ha for PHP 4 man starting of this tutorial say PHP 4.2.1 or higher, so i thought it would be same but unfortunately not. thanks man. i will check link tomorrow. take care faisal -Original Message- From: Rob [mailto:[EMAIL PROTECTED] Sent: Friday, March 03, 2006 10:11 PM To: S.F. Alim

[PHP-WIN] Re: DOM/XML -> PHP 5.0.3 HowTo?

2006-03-03 Thread Rob
S.F. Alim wrote: Hi list, i took this tutorial for creating xml file from scratch. toturial is is present at sitepoint. www.sitepoint.com/print/management-system-php. ok i dont know how to enable DOM/XML feature, when i do phpinfo(); it does give that DOM/XML is enable but i cant run this tutor

[PHP-WIN] DOM/XML -> PHP 5.0.3 HowTo?

2006-03-03 Thread S.F. Alim
Hi list, i took this tutorial for creating xml file from scratch. toturial is is present at sitepoint. www.sitepoint.com/print/management-system-php. ok i dont know how to enable DOM/XML feature, when i do phpinfo(); it does give that DOM/XML is enable but i cant run this tutorial. i try to debug