I want to use PHP's ftp_ssl_connect() on my Mac, but I'm getting an error message that the function is not available:
PHP Fatal error: Call to undefined function ftp_ssl_connect()
I've installed Apache and PHP through MacPorts. I'm using PHP version 5.5.23. I've added FTP and OpenSSL support by running:
port install php55-ftp php55-openssl
I've already tried restarting Apache. In PHPInfo() it does say my install supports both FTP and OpenSSL, but still I'm getting the error message above when trying to use ftp_ssl_connect().
How can I enable this function on my machine?
Related
I had a perfectly running local test environment with:
Oracle Linux 7 using httpd
PHP 7.4
Oracle DB 18c XE
several vhosts
Then I had to install the IMAP extention, and got this final message.
My local pages don't work anymore, and a look at the error log confirm my suspicion that it's because something happened to the OCI8:
PHP Fatal error: Uncaught Error: Call to undefined function oci_new_connect() in /var/www/
Finally, phpinfo() shows that there is indeed no OCI8.
Has anyone a way to solve this without much fuss? I checked and the correct OVI-8 version is still on my machine.
I have installed libsodium and libsodium-php on ubuntu 16.04 but when I run:
`<?php
var_dump([
\Sodium\library_version_major(),
\Sodium\library_version_minor(),
\Sodium\version_string()
]);`
I get an error saying:
PHP Fatal error: Uncaught Error: Call to undefined function Sodium\library_version_major()
According to phpinfo() Sodium is enabled and the compiled version is 2.0.1 and the library version is 1.0.13. What am I doing wrong?
The PHP API for libsodium has changed in version 2.0.0 of the extension.
Originally, all functions were in a \Sodium\ namespace.
However, following a vote by PHP developers regarding its inclusion in PHP 7.2, it was decided to move everything to the global namespace instead.
So, what used to be \Sodium\library_version_major() is now sodium_library_version_major().
For those who couldnt get the answer working..
thats because it should be:
<?php
var_dump([
SODIUM_LIBRARY_MAJOR_VERSION,
SODIUM_LIBRARY_MINOR_VERSION,
SODIUM_LIBRARY_VERSION
]);
For those who installed Pecl Version of Soidum and Enabled it in php.ini (extension=sodium.so) And Have same error like Call to Undefined ...
After Restarting Apache & nginx and lack of success finally Reboot server get sodium work exteremly.
PHP 7.3 & >7.3 = libsodium 2.1
Hope to be helpful.
I have a Magento 1.9 site installed and all necessary php extensions. The site works, but when I get to checkout/onepage I get the error:
Fatal error: Call to undefined function mcrypt_module_open() in /path/lib/Varien/Crypt/Mcrypt.php on line 63
I understand this typically means that mcrypt is not installed, but looking at the contents of phpinfo(); reveal that it is installed and enabled
portion of phpinfo
I am running on php 5.3.29 using apache on a mac. I used homebrew to install php53 and php53-mcrypt. I am curious to know why the mcrypt_module_open() function cannot be found if I have mcrypt enabled.
I am migrating a Drupal site to another server and keep getting HTTP 500 error in the browser. When I investigate the PHP error log, I see that there is
PHP Fatal error: Call to undefined function sqlsrv_connect()
in one of the files. I am on a Linux environment and have Composer installed. Is there a way to install the mssql extension using the Composer? Alternatively, what is an efficient way to install MSSQL extension?
the SQLSRV functions are only available on Windows machines.
you can try using the ODBC functions, after installing the drivers but you will have to rewrite your code to use them.
if you happen to be running Ubuntu, here's a script for installation.
I want to install php5 on my mac using macports. It throws the following error on terminal:
Attempting to fetch php5-5.3.12_0+apache2.darwin_11.x86_64.tbz2.rmd160 from http://packages.macports.org/php5
Error: org.macports.archivefetch for port php5 returned: Failed to verify signature for archive!
Please see the log file for port php5 for details:
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_php5/php5/main.log
To report a bug, follow the instructions in the guide:
http://guide.macports.org/#project.tickets
Error: Processing of port php5 failed
What should I do?