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 all,


i would like to know where i could find more info on xml and  
working xml with php.



thanks.


--
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 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



[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.

[PHP] XML and PHP

2003-11-06 Thread Victor Spång Arthursson
Hi!

I've been looking at the XML-parserfunctions in the manual, and they 
seems nice enough.

But I'm currently in a project where there is need to read from, write 
to and edit in XML-files, in some smart way. Our ISP is supporting the 
following:

xml

XML Support
active
XML Namespace Support
active
EXPAT Version
1.95.6
I suppose the answer to my questions lies in the expath-part, but where 
do I start, where can I read more about the above expat and which is 
the best approach for me in this project? We're going to import som 
data from Navision, XML-formatted, to postgresql, and meanwhile 
documents are edited they are, until finished, going to be saved as 
xml-documents on the server.

Sincerely

Victor

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] xml and php

2003-07-31 Thread Ray Hunter
Make sure that you have all the dlls that are needed for php+dom. these
dlls need to be in your windows path as well.

Uncomment the dll in your php.ini file and restart the webserver. View a
php page with phpinfo() as the only function in that page:



See if you have dom in there. If not then follow the above steps again.
If you dont have the dll then you will need to download the zip file
from php.net.

Now that you have dom you can load in xml files as dom objects and
manipulate the object with the dom functions.


--
BigDog



On Thu, 2003-07-31 at 06:54, Steff wrote:
> Hello
>  
> I'm a beginner in php.
>  
> Sorry to disturb you but I have two problems and I hope you can help me.
>  
> I use php 4.3.2(InetPub\Php is my php directory) under windows 2000 server with 
> IIS 5.0.
>  
>I want to manipulate xml file with Php (add some element, modify some element, 
> delete some element and consult some element) but when I try  domxml_open_file I 
> obtain system error : Call to undefined function: domxml_open_file()
>  
>I heard about use --with-dom but I don't see how and about php/win32 directory 
> which I don't see.
>  
>  Can you help me ?
>  Thanks
>  Cordially
>  Vauclaire Stéphane
>  http://www.c-comnet.com


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] xml and php

2003-07-31 Thread Jay Blanchard
[snip]
  



1


Title 1


Description 1


word 1
word 2
word 3


Title 1


Description 1


word 1
word 2


Author 1


ISBN 1

   


I want to be able to add, modify and delete book of library.

Can you help me ?
[/snip]

Yes I can help. fopen() library.xml (see http://www.php.net/fopen ) for
writing. Write all of the XML tags from  to  and
appropriate info to library.xml and then close it. Use the XML functions
(http://www.php.net/xml ) to work with the xml file for parsing.

I think you may be overcomplicating the issue. The XML file is just a
text file. The XML parser allows you to work with the file in a
meaningful way.

HTH!

P.S. When responding please respond to the list as a whole.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] xml and php

2003-07-31 Thread Jay Blanchard
[snip]
so I can parse and read xml file but I can't add or modify nothing in my
xml file and even not create xml file !
[/snip]

Uh, XML files are text files which you can modify with any of the text
handling functions in PHP. What exactly are you trying to accomplish?

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] xml and php

2003-07-31 Thread Steff
Thanks for you answer

in php_info I only have this

XML Support  active
XML Namespace Support  active
EXPAT Version  1.95.2

and nothing about dom xml

so I can parse and read xml file but I can't add or modify nothing in my
xml file and even not create xml file !

I tried to use expat but I don't see how I should make

can you tell me more knowing I'm under windows 2000 server with iis 5.0 and
php 4.3.2 ?

Thanks
Cordially
Stéphane Vauclaire

- Original Message -
From: Jay Blanchard <[EMAIL PROTECTED]>
To: Steff <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, July 31, 2003 3:03 PM
Subject: RE: [PHP] xml and php


[snip]
I'm a beginner in php.

   I want to manipulate xml file with Php (add some element, modify some
element, delete some element and consult some element) but when I try
domxml_open_file I obtain system error : Call to undefined function:
domxml_open_file()

   I heard about use --with-dom but I don't see how and about php/win32
