jaymc Posted June 23, 2008 Share Posted June 23, 2008 I create a function, I dont want to have to include(); it every time I want to use it in a script Is there a way to have it stored in the php core library, if so, how? Link to comment https://forums.phpfreaks.com/topic/111425-solved-bind-function/ Share on other sites More sharing options...
bluejay002 Posted June 23, 2008 Share Posted June 23, 2008 putting it in a core library makes your script(s) not portable. besides. including files is only a line away, unless you done want that code be seen, am i right? also, when transferring, you might just forget that and you will lost it, unless you have a back up. Link to comment https://forums.phpfreaks.com/topic/111425-solved-bind-function/#findComment-571952 Share on other sites More sharing options...
jaymc Posted June 23, 2008 Author Share Posted June 23, 2008 putting it in a core library makes your script(s) not portable. besides. including files is only a line away, unless you done want that code be seen, am i right? also, when transferring, you might just forget that and you will lost it, unless you have a back up. I dont mind them being seen, I just dont want to include all my functions. It would be nice to just call the function where ever I like Not to bothered about portability, it is a bespoke application running on a bespoke server for that application Link to comment https://forums.phpfreaks.com/topic/111425-solved-bind-function/#findComment-572109 Share on other sites More sharing options...
trq Posted June 23, 2008 Share Posted June 23, 2008 The only way you could do this would be to create an extension in C. Theres a nice article here that should get you started if your really keen. Link to comment https://forums.phpfreaks.com/topic/111425-solved-bind-function/#findComment-572113 Share on other sites More sharing options...
jaymc Posted June 23, 2008 Author Share Posted June 23, 2008 Cheers Link to comment https://forums.phpfreaks.com/topic/111425-solved-bind-function/#findComment-572209 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.