[PHP] xml to array

2006-02-03 Thread Brian V Bonini
AD_DATA SESSION_INFO FIRST_NAMEJoe/FIRST_NAME LAST_NAMEShmoe/LAST_NAME TEST_KEY foofoo/foo barbar/bar /TEST_KEY OPTIONS 0DNR/0 1OPT/1 2FOO/2 3BAR/3 4CWS/4 5AVS/5 /OPTIONS HEIGHT72/HEIGHT WEIGHT96Kg/WEIGHT /SESSION_INFO PAA logCount0/logCount etc... $xml_data = $xml; $parser =

Re: [PHP] xml to array

2006-02-03 Thread Richard Lynch
I've got my money on the XML spec REQUIRING an alphabetic start to tagnames, and subsequent characters can be alphanumeric... In other words, it doesn't work because 0 is not a valid XML tag. You'll have to find and read the XML spec to be 100% certain. http://info.com/XML+specification If I'm

Re: [PHP] XML and htmlentities conditionally?

2006-01-29 Thread Brian V Bonini
On Sun, 2006-01-29 at 02:01, Adam Hubscher wrote: I have a block of XML that looks as follows: namelt;*_~_*gt; Røyken VGS lt;*_~_*gt;/name My question is, can I in any way efficiently (i -stress- efficiently, if anyone read my previous XML and special characters post its a rather large

Re: [PHP] XML and htmlentities conditionally?

2006-01-29 Thread Adam Hubscher
Brian V Bonini wrote: On Sun, 2006-01-29 at 02:01, Adam Hubscher wrote: I have a block of XML that looks as follows: namelt;*_~_*gt; Røyken VGS lt;*_~_*gt;/name My question is, can I in any way efficiently (i -stress- efficiently, if anyone read my previous XML and special characters

Re: [PHP] XML and special characters

2006-01-28 Thread Adam Hubscher
Steve Clay wrote: Sunday, January 22, 2006, 10:10:54 PM, Adam Hubscher wrote: ee dee da da da? sect;eth; -- those that look like html entities are the represented characters. I was mistaken, they are html entities, Can you show us a small chunk of this XML that throws errors? You said

[PHP] XML and htmlentities conditionally?

2006-01-28 Thread Adam Hubscher
I have a block of XML that looks as follows: namelt;*_~_*gt; Røyken VGS lt;*_~_*gt;/name Now, if I run that block of XML through htmlentities, I will get the following: name*_!_* Røyken VGS *_~_*/name XML parsers will return a problem, as there is both an unclosed tag and an invalid tag,

[PHP] XML Session serializer - XMLDBX

2006-01-26 Thread Mark
Well, last week or so I noticed that Squirrelmail's session array contained recursive variable references and caused my serializer to crash on infinite recursion. Oh well, that's life. I found the time to add a variable stack for encoding to XML. If a variable is is_ref or has a refcount greater

[PHP] XML-RPC and comment spam...

2006-01-24 Thread Russell Jones
I am trying to set up a personal blog of mine with the new LinkSleeve.orgXML-RPC link spam service, but I dont know the firs thing about PHP and XML-RPC. I did read that there are some problems with security, though, with the popular PHP XML-RPC classes. Have these been fixed and which would you

[PHP] XML-RPC questions...

2006-01-24 Thread Russell Jones
I have read recently that there are some issues with XML-RPC and security in PHP classes. Have these been fixed? What would you recommend? I am looking to create a LinkSleeve filter for my blog and it requires XML-RPC. rjonesx

Re[2]: [PHP] XML and special characters

2006-01-23 Thread Steve Clay
Sunday, January 22, 2006, 10:10:54 PM, Adam Hubscher wrote: ee dee da da da? sect;eth; -- those that look like html entities are the represented characters. I was mistaken, they are html entities, Can you show us a small chunk of this XML that throws errors? You said you've tried various

[PHP] XML and special characters

2006-01-22 Thread Adam Hubscher
I've been having a tough time with parsing XML files and special characters. I have attempted every applicable engine, last try SAX, to attempt at parsing a (rather large, 17.8mb) xml file. The problem I hit, is when it hits a UTF8 encoded character. I've attempted at decoded the file before

Re: [PHP] XML and special characters

2006-01-22 Thread tedd
I've been having a tough time with parsing XML files and special characters. -snip- Any suggestions as to how I could get around this seemingly impossible road block thats been placed by what seems to be the xml engines :O.. Adam: I believe that these special character will be with us for

Re: [PHP] XML and special characters

2006-01-22 Thread Adam Hubscher
tedd wrote: I've been having a tough time with parsing XML files and special characters. -snip- Any suggestions as to how I could get around this seemingly impossible road block thats been placed by what seems to be the xml engines :O.. Adam: I believe that these special character will

Re: [PHP] XML and special characters

2006-01-22 Thread Adam Hubscher
Adam Hubscher wrote: tedd wrote: I've been having a tough time with parsing XML files and special characters. -snip- Any suggestions as to how I could get around this seemingly impossible road block thats been placed by what seems to be the xml engines :O.. Adam: I believe that these

Re: [PHP] XML-Request

2006-01-14 Thread Björn Bartels
Hi there, try this as your first output line: $this_output = ?xml version=\1.0\ encoding=\.$_XMLCONFIG[enc-type].\?.; hope that helps... cheers björn Hi, I gotta send an XML request to a server. In the doc it's defined as follows: [request] xs:request xmlns:xs='urn:pinXpressSchema'

[PHP] XML-Request

2006-01-12 Thread Ron Eggler (Paykiosks)
Hi, I gotta send an XML request to a server. In the doc it's defined as follows: [request] xs:request xmlns:xs='urn:pinXpressSchema' version='1.5' langCode='en' DEALERinfo aspName=‘XXX’ dealerName='' posName='1234' posPassword='1234' userName='' userPassword='1234' / purchasePINs

[PHP] XML Session serializer announcement and call for testers

2006-01-05 Thread Mark
One of the problems I have had with the PHP session system is that it does not use a readily usable text format for serializing data. This makes using session data outside of PHP virtually impossible. I looked at the WDDX extension and was not too impressed: it was way too verbose and didn't use

[PHP] XML to PDF

2006-01-02 Thread Binay
Hi ALL My applications requires converting XML file to PDF using PHP. Some surfing on the net revealed that it has to be first transformed to XSLT and then XSL:FO and finally to PDF . But i have no idea as where to start from. Confused and need directions or references to tutorials / resources

Re: [PHP] XML to PDF

2006-01-02 Thread Björn Bartels
Hello, Binay [...]. But i have no idea as where to start from. Confused and need directions or references to tutorials / resources which can shade lights on the inputs required. [...] Try out FPDF at www.fpdf.org . It's quite easy to use and it's highly extendable !!! HAPPY NEW YEAR !!

Re: [PHP] XML-RPC problem with long running times

2005-12-30 Thread Richard Lynch
If you can't get at the PHP internal time-out... First, file a bug report Feature Request and ask for it to be exposed. You won't be the only one who needs it. Second, for the short term, you may be stuck with rolling your own XMLRPC interface, or using one of the others out there as raw PHP

Re: [PHP] XML Reader

2005-12-30 Thread Richard Lynch
the XML, do this: ?php $xml = file_get_contents(http://news.google.com/?output=rss;) or die(Unable to read Google RSS at this time. Please try again later.); ? If you need to get just the headlines, you could do: ?php preg_match_all(/title([^]*)\\/title/sU, $xml, $headlines); var_dump

Re: [PHP] XML Reader

2005-12-29 Thread Silvio Porcellana [tradeOver]
[EMAIL PROTECTED] wrote: Is there any easy php script to run to view an xml file such as new headlines like so: http://news.google.com/?output=rss or can anyone point me in the right direction for good online tutorials or books. You can start here: http://magpierss.sourceforge.net/ Magpie

[PHP] XML-RPC problem with long running times

2005-12-29 Thread Andreas Schlicker
Hi all, I'm using Apache/1.3.33 (Unix), PHP/5.0.3, mod_ssl/2.8.22, OpenSSL/0.9.6a. I wrote a dummy script that is called by a Java program via XML-RPC, waits for some time and replies the start and end times. ?php set_time_limit(500); $xmlServer = xmlrpc_server_create(); function process()

Re: [PHP] XML-RPC problem with long running times

2005-12-29 Thread Andreas Schlicker
Of course, fflusch($log); should be fflush($log); I just found out that $xmlResponse really is empty. However, connection_status() returns 0, so I assume that the script is not interrupted by a timeout. Why does xmlrpc_server_call_method($xmlServer, $xmlRequest, NULL) return nothing if the

[PHP] XML Reader

2005-12-28 Thread [EMAIL PROTECTED]
Is there any easy php script to run to view an xml file such as new headlines like so: http://news.google.com/?output=rss or can anyone point me in the right direction for good online tutorials or books.

[PHP] XML Parser set option

2005-12-20 Thread Amol Hatwar
Hi, The PHP Manual entry for xml_parser_set_option lists an option called: XML_OPTION_SKIP_WHITE. I really couldn't decipher what this option enables or disables. The manual entry itself is a bit terse: Whether to skip values consisting of whitespace characters. Doodling around with it in code

Re: [PHP] XML Parser set option

2005-12-20 Thread ondrej
Amol Hatwar wrote: Hi, The PHP Manual entry for xml_parser_set_option lists an option called: XML_OPTION_SKIP_WHITE. I really couldn't decipher what this option enables or disables. The manual entry itself is a bit terse: Whether to skip values consisting of whitespace characters. Doodling

Re: [PHP] XML Parser set option

2005-12-20 Thread Derek Williams
Amol, Pretty sure that it means the white space after a tag. for example: myName Joe Dempsey/myName or (even worse, with CR) myName Joe Dempsey /myName Amol Hatwar wrote: Hi, The PHP Manual entry for xml_parser_set_option lists an option called: XML_OPTION_SKIP_WHITE. I really

[PHP] XML Parsing german special chars

2005-12-14 Thread Norbert Wenzel
I did some easy xml parsing on the last.fm[1] recent tracklist. I do read in all the tracks and output them encoded with htmlentities(). A lot of german special chars like the Ä (Auml;) are transfered to strange followings of an A with any sort of available accent. But it isn't replaced by

Re: [PHP] xml-load via dom and http authentication

2005-12-03 Thread Curt Zirzow
On Thu, Dec 01, 2005 at 11:31:45AM -0800, jonathan wrote: i'm loading a dynamically generated xml file like this: $xml=new DomDocument(); $xml-load(menu_render.php?menu_id=$menu_idformat=xml); The problem is that this file is in a directory that requires http authentication (via the

[PHP] xml-rpc and xml-rpci

2005-11-10 Thread Alex Duggan
Hello, What is the future of the xml-rpc client and server functions in php 5.x? I see the old xml-rpc extension is still marked as expirimental and the newer xml-rpci extention in pecl has not been worked on in 8 months and doesn't have server functionality. I am in the process of porting a

Re: [PHP] XML-RPC Error:-32300:transport error - could not open socket

2005-10-28 Thread Dan McCullough
It was the version of class-IXR.php, there was a small bug in that library and the fix had just come out, so it was until I went back and download some updates that it worked. On 10/22/05, Richard Lynch [EMAIL PROTECTED] wrote: On Sat, October 22, 2005 10:19 am, Dan McCullough wrote: I'm

[PHP] XML-RPC Error:-32300:transport error - could not open socket

2005-10-22 Thread Dan McCullough
I'm having any issue finding out why this is happening and how to fix it. Is it a permissions problem between php and the server or something else? Help -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] XML-RPC Error:-32300:transport error - could not open socket

2005-10-22 Thread Torgny Bjers
Dan McCullough wrote: I'm having any issue finding out why this is happening and how to fix it. Is it a permissions problem between php and the server or something else? Help Without looking up this specific error code thoroughly through Google or elsewhere, I would have to ask you to submit

Re: [PHP] XML-RPC Error:-32300:transport error - could not open socket

2005-10-22 Thread Dan McCullough
Tried Google and the guy who created the snippet they had no helpful information about the error. On 10/22/05, Torgny Bjers [EMAIL PROTECTED] wrote: Dan McCullough wrote: I'm having any issue finding out why this is happening and how to fix it. Is it a permissions problem between php and the

Re: [PHP] XML-RPC Error:-32300:transport error - could not open socket

2005-10-22 Thread Richard Lynch
On Sat, October 22, 2005 10:19 am, Dan McCullough wrote: I'm having any issue finding out why this is happening and how to fix it. Is it a permissions problem between php and the server or something else? Help Go to the command line/shell or even, gak, MS-DOS, and type: telnet XYZ 32000

[PHP] xml first special char

2005-09-16 Thread Joerg P
hello, I have some words with german special chars in mysql. When I print those strings direct as xml to the browser, everything seems fine. But there is one 'ä' that makes me crazy. It always appears as a ? in Firefox and even makes an error in ie. But other 'ä's are ok. What could I

Re: [PHP] xml first special char

2005-09-16 Thread Alexander Toney
if we saw some code it would help, also it could be something to do with the text encoding On 9/16/05, Joerg P [EMAIL PROTECTED] wrote: hello, I have some words with german special chars in mysql. When I print those strings direct as xml to the browser, everything seems fine. But there

Re: [PHP] xml first special char

2005-09-16 Thread leaf
- Original Message - From: Joerg P [EMAIL PROTECTED] To: php-general@lists.php.net Sent: Friday, September 16, 2005 2:07 PM Subject: [PHP] xml first special char hello, I have some words with german special chars in mysql. When I print those strings direct as xml to the browser

[PHP] xml parse engine written in php

2005-09-12 Thread Will
Free for the taking, here's a simple, lenient (flawed?) xml parse engine written in php if anyone is interested in expanding such a thing. http://fribbler.us/code/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] xml parse engine written in php

2005-09-12 Thread Jasper Bryant-Greene
Will wrote: Free for the taking, here's a simple, lenient (flawed?) xml parse engine written in php if anyone is interested in expanding such a thing. http://fribbler.us/code/ Not to put down your efforts or anything, but what's wrong with SimpleXML, DOM XML, XML Reader, XML Parser etc.

Re: [PHP] xml parse engine written in php

2005-09-12 Thread Will
Jasper Bryant-Greene wrote: Will wrote: Free for the taking, here's a simple, lenient (flawed?) xml parse engine written in php if anyone is interested in expanding such a thing. http://fribbler.us/code/ Not to put down your efforts or anything, but what's wrong with SimpleXML, DOM XML,

Re: [PHP] xml parse engine written in php

2005-09-12 Thread Jasper Bryant-Greene
Will wrote: Jasper Bryant-Greene wrote: Will wrote: Free for the taking, here's a simple, lenient (flawed?) xml parse engine written in php if anyone is interested in expanding such a thing. http://fribbler.us/code/ Not to put down your efforts or anything, but what's wrong with

Re: [PHP] XML manipulation using PHP

2005-08-25 Thread Burhan Khalid
Anas Mughal wrote: Could someone please share with me sample code for: - Adding an XML node to an existing XML document. http://www.php.net/manual/en/function.domnode-append-child.php http://www.php.net/manual/en/function.dom-domnode-appendchild.php - Modifying the value for a given XML

[PHP] XML manipulation using PHP

2005-08-11 Thread Anas Mughal
Could someone please share with me sample code for: - Adding an XML node to an existing XML document. - Modifying the value for a given XML node in an existing XML document. Thank you. -- Anas Mughal

RE: [PHP] XML manipulation using PHP

2005-08-11 Thread Jay Blanchard
[snip] Could someone please share with me sample code for: - Adding an XML node to an existing XML document. - Modifying the value for a given XML node in an existing XML document. [/snip] Have you looked at the documentation? http://www.php.net/xml -- PHP General Mailing List

Re: [PHP] XML manipulation using PHP

2005-08-11 Thread Jochem Maas
Jay Blanchard wrote: [snip] Could someone please share with me sample code for: - Adding an XML node to an existing XML document. - Modifying the value for a given XML node in an existing XML document. [/snip] Have you looked at the documentation? hey Jay take it easy on the long words. ;-)

[PHP] XML and PHP

2005-07-06 Thread Cima
hi all, i would like to know where i could find more info on xml and working xml with php. thanks.

RE: [PHP] XML and PHP

2005-07-06 Thread Jay Blanchard
[snip] i would like to know where i could find more info on xml and working xml with php. [/snip] Start with the manual http://www.php.net/xml -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] XML and PHP

2005-07-06 Thread Charles Stuart
use a search engine. if you can't find what you need, then ask. if you already did this, then state that you already looked and you found xyz, but xyz isn't telling you what you need to know, which is specifically blah. best, charles On Jul 6, 2005, at 2:59 PM, Cima wrote: hi

[PHP] need help with php/xml/template !!!

2005-06-03 Thread bruce
hi... i'm playing around with trying to get a better understanding of an app (www.sitellite.org) it uses templates, which appear to have php/xml/html and i'm trying to understand it a little better. is there someone i can talk to who has a few minutes that might be willing to walk me through

Re: [PHP] xml

2005-05-31 Thread Marcus Bointon
On 27 May 2005, at 14:16, Andy Pieters wrote: I recently decided to switch to xml for the configuration of our programs. I am now looking for a good way to handle that xml data. Basically, what I am looking for is a functionality where I say Get tag x with attribute1=y, attribute2=z,...,

[PHP] xml

2005-05-27 Thread Andy Pieters
Hi all I recently decided to switch to xml for the configuration of our programs. I am now looking for a good way to handle that xml data. Basically, what I am looking for is a functionality where I say Get tag x with attribute1=y, attribute2=z,..., read its contents and put it in an

Re: [PHP] xml

2005-05-27 Thread Philip Hallstrom
Hi all I recently decided to switch to xml for the configuration of our programs. I am now looking for a good way to handle that xml data. Basically, what I am looking for is a functionality where I say Get tag x with attribute1=y, attribute2=z,..., read its contents and put it in an

[PHP] XML Problem

2005-05-12 Thread Juan Antonio Garrido
Hi everybody... I've been using DOM-XML functions for loading a XML file. When I try load it con domxml_open_file, it appears a message Call to undefined function: domxml_open_file(). PHP has been configured with option --with-dom=shared,/usr --with-xslt=shared,/usr(default install), and

[PHP] XML/XSL parsing

2005-05-12 Thread Brian V Bonini (gfx-Design)
Need to be pointed in the right direction. xml: quotes quote_block quote_text/quote_text quote_author/quote_author /quote_block quote_block quote_text/quote_text quote_author/quote_author /quote_block etc... /quotes xsl: xsl:stylesheet version=1.0

[PHP] XML language for database schema definitions

2005-04-27 Thread NSK
Hello I am developing a PHP-implemented library which would allow a PHP programmer to write pre-defined data to a database. The library would be able to work with different database schemas and I need a way to inform the library with what kind of database schema it has to work with. I thought

[PHP] XML Select

2005-04-08 Thread Stefan
Hi NG I've a question about searching in a xmlfile. Is there a mehtod to select a xml-node with a specific value? e.g. xml nameabc/name namedef/name /xml and I want search for the node with name abc. Or is it possible with a xpath definition? Thanks in advance Stefan -- PHP General Mailing

RE: [PHP] XML Select

2005-04-08 Thread Robinson, Matthew
@lists.php.net Subject: [PHP] XML Select Hi NG I've a question about searching in a xmlfile. Is there a mehtod to select a xml-node with a specific value? e.g. xml nameabc/name namedef/name /xml and I want search for the node with name abc. Or is it possible with a xpath definition? Thanks in advance

Re: [PHP] XML/HTML specific instructions

2005-03-31 Thread Satyam
Burhan Khalid [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Satyam wrote: This is just an idea I'm (quite unsuccessfully) been working on. It appears to me that PHP sits between a database and a web browser. On the database side, something I would love to have is embedded SQL,

[PHP] XML/HTML specific instructions

2005-03-30 Thread Satyam
This is just an idea I'm (quite unsuccessfully) been working on. It appears to me that PHP sits between a database and a web browser. On the database side, something I would love to have is embedded SQL, as it exists in some other languages such as C (for example, see:

Re: [PHP] XML/HTML specific instructions

2005-03-30 Thread Burhan Khalid
Satyam wrote: This is just an idea I'm (quite unsuccessfully) been working on. It appears to me that PHP sits between a database and a web browser. On the database side, something I would love to have is embedded SQL, as it exists in some other languages such as C (for example, see:

[PHP] xml question

2005-03-29 Thread Jeremy Reynolds
I'm new to XML. I'm just now learning about XML tags and how an XML Style Sheet can be used to filter or format the data. Something missing in my mind is how to submit the XML to the XSLT though. If the XML page contained a path to the XSLT page, that would make sense. But I haven't run

Re: [PHP] xml question

2005-03-29 Thread Marek Kilimajer
Jeremy Reynolds wrote: I'm new to XML. I'm just now learning about XML tags and how an XML Style Sheet can be used to filter or format the data. Something missing in my mind is how to submit the XML to the XSLT though. If the XML page contained a path to the XSLT page, that would make sense.

Re: [PHP] XML HTTP

2005-03-22 Thread Jerry Swanson
It is SOAP. I read tutorial on w3 website. Have one more question: The data that is exchange in SOAP protocol is encrypted or not? Thanks On Mon, 21 Mar 2005 17:32:59 -0800 (PST), Richard Lynch [EMAIL PROTECTED] wrote: On Fri, March 18, 2005 11:14 am, Jerry Swanson said: I create XML file,

Re: [PHP] XML HTTP

2005-03-21 Thread Jerry Swanson
I need to use SOAP and I use PHP 5. Do I need to compile PHP with some option? Thanks On Fri, 18 Mar 2005 16:03:20 -0500, Jason Barnett [EMAIL PROTECTED] wrote: Chris Shiflett wrote: Jerry Swanson wrote: I generated XML file. I need to send the file to another server not through FTP

RE: [PHP] XML HTTP

2005-03-21 Thread Jay Blanchard
[snip] I need to use SOAP and I use PHP 5. Do I need to compile PHP with some option? [/snip] Probably. Have you RTFM on the subject? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] XML HTTP

2005-03-21 Thread Richard Lynch
On Fri, March 18, 2005 11:14 am, Jerry Swanson said: I create XML file, how to pass the XML file to another server through HTTP? Let's try it this way: What's the other server? Did you read their FAQ and their documentation? Here are functions that, depending on what you read on the other

[PHP] XML HTTP

2005-03-18 Thread Jerry Swanson
I create XML file, how to pass the XML file to another server through HTTP? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] XML HTTP

2005-03-18 Thread Chris Shiflett
Jerry Swanson wrote: I create XML file, how to pass the XML file to another server through HTTP? This is similar to asking how to ship a package, only there are even more options. :-) What is the other server's API? How are they expecting to be sent the XML file? HTTP can practically be

