Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Old 08-15-2007, 09:47 AM Writing XML with PHP
Galaxian's Avatar
Rich Powell

Posts: 842
Name: Rich Powell
Location: United Kingdom
Trades: 0
XML is a totally untouched subject for me.

How does one write to an XML file? (for a Flash file to read)


it'd be something like

gallery.xml

and the contents would be so a flash file could syndicate a picture gallery from MySQL.

Any ideas?
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE

Please help get the new
Please login or register to view this content. Registration is FREE
forum started for Webmasters like you!

Galaxian is offline
Reply With Quote
View Public Profile Visit Galaxian's homepage!
 
 
Register now for full access!
Old 08-15-2007, 09:57 AM Re: Writing XML with PHP
tripy's Avatar
Do not try this at home!

Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
Trades: 0
First, look there
http://www.webmaster-talk.com/coding...-u-use-so.html
to know what IS xml, and then ask again.
__________________
Only a biker knows why a dog sticks his head out the window.
tripy is offline
Reply With Quote
View Public Profile Visit tripy's homepage!
 
Old 08-15-2007, 10:06 AM Re: Writing XML with PHP
Galaxian's Avatar
Rich Powell

Posts: 842
Name: Rich Powell
Location: United Kingdom
Trades: 0
Quote:
Originally Posted by tripy View Post
First, look there
http://www.webmaster-talk.com/coding...-u-use-so.html
to know what IS xml, and then ask again.
I already understand what is xml.. asking again..

Quote:
XML is a totally untouched subject for me.

How does one write to an XML file? (for a Flash file to read)


it'd be something like

gallery.xml

and the contents would be so a flash file could syndicate a picture gallery from MySQL.

Any ideas?
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE

Please help get the new
Please login or register to view this content. Registration is FREE
forum started for Webmasters like you!

Galaxian is offline
Reply With Quote
View Public Profile Visit Galaxian's homepage!
 
Old 08-15-2007, 10:38 AM Re: Writing XML with PHP
tripy's Avatar
Do not try this at home!

Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
Trades: 0
Then, you simply generate you XML tree in a string variable, and write it to a file, with file_put_contents() or fopen()/fwrite()/fclose() calls.

How the flash will use it is totally dependent of the flash application itself, not from the xml structure.
You'd better start from the applicative side, and design your data structure from it than the other way.
__________________
Only a biker knows why a dog sticks his head out the window.

Last edited by tripy; 08-15-2007 at 10:39 AM..
tripy is offline
Reply With Quote
View Public Profile Visit tripy's homepage!
 
Old 08-15-2007, 10:48 AM Re: Writing XML with PHP
Galaxian's Avatar
Rich Powell

Posts: 842
Name: Rich Powell
Location: United Kingdom
Trades: 0
Quote:
Originally Posted by tripy View Post
Then, you simply generate you XML tree in a string variable, and write it to a file, with file_put_contents() or fopen()/fwrite()/fclose() calls.

How the flash will use it is totally dependent of the flash application itself, not from the xml structure.
You'd better start from the applicative side, and design your data structure from it than the other way.
Thanks.
However I think you misunderstand. The Flash part was just a note that Flash would be reading it. Perhaps some irrelevant information but well..
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE

Please help get the new
Please login or register to view this content. Registration is FREE
forum started for Webmasters like you!

Galaxian is offline
Reply With Quote
View Public Profile Visit Galaxian's homepage!
 
Old 08-15-2007, 10:58 AM Re: Writing XML with PHP
tripy's Avatar
Do not try this at home!

Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
Trades: 0
In fact, I think we both misunderstand each other

Do you search infos about:

1) The structure the XML file should have for a flash application that generate a gallery?
2) The flash application itself?
3) Maybe both?
4) How the two will interact ?
5) How to generate an XML file from PHP ?

I considered the 5th only.
__________________
Only a biker knows why a dog sticks his head out the window.
tripy is offline
Reply With Quote
View Public Profile Visit tripy's homepage!
 
Reply     « Reply to Writing XML with PHP
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.52624 seconds with 12 queries