I try to use the trader_macd() function in PHP. But it always returns bool(false). I tried different parameters, values for the array but i always get the same. PECL is enabled and the function answers but i never get a good calculation.
Anyone knows if this is an issue of the trader.so extension or from my code?
$values = array(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27);
$macd = trader_macd($values, 12, 26, 9);
var_dump($macd);
Thanks!
I found the issue. Apache was sending an error message
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20131226/trader.so' - /usr/lib/php5/20131226/trader.so: cannot open shared object file: No such file or directory i$
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20131226/trader.so' - /usr/lib/php5/20131226/trader.so: cannot open shared object file: No such file or directory i$
There were two modules installed at the same time. On in 20131226 and one in 20121212. So i removed the oldest and it works like a charm!
Related
Ok, so when I run my php file it gives me this error:
PHP Warning: PHP Startup: Unable to load dynamic library 'php_sockets.dll'
In my php.ini file, I've added the line "extension=php_sockets.dll" but it still gives me this error. I've searched many ways of solving this problem but they didn't work.
I've noticed someting in the error. It said this:
C:\xampp\php\ext\php_php_sockets.dll.dll (The specified module could not be found.))
Why does it say php_php_socketsdll.dll? How can I fix this?
Good morning,
I'm struggerling to understand the below error. I believe it was caused when i migrated a cPanel account from one WHM to another.
I'm currently running Laravel but my log files are repeatedly growing with the same error.
[02-Jun-2020 10:46:47 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'php_fileinfo.dll' (tried: /opt/cpanel/ea-php73/root/usr/lib64/php/modules/php_fileinfo.dll (/opt/cpanel/ea-php73/root/usr/lib64/php/modules/php_fileinfo.dll: cannot open shared object file: No such file or directory), /opt/cpanel/ea-php73/root/usr/lib64/php/modules/php_fileinfo.dll.so (/opt/cpanel/ea-php73/root/usr/lib64/php/modules/php_fileinfo.dll.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
Has anyone experienced this before? or no of how i can resolve it...
Regards
Ross
You may be missing a library. See this related question:
How to enable php_fileinfo extension in PHP?
If you have cpanel just go to
Select PHP Version
and search for the extension
fileinfo
check it and you're good to go.
I'm currently doing a project for my school and I faced a few errors. I am currently using PHP 7.1.12 with IIS and I have these errors.
[Warning: PHP Startup: Unable to load dynamic library 'ext\php_interbase.dll' - The specified module could not be found.
in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library 'ext\php_oci8_12c.dll' - The specified module could not be found.
in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library 'ext\php_pdo_firebird.dll' - The specified module could not be found.
in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library 'ext\php_pdo_oci.dll' - The specified module could not be found.
in Unknown on line 0]1
I checked my php.ini and I added those dlls above into the extensions part. I also checked my php\ext file and I do have those dll files.
As you can see from the highlighted files.
My php.ini file
I tried googling for answers but most people use Apache instead of IIS. Anyone knows how to solve it ? Your help is greatly appreciated. :)
Those are database extensions. If you are not using those types of databases then you can go ahead and comment them out for the time being with a ';'.
Typically for school projects students use:
MySQL (listed in php.ini as: 'php_pdo_mysql.dll'),
or
Microsoft SQL Server (listed in php.ini as: 'php_pdo_odbc.dll')...
...database adapter files (aka pdo .dll's). Sorry I am late to the game in answering this question since no one else felt compelled to do so in almost two months. I hope you were able to figure this out from a teacher or another fellow student since it appears I am probably far too late to be of much help to you!
This is an error I've received from multiple projects on live servers, but not localhost.
A PHP Error was encountered
Severity: Core Warning
Message: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20100525/imagick.so' - libMagickWand.so.2: cannot open shared object file: No such file or directory
Filename: Unknown
Line Number: 0
Backtrace:
I have never used Imagick (libMagickWand) and none of the projects where I've received this error have I required functionality that Imagick offers, but for whatever reason I still get these errors. It's interfering with my scripts working properly. In this particular case, the error is appearing in a JSON formatted database select.
Some times the error appears, other times it doesn't, but when it does it causes my scripts that rely on that file containing JSON to not work. Refreshing is the only cure, but obviously that's not a permanent fix, not even a temporary one. I've googled it and all I can find is threads discussing how to install the library.
Any help in removing this error would be greatly appreciated, thank you.
Either:
one of the ini files that you your live servers are using contains extension=imagick.so
or
You've managed to compile PHP against Imagick but then deleted the ImageMagick library from the system.
Either way, you need to talk to whoever manages your server and find out why Imagick is trying to be loaded.
I have mysql_connect running with no problem on my site...
I have a script that i'm running from a CRON job, and here it decides to not work, and output these two errors:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/ssh2.so' - /usr/lib64/php/modules/ssh2.so: cannot open shared object file: No such file or directory in Unknown on line 0
Fatal error: Call to undefined function mysql_connect() in /home/mysite/public_html/phpMySQLAutoBackup/files/schema_for_export.php on line 22
Yes, I'm using phpMySQLAutoBackup
Any ideas? This befuddles me...
The time I got one of these (Unable to load dynamic library ...) I was missing a module. In your case my guess would be that you're missing "libssh2"
Similar to PHP Errors on a cronjob, works fine at prompt
Check your $PATH, permissions, & any environment variables...