FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » parse error can't find
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
parse error can't find [message #184223] Sun, 15 December 2013 20:35 Go to next message
Mr Oldies is currently offline  Mr Oldies
Messages: 241
Registered: October 2013
Karma: 0
Senior Member
"AL BROWNS TUNETOPPERS"=>array( 'track'=>"The Madison", 'flip'=>"Mo
Madison", 'label'=>"Amy 804",'author'=>"Al Brown", 'entry'=>"4/4/1960",
'peak'=>"23", 'weeks'=>"12")

Parse error: unexpected T_CONSTANT_ENCAPSED_STRING

Why?
Re: parse error can't find [message #184224 is a reply to message #184223] Sun, 15 December 2013 20:45 Go to previous messageGo to next message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma: 0
Senior Member
On 12/15/2013 3:35 PM, richard wrote:
>
>
> "AL BROWNS TUNETOPPERS"=>array( 'track'=>"The Madison", 'flip'=>"Mo
> Madison", 'label'=>"Amy 804",'author'=>"Al Brown", 'entry'=>"4/4/1960",
> 'peak'=>"23", 'weeks'=>"12")
>
> Parse error: unexpected T_CONSTANT_ENCAPSED_STRING
>
> Why?
>

Because it's not a legal statement.


--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
Re: parse error can't find [message #184225 is a reply to message #184223] Sun, 15 December 2013 20:45 Go to previous messageGo to next message
Mr Oldies is currently offline  Mr Oldies
Messages: 241
Registered: October 2013
Karma: 0
Senior Member
On Sun, 15 Dec 2013 15:35:35 -0500, richard wrote:

> "AL BROWNS TUNETOPPERS"=>array( 'track'=>"The Madison", 'flip'=>"Mo
> Madison", 'label'=>"Amy 804",'author'=>"Al Brown", 'entry'=>"4/4/1960",
> 'peak'=>"23", 'weeks'=>"12")
>
> Parse error: unexpected T_CONSTANT_ENCAPSED_STRING
>
> Why?


"AL BROWNS TUNETOPPERS"=> <<<<< why is this wrong?
array(
'track'=>"The Madison",
'flip'=>"Mo Madison",
'label'=>"Amy 804",
'author'=>"Al Brown",
'entry'=>"4/4/1960",
'peak'=>"23",
'weeks'=>"12")

Broken down this way, the error still points to the same line.
Re: parse error can't find [message #184227 is a reply to message #184225] Sun, 15 December 2013 21:29 Go to previous messageGo to next message
Richard Damon is currently offline  Richard Damon
Messages: 58
Registered: August 2011
Karma: 0
Member
On 12/15/13, 3:45 PM, richard wrote:
> On Sun, 15 Dec 2013 15:35:35 -0500, richard wrote:
>
>> "AL BROWNS TUNETOPPERS"=>array( 'track'=>"The Madison", 'flip'=>"Mo
>> Madison", 'label'=>"Amy 804",'author'=>"Al Brown", 'entry'=>"4/4/1960",
>> 'peak'=>"23", 'weeks'=>"12")
>>
>> Parse error: unexpected T_CONSTANT_ENCAPSED_STRING
>>
>> Why?
>
>
> "AL BROWNS TUNETOPPERS"=> <<<<< why is this wrong?
> array(
> 'track'=>"The Madison",
> 'flip'=>"Mo Madison",
> 'label'=>"Amy 804",
> 'author'=>"Al Brown",
> 'entry'=>"4/4/1960",
> 'peak'=>"23",
> 'weeks'=>"12")
>
> Broken down this way, the error still points to the same line.
>

What are you expecting it to do?

It is a little hard to figure out the problem as it looks like you are
not giving us even a complete statement.

there is no ; at the end of the statement.

the string => value is only used inside an array operator, but you are
showing it as the "start" of your "statement".

If this is something even close to working, my guess is the line before
is part of the statement, and somewhere earlier is the array operator.
Maybe you are missing the comma at the end of the previous element.
Re: parse error can't find [message #184228 is a reply to message #184227] Sun, 15 December 2013 22:00 Go to previous messageGo to next message
Mr Oldies is currently offline  Mr Oldies
Messages: 241
Registered: October 2013
Karma: 0
Senior Member
On Sun, 15 Dec 2013 16:29:20 -0500, Richard Damon wrote:

