[PHP] PHP with Access DB without ODBC
Hello, how can i connect php with an access db. I need to do it without use ODBC. Thanks, Juan Torres. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP + XSL-FO
Hello, can PHP parser a XML file with a XSL-FO file to generate a PDF file? Greetings. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: XSLT bug?
Try this: xsl:if test=position() #60; $start Good Luck. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: PHP class for XSL transformations?
Hi, you try with XMLDOM Functions. You look this function: DomXsltStylesheet-process -- Applies the XSLT-Transformation on a DomDocument Object Good luck! Juan Torres. [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello all, I'm looking for an alternative to PHP's XSLT extension. Does anyone know of a good PHP class capable of performing XSL transformations? Thanks for your time, Erik -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PDF - Coords
Thanks very much! You are very nice. If you want to practise your spanish, you can write me when you want. Muchos saludos desde España. Hasta pronto. Juan Torres. Jyry Kuukkanen [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Thu, 19 Feb 2004, Juan Torres wrote: ¡Hola! Excuse me, but my english is bad :(. My problem is: When I'm writting text in a PDF document, I want to know the current position, or next position of next text to insert. I want to know when I'm near the finish page. ¡Hola! There is no need nor a reason to find out current position using PDF functions. If you are outputting lines after lines, you need to keep track of the y-position by yourself. The following simple and ugly piece of code should demostrate the logic: define(MAX_Y_POS, 300); define(ROW_HEIGHT, 4); $y_pos = 0; foreach ($many_rows as $row) { if ($y_pos MAX_Y_POS) { makePageChange(); $y_pos = 0; }; // if $y_pos += ROW_HEIGHT; printRow($row); }; // foreach If you use pdflib, you might want to take a look at sopdf.php - it's available from dataxi.sourceforge.net. Get the latest version of solib.tar.gz - that includes sopdf.php PD: Do you know Spain or spanish language? ;) ¡Si! Estudio español - este es segundo año, bastante listo :-) Ahora leo un libro de Montalbán, de Pepe Carvalho :-))) -- Regards, --Jyry C|:-(C|:-/C|8-OC|8-/C|:-( -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] headers_list function
Hi, how can I use 'header_list()' function. My manual says: Might be only in CVS. What is CVS? How do I install CVS? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: mail()
thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PDF
Hi, How can I write special characters (á, ö, ñ, ç,...) in a pdf document? I'm using pdflib. Greetings. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PDF
Thank you -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] XSL-FO
Hi, Does PHP allow parser a XML with a XSL-FO and create a PDF? Greetings. Juan Torres. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PDF - Coords
Hi, How can I know the currents coordenades of my pdf document? Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PDF - Coords
¡Hola! Excuse me, but my english is bad :(. My problem is: When I'm writting text in a PDF document, I want to know the current position, or next position of next text to insert. I want to know when I'm near the finish page. I hope that you can help me. Thank you! Juan Torres. PD: Do you know Spain or spanish language? ;) ¹Hola! Maybe Señor Torres wanted to know the current position of drawing text or an image, that is not really possible - as far as I know - in producing PDF document. Juan, could you specify the actual problem you are facing? That might lead you to get the answer for your question. -- Hienoja terveisiä --Jyry C|:-(C|:-/C|8-OC|8-/C|:-( -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] CDONTS Object
Hello, I'm trying send emails from PHP with IIS (form Win32). With ASP, I used CDONTS component. How can I use CDONTS component from PHP? Thanks very much. Juan Torres. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] ODBC with SQL Server
Hi, Functions mssql_* and odbc_* don't allow write/read unicode fields. But ODBTP Extension allows it. The url is: http://odbtp.sourceforge.net/. Greetings, Juan Torres. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] mail()
Hi, I have a problem with mail() function. I'm using PHP with Windows 2000 Professional and Internet Information Server 5.0. My php code is: mail([EMAIL PROTECTED], Prueba Envio Email PHP, Linea 1\nLinea 2\nLinea 3); And my browser shows: Warning: mail(): SMTP server response: 550 5.7.1 Unable to relay for [EMAIL PROTECTED] in c:\inetpub\wwwroot\projects_php\testing\email\default.php on line 21 Why? Can anybody help me? Thanks! Juan Torres. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] ODBC with SQL Server
Hello, I have a connectoin ODBC with a SQL Server database. A table has a field of type 'nvarchar'. This field contains japanese characters. How can I read these japanese characteres? When I read (with: select name from data) only read '?' character. Thaks very much. Juan Torres. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Problem with SQL Server.
Hello, I'm working with a DB SQL Server. This DB has a table with Japanese characters. When I read a field (with Japanese characters) with function mssql_fetch_array(), always it return characters '?'. If I put 'print((Japanese characters));', these Japanese characters are shown correctly. My PHP file has follow code to work with Japanese characters: mb_internal_encoding(EUC-JP); mb_http_output(EUC-JP); mb_http_input(EUC-JP); mb_language(Japanese); My question: How can I show correctly the Japanese characters from a SQL Server DataBase? Thanks very much! Juan Torres. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Problem with XSLT Sablotron
Hi, I have got this XML file: !-- ?xml version=1.0 encoding=UTF-16? DOC PARAtexto 1/PARA PARAtexto 2/PARA PARAtexto 3/PARA PARAtexto 4/PARA PARAtexto 5/PARA /DOC -- and this XSL file: !-- ?xml version=1.0? xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xmlns:user=urn:star-xslt-lib-namespace xmlns:msxsl=urn:schemas-microsoft-com:xslt xsl:output method=html encoding=UTF-8 indent=yes/ xsl:template match=/ html head titlexsl/title /head body xsl:apply-templates select=DOC / /body /html /xsl:template xsl:template match=DOC table border=1 cellspacing=0 cellpadding=0 tr td align=center valign=top b xsl:value-of select=user:EscapeURL('DOC')/ /b /td /tr tr td xsl:apply-templates select=PARA/ /td /tr /table /xsl:template xsl:template match=PARA table border=0 cellspacing=0 cellpadding=0 tr td align=center valign=top i PARA: /i /td td style=color: green xsl:value-of select=./ /td /tr /table /xsl:template xsl:template match=text() xsl:copy-of select=./ /xsl:template msxsl:script language=JScript implements-prefix=user ![CDATA[ function EscapeURL(selection) { if (selection(0) == null) return ; else if (selection(0).hasChildNodes()) return escape(selection(0).childNodes(0).nodeTypedValue); else return escape(selection(0).nodeTypedValue); } ]] /msxsl:script /xsl:stylesheet -- finally, my PHP file is: !-- -- ? // Allocate a new XSLT processor $xh = xslt_create(); // Process the document if ($result = xslt_process($xh, 'projects_php/testing/sample.xml', 'projects_php/testing/sample.xsl')) { echo ($result); } else { echo Sorry, sample.xml could not be transformed by sample.xsl into; echo result.xml the reason is that . xslt_error($xh) . and the ; echo error code is . xslt_errno($xh); } xslt_free($xh); ? -- When I run my php file, this error message is shown: Warning: Sablotron error on line 27: function 'user:EscapeURL' not supported in c:\inetpub\wwwroot\projects_php\testing\test_xsl.php on line 7 Sorry, sample.xml could not be transformed by sample.xsl into result.xml the reason is that function 'user:EscapeURL' not supported and the error code is 51 Can anybody help me? I cann't solve this error. Thanks very much! Juan Torres. PS: Excuse me, my english is bad :( -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php