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
anjanesh
DevNet Resident
Posts: 1679 Joined: Sat Dec 06, 2003 9:52 pm
Location: Mumbai, India
Post
by anjanesh » Fri Jan 02, 2004 6:31 am
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
anjanesh
DevNet Resident
Posts: 1679 Joined: Sat Dec 06, 2003 9:52 pm
Location: Mumbai, India
Post
by anjanesh » Fri Jan 02, 2004 6:32 am
Its very difficult to search for this in the forum.
m3mn0n
PHP Evangelist
Posts: 3548 Joined: Tue Aug 13, 2002 3:35 pm
Location: Calgary, Canada
Post
by m3mn0n » Fri Jan 02, 2004 6:35 am
[php_man]require[/php_man]()
vigge89
Forum Regular
Posts: 875 Joined: Wed Jul 30, 2003 3:29 am
Location: Sweden
Post
by vigge89 » Fri Jan 02, 2004 9:33 am
or, include()