Re: [PHP] XML HTTP

2005-03-18 Thread Jerry Swanson
I generated XML file. I need to send the file to another server not through FTP but though HTTP. On Fri, 18 Mar 2005 14:17:28 -0500, Chris Shiflett [EMAIL PROTECTED] wrote: Jerry Swanson wrote: I create XML file, how to pass the XML file to another server through HTTP? This is similar to

Re: [PHP] XML HTTP

2005-03-18 Thread Chris Shiflett
Jerry Swanson wrote: I generated XML file. I need to send the file to another server not through FTP but though HTTP. Yes, I gathered that, but you're not telling us how you're supposed to send it. For example, when Google first provided their web API, they didn't say, just send us an XML

Re: [PHP] XML HTTP

2005-03-18 Thread Jason Barnett
Chris Shiflett wrote: Jerry Swanson wrote: I generated XML file. I need to send the file to another server not through FTP but though HTTP. Yes, I gathered that, but you're not telling us how you're supposed to send it. For example, when Google first provided their web API, they didn't

Re: [PHP] XML HTTP

2005-03-18 Thread Forest Liu
I suppose Jerry was talking about the possibilities, just like the ways you listed. And, perhaps Jerry have his own two servers, and wanna build a whole system in which the servers communicate with ach other via xml doc. In this case, I think SOAP is a better way for Jerry. On Fri, 18 Mar 2005

