meganz / sdk

MEGA C++ SDK
BSD 2-Clause "Simplified" License
1.34k stars 510 forks source link

PHP script #674

Closed dado4497 closed 4 years ago

dado4497 commented 7 years ago

Hi, I need to use the application on a PHP server. I've seen the PHP example, but I need to use it on a web hosting, so I cannot modify variables or install applications, so the script as a lot errors. Some errors are in megacli.php are Fatal error: Call to undefined function dl() in mega/bindings/php/megaapi.php on line 5 Warning: include(mega.php): failed to open stream: No such file or directory in mega/bindings/php/megaapi.php on line 7

Warning: include(): Failed opening 'mega.php' for inclusion (include_path='.:/opt/cpanel/ea-php56/root/usr/share/pear:../../bindings/php:.libs') in mega/bindings/php/megaapi.php on line 7

Fatal error: Class 'MegaListener' not found in mega/bindings/php/megaapi.php on line 35

Can you tell me how to fix errors?

sergiohs84 commented 4 years ago

Apologies for the late response. Please, give a try to the current SDK. If you still observe the issue, feel free to reopen the ticket. Thanks