OESF | ELSI | pdaXrom | OpenZaurus | Zaurus Themes | Community Links | Ibiblio

IPB

Welcome Guest ( Log In | Register )

> Strange Php Parse Errors, brackets acting funny
tnfiddler
post Sep 20 2006, 01:54 PM
Post #1





Group: Members
Posts: 8
Joined: 2-April 05
Member No.: 6,771



I've installed apache+php, mysql, and phpmyadmin. phpmyadmin works. apache works. So, I started in on my own php pages. It seems that any control structure involving squiggly brackets {} gives a parse error. It seems that everything else I've tried works.

For example:

<?php

for ($index = 0; $index < 5; $index++) {
echo "count";
}

?>

gives a parse error, but when I delete the brackets I get:

countcountcoutcountcount

like I would expect.

I am entering the brackets from the popup keyboard, but they display correctly. Is this some odd Zaurus thing? Is it some characterset thing?
Go to the top of the page
 
+Quote Post
 
Start new topic
Replies
tnfiddler
post Sep 21 2006, 08:45 AM
Post #2





Group: Members
Posts: 8
Joined: 2-April 05
Member No.: 6,771



Ok, I figured it out, with a little help. The {}s on the default keymap of the Z are different from my desktop's brackets. The hex code id 9B and 9D instead of 7B and 7D (if I remember correctly.) Installing the keyhelper stuff from meanie's site and using the Fn-O and Fn-P brackets types the correct brackets.
Go to the top of the page
 
+Quote Post

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 22nd September 2014 - 10:23 PM