[PHP] xml-rpc with php5

2005-03-01 Thread Alex Duggan
Hello, What is the best solution for setting up an xml-rpc client with php5? Are the built in functions still experimental, are the classes from useful inc better to use? I want to continue using xml-rpc instead of soap because of it's simplicity and less overhead. Alex -- PHP General

Re: [PHP] xml-rpc with php5

2005-03-01 Thread Matthew Fonda
On Tue, 2005-03-01 at 21:14, Alex Duggan wrote: Hello, What is the best solution for setting up an xml-rpc client with php5? Are the built in functions still experimental, are the classes from useful inc better to use? I want to continue using xml-rpc instead of soap because of it's

[PHP] XML-RPC problem with array

2005-02-01 Thread Bambero
Hello I have compiled my php with --with-xmlrpc option to use xmlrpc server. Everything works fine, but there is one problem. Array (indexed from 0): $array[0] $array[1] $array[2] is changed to xmlrpc 'array' type - thats ok. Array (with string indexes): $array['ad'] $array['sd'] $array['rd'] is

Re: [PHP] XML-RPC problem with array

2005-02-01 Thread Richard Lynch
Bambero wrote: Hello I have compiled my php with --with-xmlrpc option to use xmlrpc server. Everything works fine, but there is one problem. Array (indexed from 0): $array[0] $array[1] $array[2] is changed to xmlrpc 'array' type - thats ok. Array (with string indexes):

