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 Quote Link to comment 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 Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.