directory which I don't see.
[/snip]

Start here http://us3.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

2003-07-31 Thread Jay Blanchard
[snip]
I'm a beginner in php.
 
   I want to manipulate xml file with Php (add some element, modify some
element, delete some element and consult some element) but when I try
domxml_open_file I obtain system error : Call to undefined function:
domxml_open_file()
 
   I heard about use --with-dom but I don't see how and about php/win32
directory which I don't see.
[/snip]

Start here http://us3.php.net/xml

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] xml and php

2003-07-31 Thread Steff
Hello
 
I'm a beginner in php.
 
Sorry to disturb you but I have two problems and I hope you can help me.
 
I use php 4.3.2(InetPub\Php is my php directory) under windows 2000 server with 
IIS 5.0.
 
   I want to manipulate xml file with Php (add some element, modify some element, 
delete some element and consult some element) but when I try  domxml_open_file I 
obtain system error : Call to undefined function: domxml_open_file()
 
   I heard about use --with-dom but I don't see how and about php/win32 directory 
which I don't see.
 
 Can you help me ?
 Thanks
 Cordially
 Vauclaire Stéphane
 http://www.c-comnet.com


[PHP] xml and php

2002-08-15 Thread Pafo

iwill rephrase my question, where can i find good xml-php links?
how would you extract all information about the Guinevere server in this
xmlpage,
http://www.camelotherald.com/xml/servers.xml

its aprox in the middle of the list, and i want all information there so i
could display it on a page.

regards
patrick



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] XML and PHP - dynamic hell

2001-12-01 Thread Chris

It didn't help :(
- Original Message - 
From: "Matthew Loff" <[EMAIL PROTECTED]>
To: "'Chris'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Saturday, December 01, 2001 10:03 AM
Subject: RE: [PHP] XML and PHP - dynamic hell


> 
> Did you try adding:
> 
> header("Content-Type: text/xml");
> 
> To the top?
> 
> 
> -Original Message-
> From: Chris [mailto:[EMAIL PROTECTED]] 
> Sent: Saturday, December 01, 2001 12:34 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] XML and PHP - dynamic hell
> 
> 
> I'm having one page output XML for other sites to parse. Unfortunately
> if I
> give an RSS parser the site (the php file) it errors out. But if I put
> the
> output in a XML file, and give that to the RSS parser everything works
> perfectly. Does anyone know why it can't read it straight from the php
> file?
> PHP Builder has it working, I have no idea why mine doesn't. Thanks
> 
> Source:
> 
>  require "division/settings.inc";
> require RootPath . "admin/Admin.php";  //these just define mysql logins
> and
> such
> echo "<" . "?xml version=\"1.0\"?" . ">\n";
> echo " 0.91//EN\"
> \"http://my.netscape.com/publish/formats/rss-0.91.dtd\";>\n";
> echo "\n";
> echo "\n";
>   $query = mysql_query("Select * from " . PREFIX . "news order by Date
> Desc
> Limit 40");
>   while($results = mysql_fetch_array($query))
>   {
>echo "\n";
>echo "" . stripslashes($results["Subject"]) . "\n";
>echo "http://dod.stronger.org/\n";
>echo "$results[Name]\n";
>echo "" .
> substr(htmlspecialchars(stripslashes($results["News"])),0,150) .
> "...\n";
>echo "\n";
>  }
> ?>
>   
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] XML and PHP - dynamic hell

2001-12-01 Thread Matthew Loff


Did you try adding:

header("Content-Type: text/xml");

To the top?


-Original Message-
From: Chris [mailto:[EMAIL PROTECTED]] 
Sent: Saturday, December 01, 2001 12:34 AM
To: [EMAIL PROTECTED]
Subject: [PHP] XML and PHP - dynamic hell


I'm having one page output XML for other sites to parse. Unfortunately
if I
give an RSS parser the site (the php file) it errors out. But if I put
the
output in a XML file, and give that to the RSS parser everything works
perfectly. Does anyone know why it can't read it straight from the php
file?
PHP Builder has it working, I have no idea why mine doesn't. Thanks