Re: [PHP] XML Filters for illegal characters

2005-01-06 Thread Richard Lynch
Jones, Douglas 1 wrote: I'm wondering if anyone knows of a filter that can take data to be wrapped in XML tags and filter this data encoding any illegal XML characters or, if they cannot be encoded, remove them. The problem I have is a database that contains text that must be wrapped in XML.

[PHP] XML Filters for illegal characters

2005-01-05 Thread Jones, Douglas 1
Hello, I'm wondering if anyone knows of a filter that can take data to be wrapped in XML tags and filter this data encoding any illegal XML characters or, if they cannot be encoded, remove them. The problem I have is a database that contains text that must be wrapped in XML. Some of this

Re: [PHP] XML Filters for illegal characters

2005-01-05 Thread John Holmes
Jones, Douglas 1 wrote: I'm wondering if anyone knows of a filter that can take data to be wrapped in XML tags and filter this data encoding any illegal XML characters Have you tried htmlentities()? -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect:

RE: [PHP] XML Filters for illegal characters

2005-01-05 Thread Jones, Douglas 1
To: Jones, Douglas 1 Cc: php-general@lists.php.net Subject: Re: [PHP] XML Filters for illegal characters Jones, Douglas 1 wrote: I'm wondering if anyone knows of a filter that can take data to be wrapped in XML tags and filter this data encoding any illegal XML characters Have you tried

