[PHP] xslt encoding problem
Howdy all. I am trying to use the new XSLT translation stuff in 4.1.1 with Win2k and IIS running ISAPI. When I try to run even the simplest example, I get the following error: >>>>>>>>>>>>> unknown encoding '' 62 <<<<<<<<<<<<< I have tried specifying the encoding in both the XML and XSL files, and even tried both "UTF-8" and "ISO-8859-1". Has anyone seen this? I am pretty much stuck and in need of at least a suggestion. Below are the following xml, xsl, and php source files I am using. t1.xml >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Mike [EMAIL PROTECTED] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> t1.xsl >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> http://www.w3.org/1999/XSL/Transform";> Mike's php xml test >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> t1.php >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> \n"); } if(is_file($xslf)){ print("XSL Exists\n"); } $result = xslt_process($xsl_parser,$xmlf,$xslf,$outf); if ($result) { echo "$result"; } else { $err1 = xslt_error($xsl_parser); $err2 = xslt_errno($xsl_parser); echo "Bummer. "; echo "$err1 "; echo "$err2 "; } xslt_free($xsl_parser); ?> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> I robbed some of my test code from the example Christian posted a couple days ago. Thanks Christian. // Mike Eynon // www.MikeEynon.com // 1366 Bulb Ave // Santa Cruz, CA 95062 // [EMAIL PROTECTED] // 831.588.2388 (cell) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Can't display PNG images
I have also had some weird problems with PNGs and Netscape. Actually, most appear fine, but PNGs that specify a transparent color do weird things. As well, I have have seen problems with Netscape not loading all images that are created at runtime. Have not tracked this down, but it appears to be a Netscape only problem. // Mike Eynon // www.MikeEynon.com // 1366 Bulb Ave. // Santa Cruz, CA 95062 // 831.588.2388 -Original Message- From: Narvaez, Teresa [mailto:[EMAIL PROTECTED]] Sent: Monday, March 11, 2002 5:17 PM To: [EMAIL PROTECTED] Subject: [PHP] Can't display PNG images Hello, Background info: I'm running o PHP 4.1.1 on a linux server kernel(2.2.16). o Using Netscape Communicator 4.75 o Compiled and installed the gd(1.8.4) library Problem(2 problems): 1.- The following code won't display an image(I get an icon of some type of piece of paper). 2.- The configure Command from phpinfo() is different than what I actually typed at the command line. Also, phpinfo() area for GD does not show PNG or JPEG support. why? from phpinfo() -- './configure' '--with-mysql' '--with-apxs=/var/apache/bin/apxs' '--with-gd=/home/builder/downloads/untarred/gd-1.8.4' '--enable-sockets' '--enable-calendar' '--enable-ftp' '--enable-trans-sid' What I typed at the command line: - ./configure --with-mysql --with-apxs=/var/apache/bin/apxs --with-gd=/home/builder/downloads/untarred/gd-1.8.4 --with-png-dir=/usr/lib --enable-gd-native-ttf --with-ttf --with-jpeg-dir=/home/builder/downloads/untarred/jpeg-6b --with-t1lib=/home/builder/downloads/untarred/t1lib-1.3.1 --enable-sockets --with-zlib-dir --with-xpm-dir --enable-calendar --enable-ftp --enable-trans-sid OUTPUT from phpinfo() --- GD Supportenabled GD Version1.6.2 or higher WBMP Support enabled I would really appretiate any ideas you could give me. Thanks in advance! -Teresa -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Sablotron and LINUX trouble
Howdy all. I have got the Sablotron XSLT extension working in Windows, but now am having trouble getting it to work on my LINUX servers. I have tried reading http://www.devshed.com/Server_Side/XML/XSLTrans/print to find the answers (which I got from earlier posts), but it doesn't seem to give me what I need. I have downloaded the latest 4.1.2 php from php.net, which is supposed to contain the Sablotron stuff. When I configure before the build with the line: ./configure' '--with-mysql' '--with-gd' '--with-xslt-sablot' '--enable-xslt-sablot' '--with-xslt' '--with-apxs=/usr/local/apache/bin/apxs I get no errors. I then make without errors, and finally 'make install' without errors. BUT! When I do a phpinfo(), I do not see the xslt extension being loaded, and when I make a call to xslt_create(), I get the following error: Fatal error: Call to undefined function: xslt_create() in /usr/local/apache/htdocs/help/index.php on line 45 When I go and look into the config.status file, I see the following: checking whether to enable xslt support... no checking whether to enable the XSLT Sablotron backend... yes checking libexpat dir for Sablotron XSL support... no When I try to just have "--enable-xslt", I get an error in the configure script: configure: error: not found. Please re-install the Sablotron distribution What am I doing wrong? // Mike Eynon // www.MikeEynon.com // 1366 Bulb Ave // Santa Cruz, CA 95062 // [EMAIL PROTECTED] // 831.588.2388 (cell) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] RE: [PHP-WIN] issue with PHP_XSLT?
Not sure if this will help you or not, but here are a few words of wisdom that helped me get past problems in the Sablotron extension. If you wish to use files that are not in your php root, you have to add the string: "file://" before each of your filenames. This will keep Sablotron happy in both LINUX and Windows. // Mike Eynon // www.MikeEynon.com // 1366 Bulb Ave // Santa Cruz, CA 95062 // [EMAIL PROTECTED] // 831.588.2388 (cell) -Original Message- From: Phillip Fox [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 21, 2002 12:56 PM To: Ben Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [PHP-WIN] issue with PHP_XSLT? On Thu, 21 Mar 2002, Ben wrote: > why does php_xslt.dll expect the files to be in PHP root? how can i change > this to be able to pick up files from the document root itself? > It sounds to me like you have a diffirent problem than the one that I had on my server, but I think that the same solution will work for you too. Check out the code and comments on this page: http://bugs.php.net/bug.php?id=14965 The page has details on the proper format for paths to pass to the processor and code to read files and pass their content to the processor as arguments. HTH! --> Phillip Fox -- [EMAIL PROTECTED] 405.773.WORX -- 1.888.772.WORX -- http://www.TheWorxCo.Net/ -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Forcing little endian with pack("d");
I have looked through the pack code in php-4.1.2. There appear to be no other options other than what is documented on the php.net pack function page. There appears to be no way of specifying endian-ness for floats or doubles using pack. They are copied to the output stream using a simple memcpy. I would need more details on what you are doing to be sure, but, is the format something you can worry about on the unpacking side? Usually, it is best to marshall the data in the native format of the machine doing the marshalling, and then convert the data (if needed) on the machine you are un-marshalling on. This usually makes debugging a whole heck of a lot easier. All you will have to do is store the endian-ness of the machine you are packing on with the data being packed. Of course, this only works if you are not unpacking with PHP... The code in pack.c for the pack function is pretty dang simple. It wouldn't take more than an hour or so to cut and paste a few sections of code to add the options you need. Could be good to have in future versions of php. Good Luck. // Mike Eynon // www.MikeEynon.com // 1366 Bulb Ave. // Santa Cruz, CA 95062 // 831.588.2388 -Original Message- From: Mika Tuupola [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 20, 2002 3:08 PM To: [EMAIL PROTECTED] Subject: [PHP] Forcing little endian with pack("d"); http://www.php.net/manual/en/function.pack.php The manual page describes format string "d" as: d double (machine dependent size and representation). Is there an easy way of forcing the binary to be representated little endian even with hosts which are big endian (undocumented format string for example?). -- Mika Tuupola http://www.appelsiini.net/~tuupola/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php