You are here: Making functions available from another script « PHP « IT news, forums, messages
Making functions available from another script

Posted by "Richard Leclair" on 11/07/05 06:25

Hi PHP-ers,

Here's an easy one:
Q: How can I make a function available from within another php script?

Eg. B.php contains:

<?php include ".../fns.php" ?>

Which has a function fn($x);

Later on, I want to include this function in B.php somewhere.

In short: B.php wants to use fn($x) found in A.php.

Regards,
Richie !

 

Navigation:

[Reply to this 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

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