[PHP] XML File validation using PHP????

2005-01-04 Thread Brent Clements
We are running PHP 4.3.2 Is there a class out there that can validate an xml file against a schema? I know in PHP 5+ that the dom package includes simple validation function, but until we upgrade, that's not an option. Can anybody point me in the write direction? I want something simple to

[PHP] Re: [PHP-XML-DEV] DomXPath and default XML namespaces

2004-12-13 Thread Christian Stocker
On 14.12.2004 6:45 Uhr, Dan Phiffer wrote: Adam Maccabee Trachtenberg wrote: This is an XPath FAQ. Without a ns prefix, XPath doesn't choose elements living in the default ns, but ones living in no namespace. Are there any good references you might point me to? I'm pretty new to this stuff and

[PHP] Re: [PHP-XML-DEV] DomXPath and default XML namespaces

2004-12-13 Thread Adam Maccabee Trachtenberg
On Mon, 13 Dec 2004, Dan Phiffer wrote: I guess what I would expect to work is to allow for blank values as the first argument to registerNamespace, representing the default namespace, but that causes the queries to always return no matches. Is there something I'm missing with this? This is

[PHP] Re: [PHP-XML-DEV] DomXPath and default XML namespaces

2004-12-13 Thread Dan Phiffer
Adam Maccabee Trachtenberg wrote: This is an XPath FAQ. Without a ns prefix, XPath doesn't choose elements living in the default ns, but ones living in no namespace. Are there any good references you might point me to? I'm pretty new to this stuff and beyond my in a Nutshell book don't have many

