Getting a file via http or evaluating a php file and getting its output

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
I need to somehow merge two separate web programs written in php
together (from the user's perspective).  This solution won't be
perminant, I just need something done quickly.  I was thinking of two
different approches.

One would be to download a processed version (modified so it will
create validating html with the page it's being embeded in) of one of
the programs with the other, then just use print to embed it in the
page.  I couldn't find out how to get a file via http here
( ).  Sorry if I missed this in
the docs.

The other would be to process the other program and get it's command
line output, and print that.

If there's a better way to this, I'd be glad to hear it :)

Also, I've never written any php before; so sorry if I missed
something obvious to someone who has.

Re: Getting a file via http or evaluating a php file and gettingits output


On 10/25/2004 04:10 PM, Brian Peyton wrote:
Quoted text here. Click to load it

If your HTTP request is simple, you can do it via fopen(). Now, if it is
complicated envolving authentication, cookie handling, redirection,
proxies, special purpose headers, etc.. you may want to try this class
that can simplify your work retrieving your pages:


Manuel Lemos

PHP Classes - Free ready to use OOP components written in PHP /

PHP Reviews - Reviews of PHP books and other products /

Metastorage - Data object relational mapping layer generator

Site Timeline