RavenBlog |
|
Comments on Wednesday 2 March 2005: |
Are there PHP people amongst my readers? Just in case there are, a quick question: I want to be able to have a large number of small functions able to be imported dynamically. Only one such function-set will be imported per page-load. I currently have this being done in one case with$functionfile='monster_fish.php'; #filename actually taken from a safe list of filesBut I'm not sure this will always be okay with mod_php - I know mod_perl would get angry doing the equivalent because of persistent namespace. Is PHP okay with this? If not, how could a similar thing be done? And the other question is, if I wanted small snippets of PHP to be executed from a database entry rather than from a file, is there a way to do that other than eval()? And if not, is eval() reasonably efficient? (I can work with a no to both of those, but I'd like to know whether I have to.) For those of you who aren't programmers at all, pretend this post was a picture of something very funny. Use your imagination you lazy git. [08:10] |
l. lucnforu |
i see an iguana with a dual meaning, thinking about the "e" in xtc and trains. he's perched upon a pepsi lid, basking in the buy one get one free of it all. |
SheMaverick |
Well this is probably a good place to drop a totally random comment or two from an old friend! (It's Liz, btw, if you hadn't got it). Someone posted one of your quizzes ("which videogame character are you?") on a forum I go on. It's a small (and freaky) world. I also just wanted to say that I'm impressed with your attention to detail in describing the game of Splat, but I feel that the single-hand-restriction you've imposed would reduce the fun somewhat. My best memories of Splat are all frantic, two-hand, high speed scenes. Anyway, how are you, me old mucker? I suppose I could just read how you are in your blog here ... but I probably won't. |