NicklasWallgren / PokemonGoAPI-PHP

Pokemon Go API PHP library
BSD 2-Clause "Simplified" License
130 stars 51 forks source link

For the beginner #36

Closed Yolo390 closed 8 years ago

Yolo390 commented 8 years ago

Hi,

i have this message when i try to run a example class:

"php RetrievePlayerStatsExample.php For now we only support PHP on 64bit platforms \n"

I work on Windows 10 - 64bit.

Thanks for the API, from France!

Ni42 commented 8 years ago

Do you have a 64bit PHP version installed? What does echo PHP_INT_SIZE; give you?

Yolo390 commented 8 years ago

Ok I find the exception in the code but i'm a beginner...

if (PHP_INT_SIZE !== 8) { echo 'For now we only support PHP on 64bit platforms \n'; die(); }

It give me: 4

I work with Laragon and PHP 7.0.0RC2

Ni42 commented 8 years ago

Yeah, that looks like 32bit. If you want to be sure about the PHP version, see what phpinfo() says about the architecture. You'll have to install a 64bit PHP version if it says x86. There are some guides on the Laragon forum, maybe check there first.

paoloalby commented 8 years ago

download WAMP64 and install it. select then php 7 and not php 5.6 and you will have php 64 bit

Yolo390 commented 8 years ago

I install 64 bits PHP version (x64) with laragon but still the same problem.

Thanks @paoloalby it's work with WAMP :)