aximbigfan Posted March 17, 2008 Share Posted March 17, 2008 I was just thinking about some cool things that may or may not be do able in PHP. One thing I though of, is, is there a function so that multiple PHP scripts can talk to each other, to plot to take over the world Exchange data? for example, something like this: if (call_php("http://echo/echo.php$getvars")=="true"){ echo "hello!";} Chris Quote Link to comment Share on other sites More sharing options...
trq Posted March 17, 2008 Share Posted March 17, 2008 Do you mean include()? Quote Link to comment Share on other sites More sharing options...
redarrow Posted March 17, 2008 Share Posted March 17, 2008 is he on about a function on a function.page then included dont no.......... Quote Link to comment Share on other sites More sharing options...
aximbigfan Posted March 17, 2008 Author Share Posted March 17, 2008 No, not include, something where the pages can actively talk. Like maybe one script calling a php page, but as it would if a client was requesting it, so instead of code, it is getting something the page generates. Chris Quote Link to comment Share on other sites More sharing options...
trq Posted March 17, 2008 Share Posted March 17, 2008 Um, that is exactly what include does. Executes the script and includes the results. If you'd like to capture the output into a variable you'd need to use output buffering. eg; <?php ob_start(); include 'file.php'; $out = ob_get_contents(); ob_end_clean(); echo $out; ?> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.