Webmaster Forum


Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Coding Forum Problems with your code? Let's hear about it.

Directory Submission Service   ClickBooth Network   V7N Directory

Reply
 
LinkBack Thread Tools Display Modes
Old 01-12-2007, 04:49 PM   #1 (permalink)
Contributing Member
 
Arenlor's Avatar
 
Join Date: 01-02-07
Location: PA, USA
Posts: 194
iTrader: 0 / 0%
Latest Blog:
None

Arenlor is liked by somebodyArenlor is liked by somebodyArenlor is liked by somebodyArenlor is liked by somebody
Send a message via ICQ to Arenlor Send a message via AIM to Arenlor Send a message via MSN to Arenlor Send a message via Yahoo to Arenlor
Create an xml file using php?

I've been working at this for a while, the only thing I can't figure out is how to create the actual XML file, I know how to add all the information I want to have in the XML file and all that, it's the creating the file that I can't seem to do (yes this is for an RSS thing, I need to let idiots fill in forms and update it)
__________________
Need a page made? Draw a diagram, I suggest using Paint, show the picture with your post, it'll help a lot more than you think. Other questions? Draw a diagram for that too!
Arenlor is offline  
Add Post to del.icio.us
Reply With Quote
Sponsored Links
SEO Hosting by HostGator  Advertise Here  Buy Blog Links
Old 01-12-2007, 05:54 PM   #2 (permalink)
Inactive
 
StupidScript's Avatar
 
Join Date: 09-22-06
Location: Los Angeles
Posts: 678
iTrader: 0 / 0%
Latest Blog:
None

StupidScript is just really niceStupidScript is just really niceStupidScript is just really niceStupidScript is just really niceStupidScript is just really niceStupidScript is just really niceStupidScript is just really niceStupidScript is just really niceStupidScript is just really niceStupidScript is just really niceStupidScript is just really nice
Code:
function genOutput() { $output = header("Content-type: text/xml"); $output.= "<container>\n"; $output.= "<title>".$title."</title>\n"; $output.= "<text>".$text."</text>\n"; $output.="</container>\n"; return $output; }
and so on. Build it like you would an HTML page, and include the proper headers, then send that $output back to the client.

Last edited by StupidScript : 01-12-2007 at 05:59 PM.
StupidScript is offline  
Add Post to del.icio.us
Reply With Quote
Old 01-12-2007, 07:02 PM   #3 (permalink)
Contributing Member
 
Join Date: 07-08-06
Location: Here
Posts: 236
iTrader: 0 / 0%
Latest Blog:
None

daboss is a jewel in the roughdaboss is a jewel in the roughdaboss is a jewel in the roughdaboss is a jewel in the roughdaboss is a jewel in the roughdaboss is a jewel in the rough
it's basically a text file - you do the same open, while loop, write, close, etc.
daboss is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum

Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to create 404 file on win server Jalpari Web Hosting Forum 4 11-22-2007 04:47 AM
How to create the cer file for nokia n95 shahab6 Computers & Internet 1 09-15-2007 03:49 PM
Using PHP to create a .txt file daniel0012 Coding Forum 37 04-30-2007 02:07 PM
How to create an RSS file DarrenC Marketing Forum 4 04-09-2006 12:01 PM


Sponsor Links
Get exposure! Get exposure! Find Scripts Web Hosting Directory Get exposure! SEO Blog


All times are GMT -7. The time now is 09:05 PM.
© Copyright 2008 V7 Inc