By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,968 Members | 1,588 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,968 IT Pros & Developers. It's quick & easy.

Error

coolgames
100+
P: 169
i don't know what's wrong with this error:

"Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/yuvoo/public_html/uzumakionline/modules/village_music.php on line 12"

code:

<?php

function village_music_getmoduleinfo(){
$info = array(
"name"=>"Village Music (Ops)",
"version"=>"0.1CG",
"author"=>"`2Raja Naveen Kavuru (coolgames)",
"category"=>"CG",
"settings"=>array(
"konohaname"=>"Name of the Konohagakure Music,|",
"konohaurl"=>"URL of the embedded file: http://,|"
"mistname"=>"Name of the Hidden Mist Village Music|",
"misturl"=>"URL of the embedded file: http://,|"
"sandname"=>"Name of the Sunagakure music|",
"sandurl"=>"URL of the embedded file: http://,|"
"soundname"=>"Name of the Otogakure music,|",
"soundurl"=>"URL of the embedded file: http://,|"
"leafname"=>"Name of the Hoshigakure music,|",
"leafurl"=>"URL of the embedded file: http://,|"
"shadesname"=>"Name of the Shades music,|",
"shadesurl"=>"URL of the embedded file: http://,|"
"rockname"=>"Name of the Rock music,|",
"rockurl"=>"URL of the embedded file: http://,|"
)
"prefs"=>array(
"Village Music Cities,title",
"user_konoha"=>"Display Songs in Konohagakure?,bool|1",
"user_mist"=>"Display Songs in Hidden Mist Village?,bool|0",
"user_sand"=>"Display Songs in Sunagakure?,bool|0",
"user_sound"=>"Display Songs in Otogakure?,bool|0",
"user_leaf"=>"Display Songs in Hoshigakure?,bool|0",
"Village Music Other,title",
"user_shades"=>"Display Songs in Shades?,bool|1",
"user_rock"=>"Display Songs in Curious Looking Rock?,bool|1",
)

);
return $info;
}

can anyone please tell me what's wrong with the code.....
thank you very much
Dec 28 '07 #1
Share this Question
Share on Google+
5 Replies


P: 33
Hi coolgames,

You missed the ',' to seperate the array elements
try this now
Expand|Select|Wrap|Line Numbers
  1.  
  2. <?
  3.  
  4. function village_music_getmoduleinfo(){
  5. $info = array(
  6. "name"=>"Village Music (Ops)",
  7. "version"=>"0.1CG",
  8. "author"=>"`2Raja Naveen Kavuru (coolgames)",
  9. "category"=>"CG",
  10. "settings"=>array(
  11. "konohaname"=>"Name of the Konohagakure Music|",
  12. "konohaurl"=>"URL of the embedded file: http://|",
  13. "mistname"=>"Name of the Hidden Mist Village Music|",
  14. "misturl"=>"URL of the embedded file: http://|",
  15. "sandname"=>"Name of the Sunagakure music|",
  16. "sandurl"=>"URL of the embedded file: http://|",
  17. "soundname"=>"Name of the Otogakure musi|",
  18. "soundurl"=>"URL of the embedded file: http://|",
  19. "leafname"=>"Name of the Hoshigakure music|",
  20. "leafurl"=>"URL of the embedded file: http://|",
  21. "shadesname"=>"Name of the Shades music|",
  22. "shadesurl"=>"URL of the embedded file: http://|",
  23. "rockname"=>"Name of the Rock music|",
  24. "rockurl"=>"URL of the embedded file: http://|"
  25. ),
  26. "prefs"=>array(
  27. "Village Music Cities,title",
  28. "user_konoha"=>"Display Songs in Konohagakure?,bool|1",
  29. "user_mist"=>"Display Songs in Hidden Mist Village?,bool|0",
  30. "user_sand"=>"Display Songs in Sunagakure?,bool|0",
  31. "user_sound"=>"Display Songs in Otogakure?,bool|0",
  32. "user_leaf"=>"Display Songs in Hoshigakure?,bool|0",
  33. "Village Music Other,title",
  34. "user_shades"=>"Display Songs in Shades?,bool|1",
  35. "user_rock"=>"Display Songs in Curious Looking Rock?,bool|1",
  36. )
  37.  
  38. );
  39. return $info;
  40. }
  41.  
  42.  
