corillo181 Posted June 22, 2007 Share Posted June 22, 2007 when you make functions do you keep all your functions in one php page or each function on a separate page? i'm doing it in separate paper becuase i think it works faster that way, but i'm not sure if they all in the same page would work the same. Quote Link to comment https://forums.phpfreaks.com/topic/56753-php-simple-question/ Share on other sites More sharing options...
php_joe Posted June 22, 2007 Share Posted June 22, 2007 it doesn't matter if they're on one page or not. if you have a lot then it might reduce your bandwidth. Quote Link to comment https://forums.phpfreaks.com/topic/56753-php-simple-question/#findComment-280261 Share on other sites More sharing options...
bflosabre91 Posted June 22, 2007 Share Posted June 22, 2007 i always have a separate functions file. it just seems easier to add a new function or when u want to reference a function, you will know exactly where they are. idk if it actually is faster or not though..... Quote Link to comment https://forums.phpfreaks.com/topic/56753-php-simple-question/#findComment-280271 Share on other sites More sharing options...
cooldude832 Posted June 22, 2007 Share Posted June 22, 2007 i use multiple seperate files for functions of different types, for example I have a doc called mysql_include.inc.php for my mysql connection, then I hvae another one that tracks users called track_functions.inc.php then a third for general functions called functions.inc.php Quote Link to comment https://forums.phpfreaks.com/topic/56753-php-simple-question/#findComment-280272 Share on other sites More sharing options...
corillo181 Posted June 22, 2007 Author Share Posted June 22, 2007 thanx guys my intuitions were right Quote Link to comment https://forums.phpfreaks.com/topic/56753-php-simple-question/#findComment-280277 Share on other sites More sharing options...
xkyogre Posted June 22, 2007 Share Posted June 22, 2007 it depends on how big the functions are Quote Link to comment https://forums.phpfreaks.com/topic/56753-php-simple-question/#findComment-280400 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.