[PHP] Re: [PHP-XML-DEV] DomXPath and default XML namespaces

2004-12-13 Thread Adam Maccabee Trachtenberg
On Mon, 13 Dec 2004, Dan Phiffer wrote: Adam Maccabee Trachtenberg wrote: This is an XPath FAQ. Without a ns prefix, XPath doesn't choose elements living in the default ns, but ones living in no namespace. Are there any good references you might point me to? I'm pretty new to this stuff

[PHP] xml question

2004-12-06 Thread Dan McCullough
Question. I need to get one value out of an xml document. ... categories catDesserts/cat/categories ... what do I need to do? $xml_parser = xml_parser_create(); xml_parser_set_option($xml_parser, XML_OPTION_CASE_FOLDING, true); xml_set_element_handler($xml_parser, cat, /cat);

[PHP] XML Downstream

2004-12-02 Thread Luc Pascal
Hi php-general-team, An large XML Downstream over asp should be saved into a xml-file. If I open the asp website directly (IE6.0). It shows after 15 min a big part of the xml-stream (like if I would open an xml-file with the browser) and a failure at the end. I don't know how to save it into

Re: [PHP] XML Downstream

2004-12-02 Thread Richard Lynch
Luc Pascal wrote: An large XML Downstream over asp should be saved into a xml-file. If I open the asp website directly (IE6.0). It shows after 15 min a big part of the xml-stream (like if I would open an xml-file with the browser) and a failure at the end. I don't know how to save it into

