[ciapug] Re: Relational Databases
Mike Parks
ciapug@cialug.org
Wed, 18 May 2005 21:09:26 -0500
Ok, there was almost an arguement where I work today over relational
databases.
One person admittedly is just starting to use database driven relationships,
now wants to use them all of the time. The other, is deadset on using code
to keep the relationship.
I on the third hand, really think that it would depend from job to job.
Reading through numerous books you get the statement "its there, why not use
it..."
So I'll ask the question here, Pro's, Con's, always, never, does the size of
the DB matter in the decision? What do you think?
Mike
----- Original Message -----
From: <ciapug-request@cialug.org>
To: <ciapug@cialug.org>
Sent: Wednesday, May 11, 2005 4:11 PM
Subject: ciapug digest, Vol 1 #224 - 3 msgs
> Send ciapug mailing list submissions to
> ciapug@cialug.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://cialug.org/mailman/listinfo/ciapug
> or, via email, send a message with subject or body 'help' to
> ciapug-request@cialug.org
>
> You can reach the person managing the list at
> ciapug-admin@cialug.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of ciapug digest..."
>
>
> Today's Topics:
>
> 1. Re: Array building (Bryan Baker)
> 2. Re: Array building (Dave J. Hala Jr.)
> 3. Re: Array building (Chris Van Cleve)
>
> --__--__--
>
> Message: 1
> From: Bryan Baker <bbaker@iowalaw.org>
> Subject: Re: [ciapug] Array building
> Date: Wed, 11 May 2005 16:04:15 -0500
> To: ciapug@cialug.org
> Reply-To: ciapug@cialug.org
>
>
> --Apple-Mail-7-99302710
> Content-Transfer-Encoding: quoted-printable
> Content-Type: text/plain;
> charset=ISO-8859-1;
> format=flowed
>
> I got a parse error too, but then I got rid of the quotes arounnd the=20
> keywords and the tabs before the =3D> and now it runs fine.
>
>
> <?php
> // Build array of meta information
> $meta =3D array (
> keywords =3D> 'Some text',
> htdig-keywords=A0=3D> 'Some text',
> description =3D> 'Some text',
> author =3D> 'Some text',
> revisit-after=A0=3D> 'Some text',
> distribution =3D> 'Some text',
> generator =3D> 'Some text',
> rating =3D> 'Some text'
> );
>
> echo "<pre>";
> echo var_dump($meta);
> echo
> "=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D\n=
> ";
> print_r ($meta);=09
> echo "</pre>";
>
> ?>
>
> =3D=3D=3D output =3D=3D=3D
>
> array(7) {
> ["keywords"]=3D>
> string(9) "Some text"
> [0]=3D>
> string(9) "Some text"
> ["description"]=3D>
> string(9) "Some text"
> ["author"]=3D>
> string(9) "Some text"
> ["distribution"]=3D>
> string(9) "Some text"
> ["generator"]=3D>
> string(9) "Some text"
> ["rating"]=3D>
> string(9) "Some text"
> }
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> Array
> (
> [keywords] =3D> Some text
> [0] =3D> Some text
> [description] =3D> Some text
> [author] =3D> Some text
> [distribution] =3D> Some text
> [generator] =3D> Some text
> [rating] =3D> Some text
> )
>
> On May 11, 2005, at 4:00 PM, Chris Van Cleve wrote:
>
>> I just uploaded it to another server and I get the same parse error i=20=
>
>> experienced before on my intranet box:
>>
>> Parse error: parse error, unexpected T_STRING, expecting ')' in=20
>> /home/dreamsc/public_html/array_test.php on line 4
>>
>> Line 4 =3D 'keywords' =3D> 'Some text',
>>
>> I'm so confused. Trying a 3rd server to see what happens.
>>
>> Chris VC
>>
>> On May 11, 2005, at 3:53 PM, Dave J. Hala Jr. wrote:
>>
>>> Runs fine here. Here's the output:
>>>
>>> array(8) {
>>> ["keywords"]=3D>
>>> string(9) "Some text"
>>> ["htdig-keywords"]=3D>
>>> string(9) "Some text"
>>> ["description"]=3D>
>>> string(9) "Some text"
>>> ["author"]=3D>
>>> string(9) "Some text"
>>> ["revisit-after"]=3D>
>>> string(9) "Some text"
>>> ["distribution"]=3D>
>>> string(9) "Some text"
>>> ["generator"]=3D>
>>> string(9) "Some text"
>>> ["rating"]=3D>
>>> string(9) "Some text"
>>> }
>>> On Wed, 2005-05-11 at 15:46, Chris Van Cleve wrote:
>>>> Unfortunately, that's what I did. here is the code of the full file
>>>> which turns up blank. (I'm hoping to test it on another web server
>>>> later)
>>>>
>>>> <?php
>>>> // Build array of meta information
>>>> $meta =3D array (
>>>> 'keywords' =3D> 'Some text',
>>>> 'htdig-keywords' =3D> 'Some text',
>>>> 'description' =3D> 'Some text',
>>>> 'author' =3D> 'Some text',
>>>> 'revisit-after' =3D> 'Some text',
>>>> 'distribution' =3D> 'Some text',
>>>> 'generator' =3D> 'Some text',
>>>> 'rating' =3D> 'Some text'
>>>> );
>>>>
>>>> echo "<pre>";
>>>> echo var_dump($meta);
>>>> echo "</pre>";
>>>>
>>>> ?>
>>>>
>>>> On May 11, 2005, at 3:25 PM, Dave J. Hala Jr. wrote:
>>>>
>>>>> Try this:
>>>>>
>>>>>
>>>>> echo "<PRE>";
>>>>> echo var_dump($decoded_value);
>>>>> echo "</PRE>";
>>>>>
>>>>>
>>>>> On Wed, 2005-05-11 at 14:27, Chris Van Cleve wrote:
>>>>>> FInally getting back around to this. To answer some of the below
>>>>>> questions:
>>>>>>
>>>>>> 1. This is the first thing in the file. The only preceeding code =
> is
>>>>>> <?php
>>>>>>
>>>>>> 2. I placed the code in a stand-alone file, with a
>>>>>> var_dump($meta)=20=
>
>>>>>> and
>>>>>> I get a blank page. Go figure.
>>>>>>
>>>>>> Chris VC
>>>>>>
>>>>>> On Apr 14, 2005, at 12:28 PM, Tony Bibbs wrote:
>>>>>>
>>>>>>> Odds are you are missing an ')' or ';' in the lines preceeding =
> the
>>>>>>> code snippet you gave.
>>>>>>>
>>>>>>> --Tony
>>>>>>>
>>>>>>> Laith wrote:
>>>>>>>
>>>>>>>> I think you have some other issue in the fime that is confusing
>>>>>>>> things.
>>>>>>>>
>>>>>>>> when I place that code into a test.php I get no errors and I can
>>>>>>>> var_dump($meta)
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> Chris Van Cleve wrote:
>>>>>>>>
>>>>>>>>> No line 3 is:
>>>>>>>>>
>>>>>>>>>>> 'keywords' =3D> 'Some text',
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On Apr 13, 2005, at 12:30 PM, Dave J. Hala Jr. wrote:
>>>>>>>>>
>>>>>>>>>> It looks ok to me. Is $meta =3D array on line three?
>>>>>>>>>>
>>>>>>>>>> On Wed, 2005-04-13 at 12:18, Chris Van Cleve wrote:
>>>>>>>>>>
>>>>>>>>>>> I have never had a reason to hand build an array before, and=20=
>
>>>>>>>>>>> now
>>>>>>>>>>> that I
>>>>>>>>>>> have a reason I cannot seem to get it to work. Is there any
>>>>>>>>>>> reason
>>>>>>>>>>> the
>>>>>>>>>>> following is not valid?
>>>>>>>>>>>
>>>>>>>>>>> // Build array of meta information
>>>>>>>>>>> $meta =3D array (
>>>>>>>>>>> 'keywords' =3D> 'Some text',
>>>>>>>>>>> 'htdig-keywords' =3D> 'Some text',
>>>>>>>>>>> 'description' =3D>'Some text',
>>>>>>>>>>> 'author' =3D> 'Some text',
>>>>>>>>>>> 'revisit-after' =3D> 'Some text',
>>>>>>>>>>> 'distribution' =3D> 'Some text',
>>>>>>>>>>> 'generator' =3D> 'Some text',
>>>>>>>>>>> 'rating' =3D> 'Some text'
>>>>>>>>>>> );
>>>>>>>>>>>
>>>>>>>>>>> It's not single vs double quotes. It throws the same error=20
>>>>>>>>>>> either
>>>>>>>>>>> way:
>>>>>>>>>>>
>>>>>>>>>>> [error] PHP Parse error: parse error, unexpected T_STRING,
>>>>>>>>>>> expecting
>>>>>>>>>>> ')' in /path/to/document/index.php on line 3
>>>>>>>>>>> _______________________________________________
>>>>>>>>>>> ciapug mailing list
>>>>>>>>>>> ciapug@cialug.org
>>>>>>>>>>> http://cialug.org/mailman/listinfo/ciapug
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> --=20
>>>>>>>>>>
>>>>>>>>>> Open Source Information Systems (OSIS)
>>>>>>>>>> Dave J. Hala Jr. <dave@osis.us>
>>>>>>>>>> 641.485.1606
>>>>>>>>>>
>>>>>>>>>> _______________________________________________
>>>>>>>>>> ciapug mailing list
>>>>>>>>>> ciapug@cialug.org
>>>>>>>>>> http://cialug.org/mailman/listinfo/ciapug
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>> _______________________________________________
>>>>>>>>> ciapug mailing list
>>>>>>>>> ciapug@cialug.org
>>>>>>>>> http://cialug.org/mailman/listinfo/ciapug
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> _______________________________________________
>>>>>>>> ciapug mailing list
>>>>>>>> ciapug@cialug.org
>>>>>>>> http://cialug.org/mailman/listinfo/ciapug
>>>>>>>
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> ciapug mailing list
>>>>>>> ciapug@cialug.org
>>>>>>> http://cialug.org/mailman/listinfo/ciapug
>>>>>>>
>>>>>>>
>>>>>>
>>>>>> _______________________________________________
>>>>>> ciapug mailing list
>>>>>> ciapug@cialug.org
>>>>>> http://cialug.org/mailman/listinfo/ciapug
>>>>> --=20
>>>>>
>>>>> Open Source Information Systems (OSIS)
>>>>> Dave J. Hala Jr. <dave@osis.us>
>>>>> 641.485.1606
>>>>>
>>>>> _______________________________________________
>>>>> ciapug mailing list
>>>>> ciapug@cialug.org
>>>>> http://cialug.org/mailman/listinfo/ciapug
>>>>>
>>>>>
>>>>
>>>> _______________________________________________
>>>> ciapug mailing list
>>>> ciapug@cialug.org
>>>> http://cialug.org/mailman/listinfo/ciapug
>>> --=20
>>>
>>> Open Source Information Systems (OSIS)
>>> Dave J. Hala Jr. <dave@osis.us>
>>> 641.485.1606
>>>
>>> _______________________________________________
>>> ciapug mailing list
>>> ciapug@cialug.org
>>> http://cialug.org/mailman/listinfo/ciapug
>>>
>>>
>>
>> _______________________________________________
>> ciapug mailing list
>> ciapug@cialug.org
>> http://cialug.org/mailman/listinfo/ciapug
>>
>>
> --
> Bryan Baker
> Technology Advocate
> Iowa Legal Aid
> Suite 230
> 1111 9th Street
> Des Moines, Ia 50314-2527
>
> (515) 243-2151 (x1635)
>
> http://www.iowalegalaid.org
> bbaker@iowalaw.org
>
>
> --Apple-Mail-7-99302710
> Content-Transfer-Encoding: base64
> Content-Type: application/pkcs7-signature;
> name=smime.p7s
> Content-Disposition: attachment;
> filename=smime.p7s
>
> MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIGSzCCAwQw
> ggJtoAMCAQICAw5/4zANBgkqhkiG9w0BAQQFADBiMQswCQYDVQQGEwJaQTElMCMGA1UEChMcVGhh
> d3RlIENvbnN1bHRpbmcgKFB0eSkgTHRkLjEsMCoGA1UEAxMjVGhhd3RlIFBlcnNvbmFsIEZyZWVt
> YWlsIElzc3VpbmcgQ0EwHhcNMDUwNDE1MjA1NjIzWhcNMDYwNDE1MjA1NjIzWjBlMR8wHQYDVQQD
> ExZUaGF3dGUgRnJlZW1haWwgTWVtYmVyMSEwHwYJKoZIhvcNAQkBFhJiYmFrZXJAaW93YWxhdy5v
> cmcxHzAdBgkqhkiG9w0BCQEWEGthX2tsaWNrQG1hYy5jb20wggEiMA0GCSqGSIb3DQEBAQUAA4IB
> DwAwggEKAoIBAQDyBzkyxll3WVTb/fQh3QTcV46NOwziEma8pd959lVm/rbNxxtKnpVr1pf1K8mP
> nbHKRR1IHLKikooyfc6rmOsoCZWSMwt/Qz/ag2qIe9lXx6u/yM+azivcn8q7VViG6HkqyhSesA2Z
> XKqUExHfs7g4diuZT35AXi+HnGVi0eHSb/QtwNq2GN8bxu1FBaWfZKFG646wOJhhAWHM+gxI2o9z
> ZEeksG7iXvl/0TiQ7/IsAtxeI+bhz+RX1f+Y2vcFoMofmPj0b773y3gNhCGu6No7HntCkik68WLm
> udXf4NEhxOJxcWJL6orO5YuAsVznt/UzrQldMPXM5Th4qu/cJElRAgMBAAGjQTA/MC8GA1UdEQQo
> MCaBEmJiYWtlckBpb3dhbGF3Lm9yZ4EQa2Ffa2xpY2tAbWFjLmNvbTAMBgNVHRMBAf8EAjAAMA0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28GScQbaDFGv5swpyvNJPt4YtZSn3oK/gIZFSg7o4E716o+jMttHUk/5yEwdE
> AZxm/cYbG6DcB+vPtv3gN4yrqeTE05u9TR1L/fC5FrwHflVfLRE5wuTvg8tZ9TBthTvkLc2ybesY
> VTOZi43bt7qmhbrKsCzLg0yrYkT0AMS3aXZ6tdjqOYd410GFyLXt9gr4krVO4uKrB18WMJLJnFZk
> RX6XApSkg9CUCQiZilZLowAAAAAAAA==
>
> --Apple-Mail-7-99302710--
>
>
> --__--__--
>
> Message: 2
> Subject: Re: [ciapug] Array building
> From: "Dave J. Hala Jr." <dave@58ghz.net>
> To: PHP List <ciapug@cialug.org>
> Date: Wed, 11 May 2005 16:09:23 -0500
> Reply-To: ciapug@cialug.org
>
> Again, no errors here, runs fine. Here's my php version:
>
> php-4.3.2-19.ent
>
> On Wed, 2005-05-11 at 16:04, Bryan Baker wrote:
>> I got a parse error too, but then I got rid of the quotes arounnd the
>> keywords and the tabs before the => and now it runs fine.
>>
>>
>> <?php
>> // Build array of meta information
>> $meta = array (
>> keywords => 'Some text',
>> htdig-keywords => 'Some text',
>> description => 'Some text',
>> author => 'Some text',
>> revisit-after => 'Some text',
>> distribution => 'Some text',
>> generator => 'Some text',
>> rating => 'Some text'
>> );
>>
>> echo "<pre>";
>> echo var_dump($meta);
>> echo "======================\n";
>> print_r ($meta);
>> echo "</pre>";
>>
>> ?>
>>
>> === output ===
>>
>> array(7) {
>> ["keywords"]=>
>> string(9) "Some text"
>> [0]=>
>> string(9) "Some text"
>> ["description"]=>
>> string(9) "Some text"
>> ["author"]=>
>> string(9) "Some text"
>> ["distribution"]=>
>> string(9) "Some text"
>> ["generator"]=>
>> string(9) "Some text"
>> ["rating"]=>
>> string(9) "Some text"
>> }
>> ======================
>> Array
>> (
>> [keywords] => Some text
>> [0] => Some text
>> [description] => Some text
>> [author] => Some text
>> [distribution] => Some text
>> [generator] => Some text
>> [rating] => Some text
>> )
>>
>> On May 11, 2005, at 4:00 PM, Chris Van Cleve wrote:
>>
>> > I just uploaded it to another server and I get the same parse error i
>> > experienced before on my intranet box:
>> >
>> > Parse error: parse error, unexpected T_STRING, expecting ')' in
>> > /home/dreamsc/public_html/array_test.php on line 4
>> >
>> > Line 4 = 'keywords' => 'Some text',
>> >
>> > I'm so confused. Trying a 3rd server to see what happens.
>> >
>> > Chris VC
>> >
>> > On May 11, 2005, at 3:53 PM, Dave J. Hala Jr. wrote:
>> >
>> >> Runs fine here. Here's the output:
>> >>
>> >> array(8) {
>> >> ["keywords"]=>
>> >> string(9) "Some text"
>> >> ["htdig-keywords"]=>
>> >> string(9) "Some text"
>> >> ["description"]=>
>> >> string(9) "Some text"
>> >> ["author"]=>
>> >> string(9) "Some text"
>> >> ["revisit-after"]=>
>> >> string(9) "Some text"
>> >> ["distribution"]=>
>> >> string(9) "Some text"
>> >> ["generator"]=>
>> >> string(9) "Some text"
>> >> ["rating"]=>
>> >> string(9) "Some text"
>> >> }
>> >> On Wed, 2005-05-11 at 15:46, Chris Van Cleve wrote:
>> >>> Unfortunately, that's what I did. here is the code of the full file
>> >>> which turns up blank. (I'm hoping to test it on another web server
>> >>> later)
>> >>>
>> >>> <?php
>> >>> // Build array of meta information
>> >>> $meta = array (
>> >>> 'keywords' => 'Some text',
>> >>> 'htdig-keywords' => 'Some text',
>> >>> 'description' => 'Some text',
>> >>> 'author' => 'Some text',
>> >>> 'revisit-after' => 'Some text',
>> >>> 'distribution' => 'Some text',
>> >>> 'generator' => 'Some text',
>> >>> 'rating' => 'Some text'
>> >>> );
>> >>>
>> >>> echo "<pre>";
>> >>> echo var_dump($meta);
>> >>> echo "</pre>";
>> >>>
>> >>> ?>
>> >>>
>> >>> On May 11, 2005, at 3:25 PM, Dave J. Hala Jr. wrote:
>> >>>
>> >>>> Try this:
>> >>>>
>> >>>>
>> >>>> echo "<PRE>";
>> >>>> echo var_dump($decoded_value);
>> >>>> echo "</PRE>";
>> >>>>
>> >>>>
>> >>>> On Wed, 2005-05-11 at 14:27, Chris Van Cleve wrote:
>> >>>>> FInally getting back around to this. To answer some of the below
>> >>>>> questions:
>> >>>>>
>> >>>>> 1. This is the first thing in the file. The only preceeding code is
>> >>>>> <?php
>> >>>>>
>> >>>>> 2. I placed the code in a stand-alone file, with a var_dump($meta)
>> >>>>> and
>> >>>>> I get a blank page. Go figure.
>> >>>>>
>> >>>>> Chris VC
>> >>>>>
>> >>>>> On Apr 14, 2005, at 12:28 PM, Tony Bibbs wrote:
>> >>>>>
>> >>>>>> Odds are you are missing an ')' or ';' in the lines preceeding the
>> >>>>>> code snippet you gave.
>> >>>>>>
>> >>>>>> --Tony
>> >>>>>>
>> >>>>>> Laith wrote:
>> >>>>>>
>> >>>>>>> I think you have some other issue in the fime that is confusing
>> >>>>>>> things.
>> >>>>>>>
>> >>>>>>> when I place that code into a test.php I get no errors and I can
>> >>>>>>> var_dump($meta)
>> >>>>>>>
>> >>>>>>>
>> >>>>>>>
>> >>>>>>> Chris Van Cleve wrote:
>> >>>>>>>
>> >>>>>>>> No line 3 is:
>> >>>>>>>>
>> >>>>>>>>>> 'keywords' => 'Some text',
>> >>>>>>>>>
>> >>>>>>>>>
>> >>>>>>>>
>> >>>>>>>>
>> >>>>>>>> On Apr 13, 2005, at 12:30 PM, Dave J. Hala Jr. wrote:
>> >>>>>>>>
>> >>>>>>>>> It looks ok to me. Is $meta = array on line three?
>> >>>>>>>>>
>> >>>>>>>>> On Wed, 2005-04-13 at 12:18, Chris Van Cleve wrote:
>> >>>>>>>>>
>> >>>>>>>>>> I have never had a reason to hand build an array before, and
>> >>>>>>>>>> now
>> >>>>>>>>>> that I
>> >>>>>>>>>> have a reason I cannot seem to get it to work. Is there any
>> >>>>>>>>>> reason
>> >>>>>>>>>> the
>> >>>>>>>>>> following is not valid?
>> >>>>>>>>>>
>> >>>>>>>>>> // Build array of meta information
>> >>>>>>>>>> $meta = array (
>> >>>>>>>>>> 'keywords' => 'Some text',
>> >>>>>>>>>> 'htdig-keywords' => 'Some text',
>> >>>>>>>>>> 'description' =>'Some text',
>> >>>>>>>>>> 'author' => 'Some text',
>> >>>>>>>>>> 'revisit-after' => 'Some text',
>> >>>>>>>>>> 'distribution' => 'Some text',
>> >>>>>>>>>> 'generator' => 'Some text',
>> >>>>>>>>>> 'rating' => 'Some text'
>> >>>>>>>>>> );
>> >>>>>>>>>>
>> >>>>>>>>>> It's not single vs double quotes. It throws the same error
>> >>>>>>>>>> either
>> >>>>>>>>>> way:
>> >>>>>>>>>>
>> >>>>>>>>>> [error] PHP Parse error: parse error, unexpected T_STRING,
>> >>>>>>>>>> expecting
>> >>>>>>>>>> ')' in /path/to/document/index.php on line 3
>> >>>>>>>>>> _______________________________________________
>> >>>>>>>>>> ciapug mailing list
>> >>>>>>>>>> ciapug@cialug.org
>> >>>>>>>>>> http://cialug.org/mailman/listinfo/ciapug
>> >>>>>>>>>
>> >>>>>>>>>
>> >>>>>>>>> --
>> >>>>>>>>>
>> >>>>>>>>> Open Source Information Systems (OSIS)
>> >>>>>>>>> Dave J. Hala Jr. <dave@osis.us>
>> >>>>>>>>> 641.485.1606
>> >>>>>>>>>
>> >>>>>>>>> _______________________________________________
>> >>>>>>>>> ciapug mailing list
>> >>>>>>>>> ciapug@cialug.org
>> >>>>>>>>> http://cialug.org/mailman/listinfo/ciapug
>> >>>>>>>>>
>> >>>>>>>>>
>> >>>>>>>>
>> >>>>>>>> _______________________________________________
>> >>>>>>>> ciapug mailing list
>> >>>>>>>> ciapug@cialug.org
>> >>>>>>>> http://cialug.org/mailman/listinfo/ciapug
>> >>>>>>>
>> >>>>>>>
>> >>>>>>>
>> >>>>>>>
>> >>>>>>> _______________________________________________
>> >>>>>>> ciapug mailing list
>> >>>>>>> ciapug@cialug.org
>> >>>>>>> http://cialug.org/mailman/listinfo/ciapug
>> >>>>>>
>> >>>>>>
>> >>>>>> _______________________________________________
>> >>>>>> ciapug mailing list
>> >>>>>> ciapug@cialug.org
>> >>>>>> http://cialug.org/mailman/listinfo/ciapug
>> >>>>>>
>> >>>>>>
>> >>>>>
>> >>>>> _______________________________________________
>> >>>>> ciapug mailing list
>> >>>>> ciapug@cialug.org
>> >>>>> http://cialug.org/mailman/listinfo/ciapug
>> >>>> --
>> >>>>
>> >>>> Open Source Information Systems (OSIS)
>> >>>> Dave J. Hala Jr. <dave@osis.us>
>> >>>> 641.485.1606
>> >>>>
>> >>>> _______________________________________________
>> >>>> ciapug mailing list
>> >>>> ciapug@cialug.org
>> >>>> http://cialug.org/mailman/listinfo/ciapug
>> >>>>
>> >>>>
>> >>>
>> >>> _______________________________________________
>> >>> ciapug mailing list
>> >>> ciapug@cialug.org
>> >>> http://cialug.org/mailman/listinfo/ciapug
>> >> --
>> >>
>> >> Open Source Information Systems (OSIS)
>> >> Dave J. Hala Jr. <dave@osis.us>
>> >> 641.485.1606
>> >>
>> >> _______________________________________________
>> >> ciapug mailing list
>> >> ciapug@cialug.org
>> >> http://cialug.org/mailman/listinfo/ciapug
>> >>
>> >>
>> >
>> > _______________________________________________
>> > ciapug mailing list
>> > ciapug@cialug.org
>> > http://cialug.org/mailman/listinfo/ciapug
>> >
>> >
>> --
>> Bryan Baker
>> Technology Advocate
>> Iowa Legal Aid
>> Suite 230
>> 1111 9th Street
>> Des Moines, Ia 50314-2527
>>
>> (515) 243-2151 (x1635)
>>
>> http://www.iowalegalaid.org
> bbaker@iowalaw.org
> --
>
> Open Source Information Systems (OSIS)
> Dave J. Hala Jr. <dave@osis.us>
> 641.485.1606
>
>
> --__--__--
>
> Message: 3
> From: Chris Van Cleve <vanish@dreamscapevisionery.com>
> Subject: Re: [ciapug] Array building
> Date: Wed, 11 May 2005 16:10:36 -0500
> To: ciapug@cialug.org
> Reply-To: ciapug@cialug.org
>
> Ding! We have a winner. My conundrum for the evening to research then=20
> is this:
>
> The 4 places I found array building examples had the keywords in=20
> quotes. PHP ignores whitespace as all good languages do. Why then did=20
> the extra spaces impede parsing? (BTW - Those were spaces. If they
> were=20=
>
> tabs in my e-mail I have to spank my mail client for misbehaving)
>
> Chris VC
>
> On May 11, 2005, at 4:04 PM, Bryan Baker wrote:
>
>> I got a parse error too, but then I got rid of the quotes arounnd the=20=
>
>> keywords and the tabs before the =3D> and now it runs fine.
>>
>>
>> <?php
>> // Build array of meta information
>> $meta =3D array (
>> keywords =3D> 'Some text',
>> htdig-keywords=A0=3D> 'Some text',
>> description =3D> 'Some text',
>> author =3D> 'Some text',
>> revisit-after=A0=3D> 'Some text',
>> distribution =3D> 'Some text',
>> generator =3D> 'Some text',
>> rating =3D> 'Some text'
>> );
>>
>> echo "<pre>";
>> echo var_dump($meta);
>> echo "=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
> \n";
>> print_r ($meta);=09
>> echo "</pre>";
>>
>> ?>
>>
>> =3D=3D=3D output =3D=3D=3D
>>
>> array(7) {
>> ["keywords"]=3D>
>> string(9) "Some text"
>> [0]=3D>
>> string(9) "Some text"
>> ["description"]=3D>
>> string(9) "Some text"
>> ["author"]=3D>
>> string(9) "Some text"
>> ["distribution"]=3D>
>> string(9) "Some text"
>> ["generator"]=3D>
>> string(9) "Some text"
>> ["rating"]=3D>
>> string(9) "Some text"
>> }
>> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
>> Array
>> (
>> [keywords] =3D> Some text
>> [0] =3D> Some text
>> [description] =3D> Some text
>> [author] =3D> Some text
>> [distribution] =3D> Some text
>> [generator] =3D> Some text
>> [rating] =3D> Some text
>> )
>>
>> On May 11, 2005, at 4:00 PM, Chris Van Cleve wrote:
>>
>>> I just uploaded it to another server and I get the same parse error
>>> i=20=
>
>>> experienced before on my intranet box:
>>>
>>> Parse error: parse error, unexpected T_STRING, expecting ')' in=20
>>> /home/dreamsc/public_html/array_test.php on line 4
>>>
>>> Line 4 =3D 'keywords' =3D> 'Some text',
>>>
>>> I'm so confused. Trying a 3rd server to see what happens.
>>>
>>> Chris VC
>>>
>>> On May 11, 2005, at 3:53 PM, Dave J. Hala Jr. wrote:
>>>
>>>> Runs fine here. Here's the output:
>>>>
>>>> array(8) {
>>>> ["keywords"]=3D>
>>>> string(9) "Some text"
>>>> ["htdig-keywords"]=3D>
>>>> string(9) "Some text"
>>>> ["description"]=3D>
>>>> string(9) "Some text"
>>>> ["author"]=3D>
>>>> string(9) "Some text"
>>>> ["revisit-after"]=3D>
>>>> string(9) "Some text"
>>>> ["distribution"]=3D>
>>>> string(9) "Some text"
>>>> ["generator"]=3D>
>>>> string(9) "Some text"
>>>> ["rating"]=3D>
>>>> string(9) "Some text"
>>>> }
>>>> On Wed, 2005-05-11 at 15:46, Chris Van Cleve wrote:
>>>>> Unfortunately, that's what I did. here is the code of the full file
>>>>> which turns up blank. (I'm hoping to test it on another web server
>>>>> later)
>>>>>
>>>>> <?php
>>>>> // Build array of meta information
>>>>> $meta =3D array (
>>>>> 'keywords' =3D> 'Some text',
>>>>> 'htdig-keywords' =3D> 'Some text',
>>>>> 'description' =3D> 'Some text',
>>>>> 'author' =3D> 'Some text',
>>>>> 'revisit-after' =3D> 'Some text',
>>>>> 'distribution' =3D> 'Some text',
>>>>> 'generator' =3D> 'Some text',
>>>>> 'rating' =3D> 'Some text'
>>>>> );
>>>>>
>>>>> echo "<pre>";
>>>>> echo var_dump($meta);
>>>>> echo "</pre>";
>>>>>
>>>>> ?>
>>>>>
>>>>> On May 11, 2005, at 3:25 PM, Dave J. Hala Jr. wrote:
>>>>>
>>>>>> Try this:
>>>>>>
>>>>>>
>>>>>> echo "<PRE>";
>>>>>> echo var_dump($decoded_value);
>>>>>> echo "</PRE>";
>>>>>>
>>>>>>
>>>>>> On Wed, 2005-05-11 at 14:27, Chris Van Cleve wrote:
>>>>>>> FInally getting back around to this. To answer some of the below
>>>>>>> questions:
>>>>>>>
>>>>>>> 1. This is the first thing in the file. The only preceeding code=20=
>
>>>>>>> is
>>>>>>> <?php
>>>>>>>
>>>>>>> 2. I placed the code in a stand-alone file, with a=20
>>>>>>> var_dump($meta) and
>>>>>>> I get a blank page. Go figure.
>>>>>>>
>>>>>>> Chris VC
>>>>>>>
>>>>>>> On Apr 14, 2005, at 12:28 PM, Tony Bibbs wrote:
>>>>>>>
>>>>>>>> Odds are you are missing an ')' or ';' in the lines preceeding=20=
>
>>>>>>>> the
>>>>>>>> code snippet you gave.
>>>>>>>>
>>>>>>>> --Tony
>>>>>>>>
>>>>>>>> Laith wrote:
>>>>>>>>
>>>>>>>>> I think you have some other issue in the fime that is confusing
>>>>>>>>> things.
>>>>>>>>>
>>>>>>>>> when I place that code into a test.php I get no errors and I =
> can
>>>>>>>>> var_dump($meta)
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Chris Van Cleve wrote:
>>>>>>>>>
>>>>>>>>>> No line 3 is:
>>>>>>>>>>
>>>>>>>>>>>> 'keywords' =3D> 'Some text',
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> On Apr 13, 2005, at 12:30 PM, Dave J. Hala Jr. wrote:
>>>>>>>>>>
>>>>>>>>>>> It looks ok to me. Is $meta =3D array on line three?
>>>>>>>>>>>
>>>>>>>>>>> On Wed, 2005-04-13 at 12:18, Chris Van Cleve wrote:
>>>>>>>>>>>
>>>>>>>>>>>> I have never had a reason to hand build an array before,
>>>>>>>>>>>> and=20=
>
>>>>>>>>>>>> now
>>>>>>>>>>>> that I
>>>>>>>>>>>> have a reason I cannot seem to get it to work. Is there any
>>>>>>>>>>>> reason
>>>>>>>>>>>> the
>>>>>>>>>>>> following is not valid?
>>>>>>>>>>>>
>>>>>>>>>>>> // Build array of meta information
>>>>>>>>>>>> $meta =3D array (
>>>>>>>>>>>> 'keywords' =3D> 'Some text',
>>>>>>>>>>>> 'htdig-keywords' =3D> 'Some text',
>>>>>>>>>>>> 'description' =3D>'Some text',
>>>>>>>>>>>> 'author' =3D> 'Some text',
>>>>>>>>>>>> 'revisit-after' =3D> 'Some text',
>>>>>>>>>>>> 'distribution' =3D> 'Some text',
>>>>>>>>>>>> 'generator' =3D> 'Some text',
>>>>>>>>>>>> 'rating' =3D> 'Some text'
>>>>>>>>>>>> );
>>>>>>>>>>>>
>>>>>>>>>>>> It's not single vs double quotes. It throws the same error=20=
>
>>>>>>>>>>>> either
>>>>>>>>>>>> way:
>>>>>>>>>>>>
>>>>>>>>>>>> [error] PHP Parse error: parse error, unexpected T_STRING,
>>>>>>>>>>>> expecting
>>>>>>>>>>>> ')' in /path/to/document/index.php on line 3
>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>> ciapug mailing list
>>>>>>>>>>>> ciapug@cialug.org
>>>>>>>>>>>> http://cialug.org/mailman/listinfo/ciapug
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> --=20
>>>>>>>>>>>
>>>>>>>>>>> Open Source Information Systems (OSIS)
>>>>>>>>>>> Dave J. Hala Jr. <dave@osis.us>
>>>>>>>>>>> 641.485.1606
>>>>>>>>>>>
>>>>>>>>>>> _______________________________________________
>>>>>>>>>>> ciapug mailing list
>>>>>>>>>>> ciapug@cialug.org
>>>>>>>>>>> http://cialug.org/mailman/listinfo/ciapug
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> _______________________________________________
>>>>>>>>>> ciapug mailing list
>>>>>>>>>> ciapug@cialug.org
>>>>>>>>>> http://cialug.org/mailman/listinfo/ciapug
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> _______________________________________________
>>>>>>>>> ciapug mailing list
>>>>>>>>> ciapug@cialug.org
>>>>>>>>> http://cialug.org/mailman/listinfo/ciapug
>>>>>>>>
>>>>>>>>
>>>>>>>> _______________________________________________
>>>>>>>> ciapug mailing list
>>>>>>>> ciapug@cialug.org
>>>>>>>> http://cialug.org/mailman/listinfo/ciapug
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> ciapug mailing list
>>>>>>> ciapug@cialug.org
>>>>>>> http://cialug.org/mailman/listinfo/ciapug
>>>>>> --=20
>>>>>>
>>>>>> Open Source Information Systems (OSIS)
>>>>>> Dave J. Hala Jr. <dave@osis.us>
>>>>>> 641.485.1606
>>>>>>
>>>>>> _______________________________________________
>>>>>> ciapug mailing list
>>>>>> ciapug@cialug.org
>>>>>> http://cialug.org/mailman/listinfo/ciapug
>>>>>>
>>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> ciapug mailing list
>>>>> ciapug@cialug.org
>>>>> http://cialug.org/mailman/listinfo/ciapug
>>>> --=20
>>>>
>>>> Open Source Information Systems (OSIS)
>>>> Dave J. Hala Jr. <dave@osis.us>
>>>> 641.485.1606
>>>>
>>>> _______________________________________________
>>>> ciapug mailing list
>>>> ciapug@cialug.org
>>>> http://cialug.org/mailman/listinfo/ciapug
>>>>
>>>>
>>>
>>> _______________________________________________
>>> ciapug mailing list
>>> ciapug@cialug.org
>>> http://cialug.org/mailman/listinfo/ciapug
>>>
>>>
>> --
>> Bryan Baker
>> Technology Advocate
>> Iowa Legal Aid
>> Suite 230
>> 1111 9th Street
>> Des Moines, Ia 50314-2527
>>
>> (515) 243-2151 (x1635)
>>
>> http://www.iowalegalaid.org
>> bbaker@iowalaw.org
>>
>
>
>
> --__--__--
>
> _______________________________________________
> ciapug mailing list
> ciapug@cialug.org
> http://cialug.org/mailman/listinfo/ciapug
>
>
> End of ciapug Digest