[ciapug] Array building

Chris Van Cleve ciapug@cialug.org
Wed, 11 May 2005 14:27:25 -0500


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
>
>