how to use “fribidi_log2vis” function on localhost - php

I have to use fribidi_log2vis in PHP. When I call it, my localhost (XAMPP) shows this error:
Fatal error: Call to undefined function fribidi_log2vis()
but this function is exists in php.net (http://php.net/manual/en/function.fribidi-log2vis.php)

Fribidi is a PECL extension that is not bundled with PHP by default. Installing instructions: http://php.net/manual/en/install.pecl.php

Related

Call to undefined function svn_auth_set_parameter() in php

While I trying connect svn using php svn package in windows xampp and I got the below error.
Uncaught Error: Call to undefined function svn_auth_set_parameter()
I have followed
https://www.php.net/manual/en/svn.installation.php manual and installed svn module in php and enabled extension=php_svn in php.ini file.
Here the sample code I have used
svn_auth_set_parameter(SVN_AUTH_PARAM_DEFAULT_USERNAME, 'my username');
svn_auth_set_parameter(SVN_AUTH_PARAM_DEFAULT_PASSWORD, 'password');

PHP: Fatal error: Call to undefined function openssl_pkcs12_read()

I'm using PHP to read encryted file using opensll.
when doing
openssl_pkcs12_read($storedfile, $certificateinfo, $passwd)
in my script, error came out is :
Fatal error: Call to undefined function openssl_pkcs12_read()
I'm trying to install openssl extension for my Suse Linux Enterprise Server 11.
Can anybody help me how to install openssl extension in SLES. or how to solve this problem.
thanks

is iconv_set_encoding deprecated in php 5.4.25?

I have a magento website. which worked find until my hosting server upgraded its php version to 5.4.25.Now i'm getting this error
Fatal error: Call to undefined function iconv_get_encoding() in /home/dbname/public_html/Magento/mysite/lib/Zend/Validate/Hostname.php on line 520
why i'm getting this error?
You should uncomment extension=iconv.so in php.ini. That would enable the function

Fatal error: Call to undefined function printer_open()

I'm trying to print some string using PHP, i'm using the PHP print functions:
$printer = ("HP LaserJet Professional P1102");
$handler= printer_open($printer);
$content="Test Content";
printer_write($handler, $content);
printer_close($handler);
but I got that error :
Fatal error: Call to undefined function printer_open() in C:\xampp\htdocs\print.php on line 12
after googling it i found that i must add the php_printer.dll to the extensions file in php and add it's extension to the php.ini file, then restarting the server services, all of that accomplished but still getting that error.
p.s. I've tried it on WAMP and XAMPP
I think solution would be extension location.php_printer extension should be stored in c:\xampp\php\ext and not in c:\xampp\php. So move it to the ext-folder, and restart Apache.
Can you look into the error_log, which tells you, if it fails to load the module. You should also run a phpinfo(), which shows up all loaded modules, you must find the printer extensions there.
I hope it may resolve your issue.

Call to undefined function openssl_pkcs7_sign()

I'm using TCPDF to sign son PFD documents.
I was testing the examples via web: http://www.tcpdf.org/examples.php, and they worked fine, but when I downloaded the lib and tested it # localhost I got this error in "example 52":
Fatal error: Call to undefined function openssl_pkcs7_sign() in
C:\xampp\htdocs\pruebas\pdf_firma\tcpdf\tcpdf.php on line 9043
My PHP is Version 5.3.8.
Any has any idea how to fix it?
Openssl must be installed
Enabling the OpenSSL in XAMPP
http://www.php.net/manual/en/openssl.setup.php

Categories