[SOLVED] loading A.php from B.php

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
dsdsdsdsd
Forum Commoner
Posts: 60
Joined: Fri Dec 05, 2003 3:10 pm

loading A.php from B.php

Post 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
Breckenridge
Forum Commoner
Posts: 62
Joined: Thu Sep 09, 2004 11:10 pm
Location: Breckenridge, Colorado

Post by Breckenridge »

You can include the second file within the first one

Code: Select all

<?
include ("B.php");
?>
dsdsdsdsd
Forum Commoner
Posts: 60
Joined: Fri Dec 05, 2003 3:10 pm

Post by dsdsdsdsd »

breckenridge, thanks;

that will do it;

Shannon Burnett
Asheville NC USA
dsdsdsdsd
Forum Commoner
Posts: 60
Joined: Fri Dec 05, 2003 3:10 pm

Post by dsdsdsdsd »

I regret that I did not discover 'include' a long time ago;
Post Reply