Re: [PHP] XML Data push

2002-12-12 Thread Chris Boget
> 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...

The reason I want to do this is so that other things (such as a program
on a client's PC, another web site) can push XML data to my page for
it to process and return something back to the requesting app.

Chris


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




Re: [PHP] XML Data push

2002-12-10 Thread Ray Hunter
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
process_news.php?id=123

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

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 filethen 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)
> 
>   display
>   -7 days
>   0 days
>   Current
> 
> 
> 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:
> 
> 
>   insert
>   Extra!
>   NewsBody
>   Today
> 
> 
> 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
email:  [EMAIL PROTECTED]
www:http://venticon.com


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




Re: [PHP] XML Data push

2002-12-10 Thread Chris Boget
> 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)

  display
  -7 days
  0 days
  Current


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:


  insert
  Extra!
  NewsBody
  Today


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


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




Re: [PHP] XML Data push

2002-12-10 Thread Ray Hunter
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...


On Tue, 2002-12-10 at 12:35, Chris Boget wrote:
> I'm looking into doing something like the following:
> 
> [best viewed w/fixed width font]
> User Request User Interface
> |   ^
> \/  |
> Receiving Page --> XML Data push --> Processing Page
> 
> where the "Receiving page" is a controller and pushes data
> (as XML) to a processing page.  What I'm not sure of is how
> I can push the data.  I'd rather not use sessions and the data
> would be too large to pass as a get.  I've looked at CURL but
> unless I'm missing something, I'm not sure that's what I need.
> I'm curious if someone can point me in the right direction?  I
> don't need to know _exactly_ how to do this.  In fact, I'd rather
> figure it out on my own.  But as I'm not even sure where to 
> start looking, coming up with that answer is much more difficult.
> So if any of you know where I can start looking to learn how I
> can do this, I'd be ever so appreciative!
> 
> thnx,
> Chris
-- 

Ray Hunter
email:  [EMAIL PROTECTED]
www:http://venticon.com


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




[PHP] XML Data push

2002-12-10 Thread Chris Boget
I'm looking into doing something like the following:

[best viewed w/fixed width font]
User Request User Interface
|   ^
\/  |
Receiving Page --> XML Data push --> Processing Page

where the "Receiving page" is a controller and pushes data
(as XML) to a processing page.  What I'm not sure of is how
I can push the data.  I'd rather not use sessions and the data
would be too large to pass as a get.  I've looked at CURL but
unless I'm missing something, I'm not sure that's what I need.
I'm curious if someone can point me in the right direction?  I
don't need to know _exactly_ how to do this.  In fact, I'd rather
figure it out on my own.  But as I'm not even sure where to 
start looking, coming up with that answer is much more difficult.
So if any of you know where I can start looking to learn how I
can do this, I'd be ever so appreciative!

thnx,
Chris


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