Page 1 of 1

Running 1 script from another ?

Posted: Fri Jan 02, 2004 6:31 am
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

Posted: Fri Jan 02, 2004 6:32 am
by anjanesh
Its very difficult to search for this in the forum.

Posted: Fri Jan 02, 2004 6:35 am
by m3mn0n
[php_man]require[/php_man]()

Posted: Fri Jan 02, 2004 9:33 am
by vigge89
or, include()