cyberghos / webiopi

Automatically exported from code.google.com/p/webiopi
0 stars 0 forks source link

pins do not show in/out (high/low) on index.html #1

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
First of all, many thanks for making this software available.

I am not a php programmer, so forgive me if I’ve missed something obvious. My 
index.html page looks as the sample, but with no info as to a pin being high or 
low—simply an empty grey box.  My log shows
"PHP Parse error:  syntax error, unexpected '[' in /var/www/webiopi/gpio.php on 
line 19"

This on a Linux raspi 3.1.9+ #90 Wed Apr 18 18:23:05 BST 2012 armv6l GNU/Linux

Thanks much.

Original issue reported on code.google.com by evan...@gmail.com on 22 Aug 2012 at 5:52

GoogleCodeExporter commented 9 years ago
Please post more details about your config.
which distro ?
apache, lighttpd, other ? version ?
PHP version ?

Have an idea but need more details to reproduce it.

Original comment by tro...@trouch.com on 22 Aug 2012 at 5:58

GoogleCodeExporter commented 9 years ago
Sorry about not including the config details

uname -a
Linux raspi 3.1.9+ #90 Wed Apr 18 18:23:05 BST 2012 armv6l GNU/Linux
cat /proc/version
Linux version 3.1.9+ (grayg@dc4-arm-01) (gcc version 4.5.1 (Broadcom-2708)
) #90 Wed Apr 18 18:23:05 BST 2012
cat /etc/debian_version
6.0.5

apache2 -v
Server version: Apache/2.2.16 (Debian)
Server built:   Apr  1 2012 11:26:02

php -v
PHP 5.3.3-7+squeeze8 with Suhosin-Patch (cli) (built: Feb 10 2012 17:00:00)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
    with Suhosin v0.9.32.1, Copyright (c) 2007-2010, by SektionEins GmbH

Thanks for the prompt reply!

Original comment by evan...@gmail.com on 22 Aug 2012 at 6:14

GoogleCodeExporter commented 9 years ago
Okay, it's the PHP version as I use a feature available from PHP 5.4.
Replace gpio.php inside /var/www/webiopi with this one attached and please give 
a feedback.

Original comment by tro...@trouch.com on 22 Aug 2012 at 6:42

Attachments:

GoogleCodeExporter commented 9 years ago
Sorry, no attachment...

Original comment by evan...@gmail.com on 22 Aug 2012 at 7:41

GoogleCodeExporter commented 9 years ago
the attachement is on the issue web page

Original comment by tro...@trouch.com on 22 Aug 2012 at 7:53

GoogleCodeExporter commented 9 years ago
in case you missed that, see 
http://code.google.com/p/webiopi/issues/detail?id=1#c3

Original comment by tro...@trouch.com on 23 Aug 2012 at 6:19

GoogleCodeExporter commented 9 years ago

Original comment by tro...@trouch.com on 24 Aug 2012 at 4:53