Dec 29 '07 #2

coolgames
100+
P: 169
thankx a LOT!.. that was cake..
but, there's another error on line 25.... same code.


<?php

function village_music_getmoduleinfo(){
$info = array(
"name"=>"Village Music (Ops)",
"version"=>"0.1CG",
"author"=>"`2Raja Naveen Kavuru (coolgames)",
"category"=>"CG",
"settings"=>array(
"konohaname"=>"Name of the Konohagakure Music|",
"konohaurl"=>"URL of the embedded file: http://|",
"mistname"=>"Name of the Hidden Mist Village Music|",
"misturl"=>"URL of the embedded file: http://|",
"sandname"=>"Name of the Sunagakure music|",
"sandurl"=>"URL of the embedded file: http://|",
"soundname"=>"Name of the Otogakure music|",
"soundurl"=>"URL of the embedded file: http://|",
"leafname"=>"Name of the Hoshigakure music|",
"leafurl"=>"URL of the embedded file: http://|",
"shadesname"=>"Name of the Shades music|",
"shadesurl"=>"URL of the embedded file: http://|",
"rockname"=>"Name of the Rock music|",
"rockurl"=>"URL of the embedded file: http://|",
)
"prefs"=>array(
"Village Music Cities,title",
"user_konoha"=>"Display Songs in Konohagakure?,bool|1",
"user_mist"=>"Display Songs in Hidden Mist Village?,bool|0",
"user_sand"=>"Display Songs in Sunagakure?,bool|0",
"user_sound"=>"Display Songs in Otogakure?,bool|0",
"user_leaf"=>"Display Songs in Hoshigakure?,bool|0",
"Village Music Other,title",
"user_shades"=>"Display Songs in Shades?,bool|1",
"user_rock"=>"Display Songs in Curious Looking Rock?,bool|1",
)

);
return $info;
}
Dec 29 '07 #3

Markus
Expert 5K+
P: 6,050
You missed the comma after the bracket:

[php]
<?php

function village_music_getmoduleinfo(){
$info = array(
"name"=>"Village Music (Ops)",
"version"=>"0.1CG",
"author"=>"`2Raja Naveen Kavuru (coolgames)",
"category"=>"CG",
"settings"=>array(
"konohaname"=>"Name of the Konohagakure Music|",
"konohaurl"=>"URL of the embedded file: http://|",
"mistname"=>"Name of the Hidden Mist Village Music|",
"misturl"=>"URL of the embedded file: http://|",
"sandname"=>"Name of the Sunagakure music|",
"sandurl"=>"URL of the embedded file: http://|",
"soundname"=>"Name of the Otogakure music|",
"soundurl"=>"URL of the embedded file: http://|",
"leafname"=>"Name of the Hoshigakure music|",
"leafurl"=>"URL of the embedded file: http://|",
"shadesname"=>"Name of the Shades music|",
"shadesurl"=>"URL of the embedded file: http://|",
"rockname"=>"Name of the Rock music|",
"rockurl"=>"URL of the embedded file: http://|",
),
"prefs"=>array(
"Village Music Cities,title",
"user_konoha"=>"Display Songs in Konohagakure?,bool|1",
"user_mist"=>"Display Songs in Hidden Mist Village?,bool|0",
"user_sand"=>"Display Songs in Sunagakure?,bool|0",
"user_sound"=>"Display Songs in Otogakure?,bool|0",
"user_leaf"=>"Display Songs in Hoshigakure?,bool|0",
"Village Music Other,title",
"user_shades"=>"Display Songs in Shades?,bool|1",
"user_rock"=>"Display Songs in Curious Looking Rock?,bool|1",
)

);
return $info;
}
?>
[/php]
USE CODE TAGS!
Dec 29 '07 #4

coolgames
100+
P: 169

USE CODE TAGS!
hah! sorry about that, i am using the simple editor. thankx for the help


HAPPY NEW YEAR!
Jan 1 '08 #5

Markus
Expert 5K+
P: 6,050
hah! sorry about that, i am using the simple editor. thankx for the help


HAPPY NEW YEAR!
happy new year to yourself :)
Jan 1 '08 #6

Post your reply

Sign in to post your reply or Sign up for a free account.