> On 12/15/13, 3:45 PM, richard wrote:
>> On Sun, 15 Dec 2013 15:35:35 -0500, richard wrote:
>>
>>> "AL BROWNS TUNETOPPERS"=>array( 'track'=>"The Madison", 'flip'=>"Mo
>>> Madison", 'label'=>"Amy 804",'author'=>"Al Brown", 'entry'=>"4/4/1960",
>>> 'peak'=>"23", 'weeks'=>"12")
>>>
>>> Parse error: unexpected T_CONSTANT_ENCAPSED_STRING
>>>
>>> Why?
>>
>>
>> "AL BROWNS TUNETOPPERS"=> <<<<< why is this wrong?
>> array(
>> 'track'=>"The Madison",
>> 'flip'=>"Mo Madison",
>> 'label'=>"Amy 804",
>> 'author'=>"Al Brown",
>> 'entry'=>"4/4/1960",
>> 'peak'=>"23",
>> 'weeks'=>"12")
>>
>> Broken down this way, the error still points to the same line.
>>
>
> What are you expecting it to do?
>
> It is a little hard to figure out the problem as it looks like you are
> not giving us even a complete statement.
>
> there is no ; at the end of the statement.

NOT required!
As this is only part of a large array.
the ; is included at the end of the main array, not sub arrays.

>
> the string => value is only used inside an array operator, but you are
> showing it as the "start" of your "statement".

=> defines a "key". Yes ut us ubsude if abiter arrat,
>
> If this is something even close to working, my guess is the line before
> is part of the statement, and somewhere earlier is the array operator.
> Maybe you are missing the comma at the end of the previous element.

My guess is that I had an extra ) where it wasn't supposed to be.
Anyways, it's fixed now.
Re: parse error can't find [message #184229 is a reply to message #184228] Sun, 15 December 2013 22:12 Go to previous messageGo to next message
Beauregard T. Shagnas is currently offline  Beauregard T. Shagnas
Messages: 154
Registered: September 2010
Karma: 0
Senior Member
richard the drunken sto0pid wrote:

> => defines a "key". Yes ut us ubsude if abiter arrat,

Please return to your keyboard after you have sobered up.

--
-bts
-This space for rent, but the price is high
Re: parse error can't find [message #184231 is a reply to message #184228] Sun, 15 December 2013 22:47 Go to previous messageGo to next message
Richard Damon is currently offline  Richard Damon
Messages: 58
Registered: August 2011
Karma: 0
Member
On 12/15/13, 5:00 PM, richard wrote:
>
> NOT required!
> As this is only part of a large array.
> the ; is included at the end of the main array, not sub arrays.
>

The problem with your question was you didn't give the full statement in
error!!!

Errors of things being "unexpected" are very likely due to an error
earlier in the statement, so that is MUCH more important to show that
then what follows (which PHP hasn't even processed yet, so very unlikely
to be part of the error). I would consider as a minimum to the preceding
open parenthesis that is still open at this point.
Re: parse error can't find [message #184235 is a reply to message #184223] Mon, 16 December 2013 00:18 Go to previous messageGo to next message
Doug Miller is currently offline  Doug Miller
Messages: 171
Registered: August 2011
Karma: 0
Senior Member
richard <noreply(at)example(dot)com> wrote in news:y6f80mwt1wd7$.16vfo5w72r128.dlg@
40tude.net:

>
>
> "AL BROWNS TUNETOPPERS"=>array( 'track'=>"The Madison", 'flip'=>"Mo
> Madison", 'label'=>"Amy 804",'author'=>"Al Brown", 'entry'=>"4/4/1960",
> 'peak'=>"23", 'weeks'=>"12")
>
> Parse error: unexpected T_CONSTANT_ENCAPSED_STRING
>
> Why?

Because -- as usual -- you botched up your string quoting somewhere, and can't proofread.

Most likely, the error is in the line immediately *before* the fragment you posted here.
Re: parse error can't find [message #184239 is a reply to message #184235] Mon, 16 December 2013 01:01 Go to previous message
Scott Johnson is currently offline  Scott Johnson
Messages: 196
Registered: January 2012
Karma: 0
Senior Member
On 12/15/2013 4:18 PM, Doug Miller wrote:
> richard <noreply(at)example(dot)com> wrote in news:y6f80mwt1wd7$.16vfo5w72r128.dlg@
> 40tude.net:
>
>>
>>
>> "AL BROWNS TUNETOPPERS"=>array( 'track'=>"The Madison", 'flip'=>"Mo
>> Madison", 'label'=>"Amy 804",'author'=>"Al Brown", 'entry'=>"4/4/1960",
>> 'peak'=>"23", 'weeks'=>"12")
>>
>> Parse error: unexpected T_CONSTANT_ENCAPSED_STRING
>>
>> Why?
>
> Because -- as usual -- you botched up your string quoting somewhere, and can't proofread.
>
> Most likely, the error is in the line immediately *before* the fragment you posted here.
>

I don't know about you, but this stuff never seems to get old. It is
like watching a car wreck, over and over.

Scotty
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: YouTube script quits displaying "Tags" info
Next Topic: Where's the error?
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Wed Nov 27 23:52:13 GMT 2024

Total time taken to generate the page: 0.02409 seconds