Mbstring Extension
I'm getting the following error notice in phMyAdmin: "The mbstring PHP extension was not found and you seem to be using multibyte charset. Without mbstring extension phpMyAdmin is unable to split strings correctly and it may result in unexpected results." This is an install on a Win2003 Server, my first on a machine with "asian languages" enabled, otherwise i've had many succesful php/mysql install on win2003. I have no intention of storing content in any asian languages on this server, should I still install the mbstring extension.
View Complete Forum Thread with Replies
Sponsored Links:
Related Messages:
Error: The Mbstring PHP Extension Was Not Found And You Seem To Be Using A Multibyte Charset.
After installing phpMyAdmin on my Fedora Core 4 box, (Apache 2.0.54, PHP 5.0.4) we're getting this error: "The mbstring PHP extension was not found and you seem to be using a multibyte charset. Without the mbstring extension phpMyAdmin is unable to split strings correctly and it may result in unexpected results." The phpinfo() has no reference to mbstring. Doing some searching, I found some information regarding php.ini and uncommenting out an "extension=", but our php.ini has no reference to mbstring. Everything I'm finding on the Web relates to Windows boxes and the location of a mbstring.dll file.
View Replies !
View Related
Mbstring In An .ini File
We are trying to use mbstring in an .ini file to override php's mail() function. Our contact form often gets different languages (ie Russian) inserted into it and then once emailed the Russian text moves through the hosting company's email servers, and gets scrambled when it reaches us. I was told to add this to the php.ini file, however the Russian still appears scrambled: [mbstring] mbstring.language = Neutral mbstring.internal_encoding = UTF-8 mbstring.http_input = UTF-8 mbstring.http_output = UTF-8 mbstring.encoding_translation = On mbstring.detect_order = auto mbstring.substitute_character = long; mbstring.func_overload = 1 Is it the encoding that's incorrect?
View Replies !
View Related
PhpMyAdmin & Mbstring
phpMyAdmin gives following error message: "The mbstring PHP extension was not found and you seem to be using a multibyte charset. Without the mbstring extension phpMyAdmin is unable to split strings correctly and it may result in unexpected results." So, how I can enable that feature? I try it like this: I copy php_mbstring.dll:n to C:PHP-folder and edit C:Windowsphp.ini -file: 'extension=php_mbstring.dll', but it didnt remove that phpMyAdmin's error message. Soft: WinXP pro SP2 apache 2.0.55 win32-x86 no_ssl php 4.4.1 mysql essentia 4.1.16 win32 phpMyAdmin 2.7.0 pl2 PHP4 is installed by using installer and php4apache2.dll is copied from php-4.4.1-Win32.zip -packed to C:PHP- folder, and Apache's httpd.conf -file is edited for required changes (what is needed by php4).
View Replies !
View Related
Adding New Encodings To Mbstring?
Is it possible to add new character encodings to mbstring? http://us.php.net/mbstring If it is possible, then is there a procedure where I can submit "new feature" requests? Or is it possible for me to add the new character encodings myself?
View Replies !
View Related
No Mbstring Function For Finding Suitable Encoding.
I am making some site, where I use UTF-8 encoding. From PHP I send mail. But, if possible I want to send the mail in ISO-8859-1 or KOI8-R (because still some mailers have problem with UTF-8), but if not, just in UTF-8. If I look in the documentation, there is no function that can check if a UTF-8 string can be encoded in another encoding without loss of characters. The function mb_check_encoding and mb_detect_encoding have a different purpose. Or, do I miss something? So, I want a function: bool mb_encoding_possible(string str, string to_encoding, string from_encoding) which returns TRUE if mb_convert_encoding is possible, without loss.
View Replies !
View Related
SSI With .php Extension
Is is possible to call an ssi script with a .php extension? Here is the line of code in the webpage: <!--#EXEC CGI="/cgin-bin/script.pl"--> Currently I have the page named index.shtml and it executes the above script fine, but when I rename it to index.php it doesn't work. Is there anyway this can be done in a php page? Anyone who can help, I would greatly appreciate!
View Replies !
View Related
DOM Extension
After creating an XML file using the DOM extension, I used the $doc->save("test.xml"); to save the file. Is there any way to prompt the user to specify the filename and where he/she wants to save it?
View Replies !
View Related
Add Extension
How would I be able to add more extensions to this: if ($_FILES['imagefile']['type'] == "image/gif"){ copy ($_FILES['imagefile']['tmp_name'], "files/".$_FILES['imagefile']['name']) }
View Replies !
View Related
Extension ?
When I use PHP I give my file the .php extension. I always wondered if it could be an .htm page with a <script> block that the PHP resides in, the same way you would do JavaScript. If you can do it that way are there any benifits to that method ?
View Replies !
View Related
PDO Extension
It'a about calling oracle stored procedure with some input and output parameters. I have this working using ADODB class, but now I need the same thing using PDO Extension. It's all ok when output parameter is some value accept cursor. Code:
View Replies !
View Related
Php Extension
I have a relatively large site with about 500 code files. I've gotten into the habit of naming all files with .php extension, even when there is no php code in it. Is there a performance penalty for this? I assume that apache surrenders processing to php engine only when it encounters the <?php or <? tag. In which case, it wouldn't matter if a file had .php or .html extension.
View Replies !
View Related
GD Extension
I've been told to use the GD extension for PHP to develop graphs for the final year project of my degree. I want to be able to make a graph which will show a students marks between a certain time period (x axis) and out of a certain number of marks (for example 100) on the y axis. I've looked around for a tutorial which will show me how to do some things with the GD library but I've only found some little bits on the php manual and a short tutorial on text production on PHP freaks.
View Replies !
View Related
Extension
I am having trouble changing my file extension from .php to .html. I have added it to the httpd.conf and that didn't work. Then I made a .htaccess page, and that didn't work. The html pages show up, but the php does not parse.
View Replies !
View Related
How I Can Add Imap Extension
So.. I have Php4 installed in apache webserver and now I would like use imap functions, but I think imap -extension isn´t installed. How can I add an extension into php4. Do I have to install the package again or can I add it "on the fly"?
View Replies !
View Related
Hiding PHP Extension
I'm supposed to hide the php extension in a file (like Yahoo! or Google). For example, http://foo.com/foo instead of http://foo.com/foo.php. I have read various articles including <http://in2.php.net/security.hiding> . Certainly mod_rewrite is not the right option. In Apache, "file.php" & "file" are treated as same (content negotiation??) and like to know, how reliable it is? Is there any other options to do the same? At the time I was getting many answers. But, recently I have found another suggestion in the 'net: <FilesMatch "^([^.]+)$"> ForceType application/x-httpd-php </FilesMatch> .......
View Replies !
View Related
Filename Without Extension
i have the below command to make a $file(filename) and a $extension(just the extension), but i am trying to figure out how to add another one to have a variable of just the filename without extension (in addition to the others). if(is_array($files)){ sort($files); foreach($files as $file){ $path_parts = pathinfo("$file"); $extension = $path_parts['extension'] ;
View Replies !
View Related
Extension=php_java.dll
I am trying to use Java from with in PHP. I have looked at the docs from PHP and still having a problem. Looks like the docs came from Zend. I have been looking at docs at: http://us2.php.net/java. When I look at the 'User Contributed Notes' I find a proliferation of examples to do the same thing of which I can not get to work. Some examples have the links in quotes and so do not. Some have multi links per "Java configuration option" item and some do not. It is a little confusing and I am a Java programmer. Example: for 'Java home' in Java the JAVA_HOME is the base root of your installed JDK version. I see examples that point to the bin subdirectory for the java.home php.ini value. Also should I be using the windows 8 byte dir names? I keep my Java JDK and JRE under 'Program Files' subdirectory This what I have defined int the php.ini so far: extension=php_java.dll [Java] java.class.path = "C:php5.2extphp_java.jar" java.home = "C:Program FilesJavajdk1.5.0_07in" java.library = "C:Program FilesJavajre1.5.0_07lib" java.library.path = "C:Program FilesJavajdk1.5.0_07jreinserverjvm.lib" Can anyone point me in the right direction? I am running: - Windoze XP SP 2 - PHP 5.2 - JDKJRE 1.5.0_07
View Replies !
View Related
Extension Can't Be Found But Why?
Template Document Processor: PHP 5.1.6 Server: Apache httpd 2.0.55 (Win32) Database Server: MySQL 5.0.26-community for Win32 Operating System: Windows XP Pro SP2 ======= I just installed PHP and MySQL on my laptop for development purposes. The following directives are set in php.ini (Windows config file): extension=php_mysqli.dll extension_dir = "c:phpext" No other extension is set (for the time being). The Visible Problem: When Apache is (re)started, the following error alert appears: PHP Startup: Unable to load dynamic library 'c:phpextphp_mysqli.dll' - The specified module could not be found. The following is true: 1. PHP was installed in the path "c:php" in Windows 2. I virtually copied and pasted the "c:phpext" into the extension_dir directive within php.ini 3. There is a file 'php_mysqli.dll' within the 'ext' subdirectory also copied and pasted to avoid keyboard entry errors 4. I comment out the 'extension=php_mysqli.dll' and set another extension (=php_tidy.dll) that exists and there is no alert when Apache is re-started. 5. The MySQL daemon (service) is running during all of this. Items 1-4 make what I am seeing appear odd and frustrating to me. What am I missing?
View Replies !
View Related
OPENSSL Extension
I have installed PHP, and the OPENSSL extension. The phpinfo() page confirms it is working : OpenSSL support enabled OpenSSL Version OpenSSL 0.9.8a 11 Oct 2005 I am using PHP Version 5.1.1 I am getting problems accessing https: pages through PHP e.g. <? $url = 'https://localhost/test2.html' $fp = fopen($url, 'r'); ?> I get a "failed to create an SSL context" error; followed by a "Failed to enable crypto" error. Obvouisly the web page works ok in a client browser, and I have checked I can access it with openssl using the s_client command. I am running it through IIS on WindowsXP SP2. The root certificate on my local web server is signed by our windows2003 server (Do need to add the root certificate into openssl?)
View Replies !
View Related
File Extension .inc
is there a reason why people put the extension ".inc" or ".inc.php" on some files, mainly configuration files ?? Is it necessary? Any more info you can give would be appreciated. I've had a look on the php.net site but cant see anything on why it is used.
View Replies !
View Related
PHP-Perl Extension
I'm trying to install the PHP-Perl extension with cvs but I'm getting the following error: [root@localhost conf]# cvs -d :pserver:cvs.php.net:/repository co pecl/perl cvs checkout: authorization failed: server cvs.php.net rejected access to /repository for user root cvs checkout: used empty password; try "cvs login" with a real password
View Replies !
View Related
Libgcrypt Extension For PHP?
I'm interested in turning this library: Which does GnuPG (Pretty Good Privacy) cryptography -- into a PHP module. Does anyone know if this has been tried before? Google doesn't seem to think so. Any input, advice, support, warnings, or volunteers much appreciated.
View Replies !
View Related
Write PHP Extension In C++
how to create PHP extension in C but does not have details on creating C++ extension. I have a shared library which implements several C++ class that I want to expose it to be use by PHP as an object. Is this possible and how?
View Replies !
View Related
Extension=php_interbase.dll
I have win98, apache, php4.04. I want to use Interbase, but i can't. My php.ini contains ...... extension_dir = C:/Program Files/php4_04/extensions ; directory in which the loadable extensions (modules) reside .... extension=php_interbase.dll .... System can to find this module but this dll dose not work. May be there is no some useful dll's or php_interbase.dll is not good? Did someone works with extensions?
View Replies !
View Related
'gd' PHP Extension Is Not Installed
I'm trying to install the Image_Color pear package. I keep getting the following error: "'gd' PHP extension is not installed" phpinfo on my web server indicates that gd is enabled. when I try to get info from my command line interface I don't see anything where it was compiled with gd. Am I right in assuming there are two ini files? One for the command line and one for the web server? A google search has revealed that others have run into this problem but I have yet to find a solution. Can anyone shed any light? general info from the command line... <pre> Build Date =Apr 24 2006 19:54:25 Configure Command => '/SourceCache/apache_mod_php/apache_mod_php-18.4/php/configure' '--prefix=/usr' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--disable-dependency-tracking' '--with-apxs' '--with-ldap=/usr' '--with-kerberos=/usr' '--enable-cli' '--with-zlib-dir=/usr' '--enable-trans-sid' '--with-xml' '--enable-exif' '--enable-ftp' '--enable-mbstring' '--enable-mbregex' '--enable-dbx' '--enable-sockets' '--with-iodbc=/usr' '--with-curl=/usr' '--with-config-file-path=/etc' '--sysconfdir=/private/etc' '--with-mysql=/usr' '--with-mysql-sock=/var/mysql/mysql.sock' Server API =Command Line Interface Virtual Directory Support =disabled Configuration File (php.ini) Path =/private/etc/php.ini PHP API =20020918 PHP Extension =20020429 Zend Extension =20050606 Debug Build =no Zend Memory Manager =enabled Thread Safety =disabled Registered PHP Streams =php, http, ftp, compress.zlib </pre>
View Replies !
View Related
Perl Extension For PHP -
I installed a perl extension for PHP to use some perl inside my php primarily because I have perl working with oracle and not php and oracle. So I want to use my old perl scripts, and use the functionality of php. The extension uses the '$perl->eval' function. i am kind of stuck with the syntax or how to put the php variable into the perl script. I have a form where the user puts in a grid reference. Then a php script that gets the entered values and puts them into a sql. Except all that bit is in Perl. How can this be done? <?php //php request $easting = $_REQUEST['easting']; $northing= $_REQUEST['northing']; //perl code $perl = new Perl(); $perl->eval('use CGI'); $perl->eval('use DBI'); // declare variables $perl->eval('my ($dbh, $sth, $cgi, $the_value, $easting,$northing)'); //instance of the cgi module $perl->eval('$cgi=new CGI'); //connects to the database $perl->eval('$dbh = DBI- Quote:
View Replies !
View Related
Php Extension Debugger
I'm a very, very novice C programmer and I have written an extension for php that does its purpose well, or at least it used to until they asked for that one extra feature. It's a very little thing, very easy, but damn it all, it has a mysterious bug. I tracked it down to one specific line where the weirdness occurs, but I can't figure out *why* it is occuring. This extension uses the php_streams and as such, is wed enough to php that my first inclination (compile it on its own and debug it that way) is a no-go. Is there any way to use a debugger on this so I can step through it?
View Replies !
View Related
Writing A PHP Extension
I have the following questions regarding writing a PHP extension. You don't have to answer all questions. Please answer everything you can. I'd really appreciate it. 1. What is the most common version that's used out there? If I wrote an extension for PHP 4, would it work for PHP 5? Also, is PHP 3 very different? 2. My extension will need to use an external C++ (not C) library. That should be all right, right? 3. When/where/how do I specify whether or not I want my extension to be built-in or external? I know (actually, more like, think) that it is in config.m4 but I don't know exactly how to specify it? 4. This is probably more a C/C++ question, when/where/how do I specify whether or not my library is to be shared/dynamic or static? Also, is that decision relevant only for external extensions?
View Replies !
View Related
Php 5 Extension Concurrency
I'm writting an extension in c for php. Looking at the life cycle of the extensions it looks like each extension is started up within its own thread - is this correct? When each request comes in for the extension is seperate thread then handling the request? My problem is that I would like to obtain a unique id in a c function in the extension, which would be used in conjunction with a message queue for IPC, but I'm not sure how the concurrency works in the php framework. The basic extension should send a message to message queue when a request comes in and the message should contain a unique id to identify the request in order for the message server to send a response to the correct request. is there any reason for why this shouldn't be possible?
View Replies !
View Related
PHP Extension Problem
I tried to search for a solution to this, but I couldn't find one. Maybe I didn't look in the right place, but whatever.... Here is the problem - I have an extension "Myextension" created using SWIG from C++ code. I put this in my c:php5ext directory and pointed php.ini to load extensions from that directory. This is fine. However this extension depends upon some other custom DLLs I have coded in C++. The only way that the original extension loads is if these custom DLLs are in the C:WindowsSystem32 folder. This is not an ideal solution for distribution however. So I've tried changing my System Path to include a custom directory where these DLLs can be stored. That doesn't work. PHP has to know where to find these DLLs that the extension depends on. I just don't know how to give it that information. Am I missing something in php.ini?
View Replies !
View Related
Replacing An Extension
what im trying to do here is when a user uploads a file, if they don't manually type a file name, the scripts takes the name of the uploaded file as the file name but it adds the extension on, is there a way i can take the .extension away from the file i have: Code:
View Replies !
View Related
Use The Ffmpeg Extension.
I am trying to use the ffmpeg extension. This is used for Movie Uploading similar to youtube.com uploading or metacafe.com uploading etc. I would like to use this extension to make my uploaded movies automatically converted into FLV format and also it should take a thumbnail of any frame of my choice from within the movie. What I am looking for here is that I have windows based system where I have installed Apache2Triad which enables me to use PHP with MySql database on my windows system. I am trying to register this ffmpeg extension to my apache server running on windows environment, I am unable to do so. I would like to know if some one else has done this process before or some one can direct me to any online link where I can get help to understand how to perform this action.
View Replies !
View Related
Imagick Extension Dll
i wanna use the imagemagick functions via the php-extension php_imagick.dll I am using WinXP, PHP 4.3.2, Apache 2.47 After installing and trying out several versions of imagemagick, i am now going on with 5.5.7Q16. Whatever Version i use, php tells me following error: The procedure-entry-point "DrawSetFontSize" was not found in the DLL "CORE_RL_magick_.dll". (I translated it from german, so i hope you understand what that means) I rebooted the PC, always copied the imagemagick-dlls to my win-system32 directory. I already tried out pear:imagick, but that won't work under Win; and these pages will not run on a unix-machine until productive-state.
View Replies !
View Related
OCI8 Extension
I'm working on a Web application that needs to connect to an Oracle database. Looking in the php.ini file I see: ;extension=oci8.sl So I get the line uncommented and I get Apache restarted. When I try a simple oci_connect() function, it tells me I'm calling an undefined function. Any idea why this might be happening?
View Replies !
View Related
|