Archive For The “PHP” Category
The latest release of Smarty is finally out! Check the site for more info and be aware of the upgrade instructions – leaving old compiled templates around will upset things!
If you’re installing PHP4, with an ssl enabled Apache you may run into the same problem I just ran into. The lines LoadModule php4_module libexec/libphp4.so and AddModule mod_php4.c are inserted by the php installer automatically. Unfortunately, mod_ssl also adds in code to load mod_ssl. From what I saw, it looks like the PHP installer adds [...]
Yes! Finally Smarty 8.0 has been released! This release has an ASP/JSP/Java/Python/C# code interpretor and lots of other enhancements! Pity the upgrade instructions were lost when the author’s modem died. Anyone tried it? hehe.
The Smart Template Engine at SmartPHP looks impressive. It uses more traditional templating conventions than Smarty (ie. begin … end) which is *much* simpler for non-techies to understand. This is one library I’m going to keep an eye on. I wonder how hard it’d be to support both in b2-smarty as the PHP code used [...]
Via the Linux.ie webdev list, SWIG and PHP4. Someone asked if you could interface PHP code to a C++ API. Looks like this could be a winner!
I’ve thought about this for a while after posting my previous attempt at using MVC to design a registration form. So far, I’ve removed the need for the fields array, and simply used the Smarty “include” function to include html code for text boxes and checkboxes. I also changed the controller so I could pass [...]
Here’s my first go trying to create a registration page using the Model View Controller design. Before you delve into the code, here’s some background not included in the code: You’ll need to know something about Smarty before reading this. Their crash course is useful for this. Here’s a Google Search to find more MVC [...]
I was looking at this yesterday with the view to using MVC and Smarty for an app. This introductory tutorial has disappeared in 404 land so grab it quick from the Google Cache while it’s there still.
John did more work on his PHP extensions. I find research into performance tuning and benchmarking fascinating. By using the C version of one of his PHP functions John gained a 75% increase in speed! Excellent! John, can you try both PHP code and C code with PHP Accelerator or some other opcode caching tool? [...]
John benchmarked a C PHP extension versus native PHP code and discovered the speed-up wasn’t that great and I have to agree, not worth the restrictions not coding in PHP provides. At work, we’ve thought of moving code into a C extension lots of times but this proves it’s not worth it. If you use [...]
