Pdf With Unicode Support Or Arabic Characterset Support
I am working on a project that have a featre to print the news as a PDF file format. I am having a problem in generaing pdf with unicode support or Arabic characterset support. I can generat eenglish document like a charm but the probem in Arabic text. I am geting the data from the MySQL database. Anyone have any idea what to do, I search everywhere on net find some small results but still I am not been able to accomplish the task.
View Complete Forum Thread with Replies
Related Forum Messages:
Unicode Support
If I was to make a web application written in php "unicode" compatible, what exactly does that mean and is it hard to achieve? For example, wordpress is unicode compatible, but phpBB is not.
View Replies !
Unicode Support - Using MySQL 4.1.7 Collation Utf8 And Char Set Utf8-general_ci
Subject: We have some problem with utf-8 encoded characters in PHP. Using MySQL 4.1.7 collation utf8 and char set utf8-general_ci, we are storing German, French, Spanish and turkey, Nederland’s etc.. Characters, those special characters are storing properly in MySQL. But when extracting those characters using PHP into variable and want to replace special characters with relevant Umlaut’s, PHP unable to recognize the Special characters. Please let me know reason, why PHP 4.3.11 does not support utf8 8-bit characters?? How do I achieve the replace functionality with utf8 characters in PHP.
View Replies !
MySQL 5.0, FULL-TEXT Indexing And Search Arabic Data, Unicode
MySQL 4.0, FULL-TEXT Indexing and Search Arabic Data, Unicode [This version has a couple subtle edits from the orginial I posted on mailing.database.myodbc - I'm cross posting here on this topic/subject related newsgroup] I was wondering if anybody has experienced the same issues challenges I'm experiencing I'll describe shortly. Once resolved some fascinating and powerful multi-lingual apps incorporating non-English/latin character sets can be realized by many developers. I have a Unicode utf8 English - Arabic - Hebrew - Greek (and several other languages) database in Microsoft Excel. I KNOW that it is Unicode utf8 data because MySQL tells me it recognizes the encoding as such but not in the context I want. Allow me to explain ... I can search the Unicode utf8 encoding with no problem in Excel. While in Excel I highlight a complete word or a partial string of an Arabic word copy it to the clipboard (i.e. memory). I then do a find and the process is the same successful result as if it was an English string. MySQL 5.0 is supposed to handle Unicode utf8 I created a MySQL database I named: languages CREATE DATABASE languages ; and I implemented the following command on a MySQL command prompt: ALTER DATABASE languages DEFAULT CHARACTER SET utf8; No problem (so far) MySQL seemingly recognized utf8 and accepted it. My understanding is with the ALTER command the tables I create against languages will be utf8. I now created a table I named mainlang which denotes it will be the main table for my languages. mysql>CREATE TABLE mainlang ->( ->langNumID varchar(30), ->colB varchar(30), ->colC varchar(30), ->primary key (langNumID, colB) ->); Again so far no problem: Table successfully created. My third column 'colC' is where the Unicode data will be stored. I now attempt to import the database from my Excel file into my MySQL database as follows: mysql>load data infile 'c:arabicdictionary.csv' ->into table mainlang ->fields terminated by ',' ->lines terminated by ' ' ->(langNumID, colB, colC); ERROR 1406 (22001): Data too long for 'colC' at row 1 So what to do? I did a search and found other people seemingly had the same problem and someone suggested: ALTER DATABASE languages DEFAULT CHARACTER SET cp1250; I dropped mainlang, recreated it, redid the load and Lo and behold ... it seemed to work. No Data too long error occurred and when I did the following query: mysql>select langNumID, colB, colC ->from mainlang ->where colB = ��' I see colA have a correct numeric value, colB a correct numeric value (4994) and for colC a string of unintelligible characters with diacritical marks, oomlats etc. which I know is the cp1250 encoding interpretation of the Unicode utf8 data which is similarly unintelligible in its own regard. Now what I try is: do a copy of the obscure colC cp1250 character string into the clipboard/memory and then do the following tweak on the original select statement to see if I can search on the (now) cp1250 character string: mysql>select langNumID, colB, colC ->from mainlang ->where colc = 'paste of the cp1250 character string' The computer would not allow a paste unless I pressed the escape key. On initiating this select command I got an empty set (no match) My questions are: Has anyone been successful creating a Unicode utf8 MySQL database that accepts Arabic? If yes, how did you get around or not encounter the Data too long issue? Have you tried the cp1250 (or cp1251 - same mechanics same results) work around as I have? Are you able to search the cp1250 character string (my colC)? If yes, how did you successfully manage to do it? Lastly, if I take the cp1250 encoded string and paste it into Excel ... I can string search the cp1250 encoding with no problem. Also, here's how I know my Unicode utf-8 data is correct apart from my own manual cross-referencing and being recognized by MySQL in some respect: When I copy the Unicode utf8 encoding and try to paste it into the select command to see what would happen I get the following error: ERROR 1257 (HY000): Illegal mix of collations (cp1250_general_ci, IMPLICIT) and (utf8_general_ci, COERCIBLE) for operation '=' So what I have here is a situation where MySQL is recognizing Unicode utf8 encoding but not from the respect of packing a table! Go Figure ...
View Replies !
.NET Support In PHP
Any word on current or planned support for .NET in PHP? I remember reading something a while back on php.net but I can’t find anything mentioning it now.
View Replies !
Dbm Support
i have a windows setup where i am trying to use the extension that enables db4 handlers for dbm. my php version is 4.4.6. in my extensions directory i have a couple of dlls (php_db.dll and php_dba.dll) but i don't have php_dbm.dll. how do i go about enabling db4 handling support through dba extension for my version of php.
View Replies !
Does PHP 5.2 Support The <?= Tag?
I've just tried loading an application that I wrote some time ago. Throughout the application I use the <?= php tag. I'm now running PHP 5.2.x and I've noticed that the compiler seems to be ignoring these tags and printing them as text rather than executing the PHP script contained within the tags. Are the tags still supported? Is there some way of enabling/disabling them in php.ini?
View Replies !
XML/XSL Support
I'm am having a realy hard time getting XML/XSL support for PHP5. I'm trying to follow the not so great instructions but it doesn't seem to work. I am using WinXP so it makes things a bit more difficult. I have PHP working with my Apache server and that seems to work fine. But I cannot get the XML/XSL stuff to work. how to do this or any decent instruction on how to do this on WinXP? I'd really like to get this working.
View Replies !
Is There BMP Support In GD
I need to be able to read windows bitmap files (*.bmp) into the GD-functions in order to create a jpg-file from it. Is such a thing possible. I seem te be unable to find the required functions.
View Replies !
DB Support
the web app I'm starting to make must run under windows too. Before it'll be too late, I'd like to know whether the php support to Oracle and SQLServer is robust. Also, does anyone have tried Logicreate? Any opinion about this cms under windows?
View Replies !
GD Support In Php 4.3.11
when i comes to php. I have installed php 4.3.11 using the source code. When installing, I forgot to install the gd support. I am now wondering whether there is a way of installing the gd support without having to reinstall php again.
View Replies !
5-like XML Support In 4
Has anyone thought of developing a library aimed for PHP4 which would give the kind of functionality that PHP5 has when it comes to working with XML (http://www.zend.com/php5/articles/php5-xmlphp.php)? This especially covers SimpleXML (http://www.zend.com/php5/articles/php5-simplexml.php). I would like to start developing using those fabulous features, but the provider we use for most of our clients' apps and sites is still on 4.3.4 and is very slow in updating PHP, so I don't see them switching to 5 any time soon.
View Replies !
SSH Support
So I have a debian box (LAMP), and I want to have PHP-SSH support in there to use SSH functions in PHP. I dont have any idea, what should be the name for apt package for that, ie apt-get install php4-ssh_support_paackage_name. Or is there any well working alternative.
View Replies !
Site That Support WAP
Hi, all With PHP is it possible to build a site that support WAP? How to do it. What kind of technology needed to build it? Can anyone here tell me where I can find the resource?
View Replies !
Imagemagick & GD Support
I'm looking to create a script to resize images when they are uploaded to my site. I have been reading alot of info on these forums and it looks like the best option is Imagemagick. I'm running a Windows XP web server and I can't find the .exe file anywhere on the ftp list of downlaods. Can someone point me in the right direction. Evenually I will need to find out if my service provide can support imagemagick or GD. Could someone please tell me what version of PHP you need to have to use GD?
View Replies !
My Server Don't Support PHP, What Do I Do!
G'day, My server does not support PHP is there anything I can do! Currently I am trying to learn PHP offline, I have apache and PHP4 installed and it is working ok on my computer, but what can I do about my internet sevice provider besides get a new one.
View Replies !
No MySQL Support With PHP On RH 8
I'm using Redhat 8.0. Apache, PHP and MySQL were installed as part of the default installation. If I try to access MySQL from PHP with mysql_connect(), I get error messages referring to undefined functions. This generally indicates that PHP was compiled without MySQL support. I know how to set up MySQL support when installing from a tarball, but since PHP was installed from an RPM, I'd prefer to keep it this way, as RH tends to have wildly different ideas about file paths to standard installations (not to mention dependency issues). I was going to ask if there is any way of specifying the same paths with RPM that you normally specify when you do a tarball installation. However, when I look at the data from phpinfo(), it looks like everything is set up correctly - MySQL is enabled, the path to apxs is set, etc. But I still can't use any db functions. I've upgraded all of the above rpms just to make sure no dependencies were missed out, but with no success.
View Replies !
What Is A GD Libary - XBM Support?
I was trying to install a php script and everything was going well until i got a message saying: Checking currently installed GD library ... XBM Support required! And it will not let me install the script without the GD library. I am installing this on a hosting plan i have with a pretty big company. Is there a way i can install GD library or is this something they need to do.
View Replies !
MySql Support In PHP 5.x
According to documentation on PHP site, MySql support is not built in to the v. 5.x Windows binaries posted on the site. Does anyone know where to get PHP 5.x Windows binaries with MySql support turned on? I'd rather not have to rebuild the product.
View Replies !
Zend Support Is Really Bad.
just wanted to share my experiences with Zend "the php company". I decided to do the test drive of the Enterprise grade developer studio. Big mistake![color=blue] >From day one I had nothing but problems.[/color] After realizing that something terrible had happened to my webserver during the install process, I figured WTF maybe I did something wrong. I wiped my hard drive and started again, this time using the Apache/MySQL/PHP that comes with it, rather than pointing it to my own. Same result, but this time I realized the installer had fubared some scripts and locations. It also missed a few permissions that it should have set. I tracked them down, repointed some scripts to the right sockets, and I was off. At that point I decided to install the Developer Studio Client on my workstation. That thing just crapped out saying it couldn't find some libraries. So I created a support ticket to ask what I should do. They kindly pointed me to an obscure knowledge base article, that didn't appear when searching ANY of the keyword errors. This article told me, that I needed to hexedit the installer, then after it installed I had to hexedit the ZDE binary! What the hell kind of installer requires you to hexedit it, before it can work? Furthermore the article claimed the binary was in a place that didn't exist, so I had to updatedb and do a search on the filename, cross my fingers and hope against hope I had picked the right one. Fortunately I did. After I installed the client, I decided to double check developer studio server, and make sure everything was going fine. Thats when I ran into this error. "ini_modifier error: ini_modifier was not set" It was the sole content on EVERY page! I created a new support ticket asking what it meant. They emailed me asking me to send them a file generated by thier troubleshooting utility. So I ran the utility, and sent them the file. Another day passes by, this time they ask for access to the server. I give them the access they request and the password. It's now been a week. I have updated the ticket daily asking if anything has been done. They are completely silent. Tonight I decided I had enough, told them thanks for showing me what it must be like to be a real paying customer, and asked them to close the ticket. I'll watch and wait and see how long it is until they get back with me, or close the ticket. And to add insult to injury, when I emailed my sales person who said in his initial email to me, that he would be happy to answer any questions I may have, etc and so forth. I got my message back in seconds, stating that the email address was incorrect, the email was sent to mark@zend.com same as the letter was sent from, same as he said was his email! He's supposed to be the Director of Inside Sales, but it appears in the 5 days I took to evaluate the product he has been fired, or re-assigned or something. Ok well I'm not out anything but a lot of my time, however I just wanted to warn any developers considering Zend products, that they didn't care about me when I was supposed to be evaluating the enterprise grade product.
View Replies !
GD Support For Both GIF And JPEG
I want to know it it's possible to have both GIF and JPEG support in one PHP installation. Right now I want JPEG support for an online photo gallery program I'm working on (I've currently got the GD library between v.1.3 and v.1.6.1 which has GIF support but not JPEG support), but I'm afraid that if I install a newer version of GD (which doesn't have support for GIF due to the Unisys patent problem) and I want GIF support later on, I won't be able to have GIF support, or get it again, because the old GD ibrary with GIF support isn't available. I have full access to the machine, so installing libraries isn't a problem. Does anyone have any ideas how to do this? I've read that it's "difficult, but not impossible, to have support for both GIF and JPEG in one PHP installation", but how would I go about doing it?
View Replies !
How To Compile PHP With GD Support?
I am tryin to compile PHP with GD support: # cd php-4.3.11 # ./configure --with-gd=/usr/local/src/gd-2.0.33/ --with-png-dir=/usr/local/src/libpng-1.2.8/ --with-zlib-dir=/usr/local/src/zlib/ --with-jpeg-dir=/usr/local/src/jpeg-6b/ .... checking for GD support... yes checking for the location of libpng... /usr/local/src/libpng-1.2.8/ If configure fails try --with-jpeg-dir=<DIR> configure: error: libpng.(a|so) not found. why libpng.(a|so) not found ? # ls -l /usr/local/src/libpng-1.2.8/libpng.a -rw-r--r-- 1 root wheel 160448 May 31 12:48 /usr/local/src/libpng-1.2.8/libpng.a What is my mistake? Where to read about correct way for installing php + gd + libjpeg + libpng ?
View Replies !
Ldap Support
I would like to install ldap support on php! Steps : 1. php.ini : extension_dir = "c:php" 2. copy file c:phpextensionphp_ldap.dll to c:php 2. delete ; before extension=php_ldap.dll And the message returned when i'm restarting Apache Web server is : "Unable to find module c:phpphp_ldap.dll"
View Replies !
Gd Don't Support FreeType
If you php support gd .you'll see FreeType Support enabled in your phpinfo; but i can't see. there are message that i compiled 1) Install FreeType (2.1.1) ./configure --prefix=/usr/include/freetype2 make make install 2) Install GD (2.0.33) ./configure --prefix=/usr/include/gd-2.0.33 --with-freetype-dir=/usr/include/freetype2 make make install 3) Compile PHP (4.3.11) ./configure --with-gd-dir=/usr/include/gd-2.0.33 --with-ttf=/usr/include/freetype2 --with-freetype-dir=/usr/include/freetype2 --with-zlib-dir=/usr/lib --with-png-dir=/usr/local --with-jpeg-dir=/usr/local --with-tiff-dir=/usr/local --with-gd-native-ttf --enable-bcmath --enable-shared --enable-static --enable-gd-imgstrttf make make install 4)Compile httpd 2.0.58 ./configure --enable-module=so make make install that are no error. but i can't see FreeType Support enabled in my phpinfo??
View Replies !
PHP With JPEG Support?
I seem to have a real problem in building PHP with JPEG support. I've tried the following options to PHP's configure: ./configure --with-mysql=/usr/local/mysql/ --with-gd=../gd-1.8.4 --with-jpeg-dir=../pdflib-3.03 --with-apache=../apache_1.3.19 --enable-trackvars After finishing the installation if I try to do any image function that needs JPEG support it get the error message: "No JPEG support in this PHP build". What am I missing here?
View Replies !
PHP With OCI8 Support
I have run PHP 4.0.0, apache and MySQL successfully on my RedHat 6.2 for a while, but my boss wanted me to develop for Oracle8 R2 instead. After I finally got it to work I compiled PHP 4.0.0 with ./configure --with-oci8 --with-apxs. Everything compiles just fine or at least without any errors, and even when I try to restart apache it looks like everything is working like it is supposed to. BUT IT ISN'T WORKING AT ALL!!!! The httpd process dies right after it starts.
View Replies !
Enabling GD Support
how to create graphics using PHP. i tried calling a function: <? $image = imagecreate($ButtonWidth, $ButtonHeight);?> when i trie to call the 'imagecreate()' function i am getting an error, something to the effect of "function not defined". how do i fix this? is this because my current configuration of PHP does not support the GD library?
View Replies !
About PHP & XSLT 2.0 Support
I was trying to write some XSLT transformation from XML to WML and XHTML. I want to transform attached news.xml into 2 different HTML files containing value of full tag. Then I want to Hyperlink them in another HTML page based on their story id attribute ( ex. n1.html, n2.html ). So far I know I have to use XSLT 2.0 for such operation. I donno if anyone know any trick to do that using XSLT 1.0. In Both case I want to know - 1. Is it possible to do it using XSLT 1.0 & PHP 4.4 with any XSLT extensions ? If yes pls provide some sample code snippet & XSLT extensions I need to use it 2. If not then Is there any extension ( Other than Sablotron, as in support only XSLT 1.0 ) using which I can perform the previous transformation ?
View Replies !
PHP5 - GIF And TTF Support
I'm writing text on a GIF with a custom TTF font on my dev server (Apache/PHP4 with bundled GD). It works nice. On the production serveur (Mandrake: Apache2/PHP5) error happens : Call to undefined function imagettfbbox() Is there a special trick or release to be abble to use GIF r/w support and True Type Font support too ?
View Replies !
PHP And Oracle Support
I need to access an Oracle DB from some PHP pages, so I need to compile my PHP with Oracle support. So, the point is: Do I have to download the whole 1.7GB stuff? Is there anything containing only headers ald libs needed to compile? Any other solution? Or am I just on the wrong path?
View Replies !
TTF Support In PHP Build
i'm having trouble trying to use any of the TTF function calls. in my php info i have the following. './configure' '--with-informix' '--with-apxs' '--with-config-file-path=/etc/httpd/conf' '--with-gd' '--with-ttf' '--enable-gd-native-ttf' what might be going wrong here? this is running on a redhat install.
View Replies !
Gd2 With Gif Support In Php4
I'm trying to install gd2 with gif-support as an extension with php4. I compiled the patched version of gd2 - fine. I compiled php4 with gd=shared - fine. I installed it and restarted apache and I get: undefined symbol: gdImagePngCtx I recompiled php4 and included gd and everything works fine. But as soon as I compile gd2 as shared things mess up. I've searched 2 days for a solution, but didn't find anything.
View Replies !
How To Enable ZIP Support In PHP 5.1.6?
My host updated PHP to 5.1.6 and now zip functions like zip_open do not work, it says undefined function or something similar, "zip enabled" doesn't show on phpinfo() eider. Is there an easyer way to use the zip functions? Maybe by downloading and including the libraries by include lines? Or only by recompiling the php? (this one sounds complicated).
View Replies !
Multilingual Support
I need to implement multilingual support for some scripts I've made. My question is which is the best way regarding the execution speed ? Should I use define(x,y) or $lang['x']=y ? Or this is not relevant ?
View Replies !
Host Support For PHP 4.4.2
I want to know your views although I can pretty much guess what they will be. My present web host only supports PHP version 4.4.2, although they do support Perl too. This means however that after learning PHP 5.1.4 I then had to take a step back over and change to 4.4.2. What are your thoughts on this? am I in the stone age coding in PHP v. 4.4.2? Is it time for a new FREE host?
View Replies !
Support For BerkeleyDB 4.2
I am wondering if it's possible to build PHP to support the newer Berkeley DB 4.2 instead of 4.0. I have libdb-4.2.so installed in a none system directory: /home/me/db/lib/libdb-4.2.so so when I configure, I do: ../configure --prefix=/home/me/php --with-apxs2=/home/me/apache/bin/apxs --enabled-dba=shared --with-db4=/home/me/db/lib configure ran without problem so I did a make and make install afterward. Again, there is no error. However, the dba.so built is still linked against the older version of Berkeley DB: $ ldd /home/me/php/lib/php/extension/no-debug-non-zts-20020429/dba.so libdb-4.0.so => /lib/libdb-4.0.so .... as if it's ignoring the --with-db4[=DIR] configuration flag. Why is that? How do I build PHP to support the newer version of BerkeleyDB?
View Replies !
OCI8 Support
How can I get OCI8 Linux support w/o a full Oracle BD install? I installed Oracle Instant Client thinking that would do it. It did not.
View Replies !
Php With IMAP Support
I am getting an error Call to undefined function: imap_open(). so i did some google research and it says you have to compile php with imap support. So i looked at my phpinfo() and it shows that it was compiled with --with-imap-ssl=../imap-2001a . I guess the latest version is 2001e so is 2001a to old to support imap_open() or am i missing something else?
View Replies !
Pdf Creation - UTF-8 Support
I'm using the PHP Pdf Creation developed by R&OS Ltd (http:// www.ros.co.nz/pdf). Does anyone know of a way to set the default encoding to UTF-8? As of now it's set to ANSI which is a western encoder and does not support languages like Russian, Arabic, Chinese, etc.
View Replies !
When Will Php Support Alias Name?
When using c++, we could do: using abc = xxx.yyy; // am i right? When using python we could do: import abc.efg as efg When will php support: class My_Best_Class { } define('MyClass', 'My_Best_Class'); $o = new MyClass; // use MyClass as aliasname of My_Best_Class?
View Replies !
Does MySQL 4.1 Support
I have been reading a book published in 2001 about database design. It has a little section on features that MySQL does not support. My question is, now in 2005, Does MySQL 4.1 support 'Referential integrity', 'Transactions' and 'Stored procedures' ?
View Replies !
Java Support
i wana know regarding java support for php5.02. i tried it and i'm able to compile successfully without error but php_java.so or java.so file is not creating.
View Replies !
MySQL And PHP Support
I don't understand why so few free services offer MySQL databases, and when then do, it's usually limited to one. I mean, plenty of free sites are willing to give away up to 1 GB of space for all kinds of files (images especially), but why can't they offer more than one simple table? Is it because there is just a lot less demand, or maybe because they'd like to present it as a special added feature just for show (like domain parking, which can be done by anyone). Or am I just completely missing the point?
View Replies !
PHP GD Gif Support Enabled
My GD conf is as follws. You will notice that JPG and PNG say JPG Support, or PNG support. whereas GIF says GIF read support. Does that mean the GD cannot manipulate gifs? or it can but setting needs changing? Reason I ask is we have a program that manipulates a gif and after a GD update it says GIF not supporting in configuration. We do not have the old configuration. GD Support enabled GD Version bundled (2.0.12 compatible) FreeType Support enabled FreeType Linkage with freetype GIF Read Support enabled JPG Support enabled PNG Support enabled WBMP Support enabled XBM Support enabled
View Replies !
WAMP GD Support
I'm using GD functions for the 1st time. After struggling for several hours with the following: Call to undefined function: imagesx() and the same error with other GD functions I started to suspect GD was not installed. I'm running WAMP 5 which installed PHP 5.0.16-nt . I thought I'd read some place that PHP 5x came with GD. <?php echo '<pre><br />' var_dump(gd_info()); ?> Just returns another "Call to undefined function" error. Does anyone know if there is a GD patch or do I have install another version of PHP?
View Replies !
|