Issue #001 [Verified/closed] - pins do not show in/out (high/low) on index.html

Posted by evanspc

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.


Comment 1

Posted by trouch

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.


Comment 2

Posted by evanspc

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!


Comment 3

Posted by trouch

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.

Files attached


Comment 4

Posted by evanspc

Sorry, no attachment...


Comment 5

Posted by trouch

the attachement is on the issue web page


Comment 6

Posted by trouch

in case you missed that, see https://code.google.com/p/webiopi/issues/detail?id=1#c3


Comment 7

Posted by trouch