Reply to Re: function from another page?

Your name:

Reply:


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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация