Page 1 of 1

loading A.php from B.php

Posted: Wed Sep 29, 2004 8:28 pm
by dsdsdsdsd
hello;

I have: A.php and B.php;

A.php is running;

I want to call/run/load B.php;

does php support this?

thanks
Shannon Burnett
Asheville NC USA

Posted: Wed Sep 29, 2004 8:32 pm
by Breckenridge
You can include the second file within the first one

Code: Select all

<?
include ("B.php");
?>

Posted: Wed Sep 29, 2004 8:39 pm
by dsdsdsdsd
breckenridge, thanks;

that will do it;

Shannon Burnett
Asheville NC USA

Posted: Wed Sep 29, 2004 9:18 pm
by dsdsdsdsd
I regret that I did not discover 'include' a long time ago;