Why do you want to "push" it to another file...why not do all the
processing in one php file that calls many functions then passes that
data back to the user.

if you still want to pass data then you can do this...

controller.php push xml data to a table that has id and xml
fields...then redirect the user to process_news.php with the id like

then in process_news.php you use the id to pull the xml data out of the

However, this is still going to eat up resources on the server...

Another alternative that i have been looking into for this is like so:

have php file create, process and save xml file....then you can use
cocoon to allow the user to view the xml file...
(check phpbuilder on this one)...

On Tue, 2002-12-10 at 12:58, Chris Boget wrote:
> > You want the receiving page to be php that makes an xml page that is
> > then pushed to be a processing page back to the user?
> > I think some more detail might be needed...
> No, sorry if I wasn't clear.  The processing page is a PHP script on the back 
> end as well.  The XML data being pushed to it would include specification as
> to what action(s) the processing page would take.  A crude example would be
> something like the following.
> User clicks on a link for "Current News".  The URL for which is:
> www.domain.com/controller.php?request=CurrentNews
> controller.php would then push the following XML to process_news.php
> (yes, I know it's not well formed.  just trying to show a quick example)
> <newsitem>
>   <action>display</action>
>   <range_start>-7 days</range_start>
>   <range_end>0 days</range_end>
>   <topic>Current</topic>
> </newsitem>
> process_news.php would take that information, process it and spit out the
> relevant data to the user.
> Another possibility would be when an administrator wants to add a new News
> item.  The form script would push something like the following to 
> process_news.php:
> <newsitem>
>   <action>insert</action>
>   <headline>Extra!</headline>
>   <newsbody>NewsBody</newsbody>
>   <publishdate>Today</publishdate>
> </newsitem>
> and it would take that information, process it and add the new record to the
> DB.
> That's basically what I'm trying to do.
> Chris

Ray Hunter
www:    http://venticon.com

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

Reply via email to