[PHP] XML + PHP is going to eat my shorts

2004-11-16 Thread Jay Blanchard
Okie dokieI have to parse an XML file and I continue to RTFM, STFW, and STFA. So I do this... /* let's parse! */ if($readXML = fopen(XMLDIR.testRecp.xml, r)){ while($lineXML = fread($readXML, 4096)){ xml_parse($covadParser, $lineXML, feof($readXML));

Re: [PHP] XML + PHP is going to eat my shorts

2004-11-16 Thread Burhan Khalid
On Tue, 2004-11-16 at 08:13 -0600, Jay Blanchard wrote: Okie dokieI have to parse an XML file and I continue to RTFM, STFW, and STFA. So I do this... /* let's parse! */ if($readXML = fopen(XMLDIR.testRecp.xml, r)){ while($lineXML = fread($readXML, 4096)){

Re: [PHP] XML + PHP is going to eat my shorts

2004-11-16 Thread Jason Wong
On Tuesday 16 November 2004 22:13, Jay Blanchard wrote: I have done ini_set(short_open_tag, 0); It's probably not settable at runtime. Check manual. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet

Re: [PHP] XML + PHP is going to eat my shorts

2004-11-16 Thread Richard Davey
Hello Jay, Tuesday, November 16, 2004, 2:13:28 PM, you wrote: JB And when the pareser hits the first line of the XML file ... JB ?xml version=1.0 encoding=ISO-8859-1? JB ... it throws an error from xml_get_error_code JB syntax error Hard to tell without seeing the XML source, but could it be a

RE: [PHP] XML + PHP is going to eat my shorts

2004-11-16 Thread Jay Blanchard
[snip] ?xml version=1.0 encoding=ISO-8859-1? ... it throws an error from xml_get_error_code Trim your xml file. Whitespace can cause this problem. [/snip] I trimmed and chopped to no avail. Argh. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] XML + PHP is going to eat my shorts

2004-11-16 Thread Jay Blanchard
[snip] xml_parser_set_option($this-parser, XML_OPTION_CASE_FOLDING, 0); xml_parser_set_option($this-parser, XML_OPTION_SKIP_WHITE, 1); [/snip] I had those in there as well...here is the first few liners of the XML source ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE response SYSTEM

RE: [PHP] XML + PHP is going to eat my shorts [SOLVED]

2004-11-16 Thread Jay Blanchard
[snip] ?xml version=1.0 encoding=ISO-8859-1? [/snip] using fread the above line comae out like this(even though I was not echoing the line, just processing) ?xml version=\1.0\ encoding=\ISO-8859-1\? ...as soon as I added stripslashes the syntax error disappeared and VIOLA!...xml file

Re[2]: [PHP] XML + PHP is going to eat my shorts

2004-11-16 Thread Richard Davey
Hello Jay, Tuesday, November 16, 2004, 3:01:45 PM, you wrote: JB I had those in there as well...here is the first few liners of the XML JB source Does the XML file validate? Maybe post a complete file (or if too long a URL to one) so we could test it? Would at least narrow down if the error

Re: [PHP] XML + PHP is going to eat my shorts [SOLVED]

2004-11-16 Thread Marek Kilimajer
Jay Blanchard wrote: [snip] ?xml version=1.0 encoding=ISO-8859-1? [/snip] using fread the above line comae out like this(even though I was not echoing the line, just processing) ?xml version=\1.0\ encoding=\ISO-8859-1\? ...as soon as I added stripslashes the syntax error disappeared and

RE: [PHP] XML + PHP is going to eat my shorts

2004-11-16 Thread Burhan Khalid
On Tue, 2004-11-16 at 08:51 -0600, Jay Blanchard wrote: [snip] ?xml version=1.0 encoding=ISO-8859-1? ... it throws an error from xml_get_error_code Trim your xml file. Whitespace can cause this problem. [/snip] I trimmed and chopped to no avail. Argh. Try this snippet which has

<    1   2   3   4   5   6   7   8   9   >