Source:

\n";
echo "http://my.netscape.com/publish/formats/rss-0.91.dtd\";>\n";
echo "\n";
echo "\n";
  $query = mysql_query("Select * from " . PREFIX . "news order by Date
Desc
Limit 40");
  while($results = mysql_fetch_array($query))
  {
   echo "\n";
   echo "" . stripslashes($results["Subject"]) . "\n";
   echo "http://dod.stronger.org/\n";
   echo "$results[Name]\n";
   echo "" .
substr(htmlspecialchars(stripslashes($results["News"])),0,150) .
"...\n";
   echo "\n";
 }
?>
  



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] XML and PHP - dynamic hell

2001-11-30 Thread Chris

I'm having one page output XML for other sites to parse. Unfortunately if I
give an RSS parser the site (the php file) it errors out. But if I put the
output in a XML file, and give that to the RSS parser everything works
perfectly. Does anyone know why it can't read it straight from the php file?
PHP Builder has it working, I have no idea why mine doesn't. Thanks

Source:

\n";
echo "http://my.netscape.com/publish/formats/rss-0.91.dtd\";>\n";
echo "\n";
echo "\n";
  $query = mysql_query("Select * from " . PREFIX . "news order by Date Desc
Limit 40");
  while($results = mysql_fetch_array($query))
  {
   echo "\n";
   echo "" . stripslashes($results["Subject"]) . "\n";
   echo "http://dod.stronger.org/\n";
   echo "$results[Name]\n";
   echo "" .
substr(htmlspecialchars(stripslashes($results["News"])),0,150) .
"...\n";
   echo "\n";
 }
?>
  



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] XML and PHP

2001-09-27 Thread Augusto Cesar Castoldi

Can I use the PHP XML functions to add and remove data
from a XML file?

It's possible? Or the PHP XML Functions are only for
read a XML file?

regards,

Augusto

___
Yahoo! GeoCities
Tenha seu lugar na Web. Construa hoje mesmo sua home page no Yahoo! GeoCities. É fácil 
e grátis!
http://br.geocities.yahoo.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] xml and php question

2001-07-09 Thread Conor McTernan

Hey all

I'm not so sure if this is the correct place to ask this question, but I'm
hoping some of you will be able to give me some feedback. I am currently
toying around with php and mysql developing a website for myself, the
current one is partly php powered, but I am trying to move it over to a
complete php and mysql system, I would also like to use XML. 

i have previously used Xml on another web project, and i really liked the
way you could reformat you content, and it's ease of use. What i was
wondering is, if any of you use XML to store your content, in what way do
you go about it. 

At the moment i see 2 sepeerate ways of going about it. 

a)Mark up your documents in xml and store the xml documents in a database,
your database can be pretty simple, witha couple of fields that represent
some of the meta data in the xml file, e.g. Author, Date-created, then a
large blob which is the doc. when you wish to view the document, you
search on the criteria that is available, and then retrieve your xml
doc. Some down sides to this could be the explosion in the size of the db,
if you are storing a large amount of documents etc and also the redundancy
in some of hte fields, e.g you have an author field, but this info is
contained in the xml doc. It is good, because it is an essentialy simple
application, in both php code to pull the data and in the database design.


b)have the database act as a sort of XML holder, e.g. break the document
down to it's base components, and store all the meta data in the database,
when a doc is needed, the xml doc can be created on the fly, by pulling
the data out of the appropriate fields. some problems with this can be the
database design, it can become extremly complicated(i would imagine, i
have not tried it yet), as you are effiectively modelling the DTD in the
database. but at the same time, we are reducing redundancy, hopefully, so
long as it is well normalised. 

the reason i am asking this is becaue of the amount i read about xml, how
good it is extensible etc, there is not much out there inregards to the
practical application of it, aside form the odd tutorial on how to
construct a DTD or how to parse XMl with Java/PHP etc.

once again, i'm not sure if this post is appropriate to this mailing list,
perhaps i should send it to a MySql list or something, but if anyone has
any ideas or thoughts on the topic i would really appreciate it.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]