invincible_virus Posted January 3, 2007 Share Posted January 3, 2007 I have two files, file1.php is having 5-6 utility functions to be used in file2.phpOne way to call any function of file1.php in file2.php is to [code]include "file1.php"[/code]in file2.php..Actually I only want to call only function in file2.php, can it be a performance issue to include the whole file??is there any other way of calling this function from file2.php Link to comment https://forums.phpfreaks.com/topic/32690-include-file1php/ Share on other sites More sharing options...
ToonMariner Posted January 3, 2007 Share Posted January 3, 2007 just include the file - u'll be fine Link to comment https://forums.phpfreaks.com/topic/32690-include-file1php/#findComment-152115 Share on other sites More sharing options...
trq Posted January 3, 2007 Share Posted January 3, 2007 [quote]can it be a performance issue to include the whole file??[/quote]None worth worrying about.[quote]is there any other way of calling this function from file2.php[/quote]Nope. Link to comment https://forums.phpfreaks.com/topic/32690-include-file1php/#findComment-152117 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.