Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What version of PHP are you using? #12

Open
earlvanze opened this issue Mar 28, 2016 · 0 comments
Open

What version of PHP are you using? #12

earlvanze opened this issue Mar 28, 2016 · 0 comments

Comments

@earlvanze
Copy link

I can't get any of the functions in wiringpi.php to work, even with the extension loaded in php.ini (which in PHP version 5.6.4 is located in:
user@system~$ php -i | grep php.ini
Configuration File (php.ini) Path => /etc/php5/cli
Loaded Configuration File => /etc/php5/cli/php.ini

user@system~$ php -v
PHP 5.6.4-4ubuntu6.4 (cli) (built: Oct 28 2015 01:56:22)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2014 Zend Technologies

I was finally able to include('wiringpi.php') by making sure wiringpi.so extension was loaded on PHP startup via php.ini, and then commenting out the code that tries to load using dl(), but every time I call a wiringpi::[function], nothing below that line gets executed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant