Posted by Erwin Moller on 10/21/98 11:40
thamood@gmail.com wrote:
> hi guys i was just wondering can i call a function from another page
> and get the return value?
> like if i had page1.php which have the function fun1() can i call this
> function from another page ?? if i can how?? many thanx in advance :)...
Yes and no.
No, you cannot call a PHP function directly on another page.
You could however call another URI (could be PHP) and catch the complete
output of that script.
But why makes things so difficult?
Yes: If you modify your setup a little:
Why not put the function(s) in a seperate file, and include that file
whereever you need it?
Regards,
Erwin Moller
Navigation:
[Reply to this message]
|