Getting a file via http or evaluating a php file and getting it's output

From: Brian Peyton (brian.peyton_at_gmail.com)
Date: 10/25/04


Date: 24 Oct 2004 17:49:20 -0700

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
(http://us2.php.net/manual/en/index.php). 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.



Relevant Pages

  • Getting a file via http or evaluating a php file and getting its output
    ... I need to somehow merge two separate web programs written in php ... perminant, I just need something done quickly. ...
    (comp.lang.php)
  • Re: 7.1-PRERELEASE: arcmsr write performance problem
    ... check how large is your PHP sessions' directory. ... either of these two running after a fresh reboot and we will see if this ... never seems to recover unless I reboot it or somehow find the process ... As the processes do get stuck in the ufs mode from what I can tell I thought this was an interesting connection. ...
    (freebsd-stable)
  • RE: [PHP] html parsing
    ... But somehow it doesn't seem to like recursion. ... Recursive functions work just fine in PHP. ... $ssi = extractHTMLssi; ...
    (php.general)
  • How do I get libphp5.so back
    ... I'm working on doing some more development on my php and I've just ... discovered that somehow the libraries were removed. ... through a portupgrade I had done recently. ...
    (freebsd-questions)
  • Re: [PHP] html parsing
    ... But somehow it doesn't seem to like recursion. ... $ssi = extractHTMLssi; ... // somehow PhP doesn't really like recursion, ...
    (php.general)