Running 1 script from another ?

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
User avatar
anjanesh
DevNet Resident
Posts: 1679
Joined: Sat Dec 06, 2003 9:52 pm
Location: Mumbai, India

Running 1 script from another ?

Post by anjanesh »

I am new to php. I have worked only in vb and C++.
Is it possible to do this ?

A.php contains a function say funcA returns a string (or whatever).

Now in B.php I want to have this :
print(funcA());

Or rather run another php script (A.php) from a php script(B.php) and return back to B after running A and getting the return result in B.

Thanks

Anjanesh
User avatar
anjanesh
DevNet Resident
Posts: 1679
Joined: Sat Dec 06, 2003 9:52 pm
Location: Mumbai, India

Post by anjanesh »

Its very difficult to search for this in the forum.
User avatar
m3mn0n
PHP Evangelist
Posts: 3548
Joined: Tue Aug 13, 2002 3:35 pm
Location: Calgary, Canada

Post by m3mn0n »

[php_man]require[/php_man]()
User avatar
vigge89
Forum Regular
Posts: 875
Joined: Wed Jul 30, 2003 3:29 am
Location: Sweden

Post by vigge89 »

or, include()
Post Reply