Author Topic: Strange Php Parse Errors  (Read 7273 times)

tnfiddler

  • Newbie
  • *
  • Posts: 8
    • View Profile
Strange Php Parse Errors
« on: September 20, 2006, 05:54:52 pm »
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?
---------------------------
C1000: Sharp ROM, Linksys WCF12, 1G Toshiba SD, 1G PNY CF
D-Link DBT-120 (USB BT)
5600: OZ

tnfiddler

  • Newbie
  • *
  • Posts: 8
    • View Profile
Strange Php Parse Errors
« Reply #1 on: September 21, 2006, 12:45:59 pm »
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.
---------------------------
C1000: Sharp ROM, Linksys WCF12, 1G Toshiba SD, 1G PNY CF
D-Link DBT-120 (USB BT)
5600: OZ

bolbit

  • Full Member
  • ***
  • Posts: 111
    • View Profile
    • http://
Strange Php Parse Errors
« Reply #2 on: September 21, 2006, 03:23:57 pm »
how do you manage to install mysql on the sharp rom ???
I tried the mysql 3.22 and 3.23 (even a v 4 from pdaxrom), but there were errors during installation and mysql don't want to launch ..
I'm using cacko 1.23 on a C1000.
Zaurus C1000, Cacko 1.23, Symbol Wifi Card, BT USB dongle.
PdaXQtrom

baallrog

  • Jr. Member
  • **
  • Posts: 73
    • View Profile
Strange Php Parse Errors
« Reply #3 on: September 23, 2006, 06:54:48 am »
a such installation will not kill your memory due to the limited numbers of write ???

tnfiddler

  • Newbie
  • *
  • Posts: 8
    • View Profile
Strange Php Parse Errors
« Reply #4 on: October 10, 2006, 08:13:57 pm »
Bolbit: I installed MySQL 3.22.32-2, I can't remember if I had to tweak something to get it to work, try searching the forums.  I don't know about Cacko.

Baallrog: Yeah, I'm a little concerned about the flash RAM, apparently one can move the MySQL data directory to a card with symbolic links.  You can also start MySQL with a command line option to use a specific data directory.  One of those is the next step.  This isn't production, and I'm not doing heavy writing/mods, so I'm not too worried.

I am more concerned with the apache htdocs directory, where I am modifying the documents a lot.  I tried to symlink it to the SD card, even set permissions and ownership, but it didn't work.  Still working on that.
---------------------------
C1000: Sharp ROM, Linksys WCF12, 1G Toshiba SD, 1G PNY CF
D-Link DBT-120 (USB BT)
5600: OZ