way to transform xlm data from variable not open
xml file with using DOMXML.
tassos
-Original Message-----
From: Lucian COZMA [mailto:[EMAIL PROTECTED]
Sent: Friday, March 12, 2004 1:50 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Re: DOM XML and php
True, but it does much more than that.
ide functions to create XML docs from the
beginning and manipulate xml data like add or remove xml elements.
I hope to help you.
tassos
-Original Message-----
From: Lucian COZMA [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 11, 2004 5:31 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Re: DOM XML
I want to know this because DOMXML is faster and more reliable than
Sablotron (my opinion after using extesively both of them), and both are
extensions, that you have to install, not something native that comes
directly embeded into PHP.
Thanks,
Lucian COZMA
"Tassos T" <[EMAIL PROTE
that " . xslt_error($xh) .
print " and the error code is " . xslt_errno($xh);
}
xslt_free($xh);
?>Lucian COZMA
"Lucian Cozma" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> If you really want to use Sablotron (although I tried it I not like
If you really want to use Sablotron (although I tried it I not liked it as
much as DOMXML, gimme a sign, and I'll debug you.
Regards,
Lucian COZMA @ InterAKT
"Tassos T" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Thanks for your reply but I have anoth
bj = $xsl->process($xml);
echo $domObj->dump_mem();
?>
The myxsl.xslt file:
http://www.w3.org/1999/XSL/Transform";>
I think that should do it.
Regards,
Lucian COZMA @ InterAKT
"Tassos T" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
nctions section.
Regards,
Lucian COZMA
"Tassos T" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hello,
>
> I face a problem. I have a php script and I send a xml request to a
server.
> After I receive xml data but I have this data to an php string variable.
That should do it:
"Max" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Hello all,
I have two arrays as follows:
$x = array(3,4,6,8);
$y = array(10,20,40,10);
I need these arrays could be merged with '0' in between.
Result expected :
$x = array(1,2,3,4,5,6,7,8);
$y = array(0,0
That should do it:
"Max" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Hello all,
I have two arrays as follows:
$x = array(3,4,6,8);
$y = array(10,20,40,10);
I need these arrays could be merged with '0' in between.
Result expected :
$x = array(1,2,3,4,5,6,7,8);
$y = array(0,0,10
Try:
http://slides.bitflux.ch/
http://slides.bitflux.ch/phpug2004_1/
You could also get the CVS version and check out the source code. It was the
best way for me to find undocumented features.
There are also samples and articles, but unfortunately you have to "dig" for
them all over the net (goog
Try multibyte functions (http://www.php.net/manual/en/ref.mbstring.php):
mb_decode_numericentity
mb_encode_numericentity
mb_convert_encoding
See below:
';
echo c_to_n(n_to_c('“'));
?>
Hope it helps,
Lucian
"Roland" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi
>
> I'm trying t
from what I can see with v5 beta4 you don't
> need it. At least the docs do not state it from what I saw. Maybe I am
> wrong. I just wanted to try and used standard php libraries instead of a
> 3rd party.
>
> Are the instructions that you provided for v4 or v5 of php? I confi
date('Y-m-d', time()- 60*60*24);
You could also use mktime.
Regards,
Lucian
"Madcat" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> hi there
>
> how do i make php give me yesterday's date?
>
> i tried
>
> date("Y-m-d")-1
>
> but if today would be the 1st of july (2004-07-01), yest
I think your problems comes from configuring php with domxml instead of xslt
lib ( that requires sablotron).
You can use domxml's xslt transformations. I actually recomend it. It's
faster and in my opinion more flexible and reliable. (see
http://www.php.net/manual/en/ref.domxml.php for more info )
If you refer to the gilboa/galileo reservation system, I've had a project on
it for a Greece-based travel company.
It involved XML messaging with the Gilboa server.
Lucian COZMA
"Diana Castillo" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Does an
Answer: Multi-Byte String Functions.
You could take a look at the function:
string mb_convert_encoding ( string str, string to-encoding [, mixed
from-encoding] )
You must have php_mbstring extension enabled in your php.ini file.
Regards,
Lucian COZMA
"Russell P Jones" <[EM
Try Krysalis (http://www.interakt.ro/products/Krysalis/) if you're trying
something more complex. It's a PHP/XML platform.
If you want simple stuff (just generate XML's), I recomend doing for
yourself a custom class/function for it.
Here is a code sample:
select * from department_dep inner j
array fgetcsv ( resource handle, int length [, string delimiter [, string
enclosure]])
PHP manual extract:
$num fields in line $row: \n";
$row++;
for ($c=0; $c < $num; $c++) {
print $data[$c] . "\n";
}
}
fclose ($handle);
?>Lucian"Tony" <[EMAIL PROTECTED]> wrote in message
new
If you want that all the users will be able to help you, please post in
English.
Lucian
"Merlin" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hallo zusammen,
>
> ich möchte gerne meine bestehende app in mehreren Sprachen anbieten.
> Dazu habe ich mir ein xml parser package instal
If you want customizable layout without changing the logic, try the MVC
approach (model-view-control).
The best way to do it is to create the data from php in a XML (generate
the logic), then create the layout with XSL. Thus, if you want to change the
layout, all you have to do is to change
So what do I need hearing it for ?
I just answered the guy (what he needed was help, not punches & slaps from
wiseguys).
"Raditha Dissanayake" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> >Well, I've, and I also have to say that the XML-support in PHP lacks
> >any usability
>
Maybe this will help. Just made it (nedded it myself) and I saw your post.
parser = xml_parser_create();
xml_set_object($this->parser, $this);
xml_parser_set_option($this->parser, XML_OPTION_CASE_FOLDING, 0);
xml_set_element_handler($this->parser, 'startElement', 'endElement');
The 'sample.xml' file:
1234
3,4
kg
12345
3,1
t
"Victor spång arthursson" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
2003-11-17 kl. 17.06 skrev Chris Hayes:
>> Need to read a xml-file into an array, but searching around I havent
>> found a
Maybe this will help. I just made it:
class XMLParser {
var $depth = 0;
var $parser;
var $text;
var $cdata = array();
function XMLParser() {
$this->parser = xml_parser_create();
xml_set_object($this->parser, $this);
xml_parser_set_option($this->parser, XML_
Try:
if (isset($_GET['status']) && $_GET['status'] ==0) {
echo "Trying";
}
The warning is triggered by the fact that you use a variable that was not
previously defined. Check it before use with isset.
If in php.ini the value error_reporting = E_ALL, it will output warnings.
If you want the
This should do the trick:
$line = "I want the value between word ONE and word TWO. Please return
it...";
preg_match('/ONE(.*)TWO/i', $line, $ret);
print_r($ret);
"Matt Palermo" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hello. I was wondering if anyone knew of a function to g
but still i got weird symbols.
> The xml, the xmlparser are set for utf-8 and so are the html pages.
>
> I used the code which is in the chm file ...
> Any ideas?
>
>
> "Lucian Cozma" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > I&
I've encountered this problem when developing for a greek company.
Do you create a html output from it ? If you do, make sure that you have
in the tag of the html output.
Lucian
"Pnp" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi,
>
> I want to read some texts in greek from
"Olinux" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> > If, as Chris wrote, this is indeed a feature/bug of
> > IE, then it must be
> > configurable somewhere, though I'm lost as to where
> > that might be.
> >
> > Does anyone have any ideas how this could be
> > controlled via
29 matches
Mail list logo