By using the API created in part 1, integration with CakePHP or any other site becomes really easy. As said in part 1, we want functionality to add posts on the site and some user management. For this I already had 2 models, ‘News’ and ‘Member’, these models do everything related to user management and news posts on the [...]
I’ve been using SMF in combination with my personal sites for years now, I like how fast it is and how easy it is to manage. But one thing SMF lacks is a good API with most off all, documentation. In this blog post I’ll show what changes(additions) need to be made so that we can create and manage [...]
Sometimes you have large amount of generated data that you don’t want to create on every web request. An examples would be a home page with several news posts on it. The text would be in a database, but all the ‘extra’ things you did like bbtags present in the text, information about the user that posted it, etc etc [...]
Here we are, part 4b. By using XDebug, a pecl extension, our php code can be analyzed pinpointing the slower functions. Installing XDebug is easy: pecl install xdebug Now, you’ll have to enable it in the php.ini file: extension=xdebug.so xdebug.profiler_enable=1 xdebug.profiler_output_name=profiler-%s-%t.cache xdebug.profiler_output_dir=/tmp/xdebug Don’t forget to create the directory and give apache enough permissions to write in it. So after restarting [...]
Let me start by saying, I won’t bore you with the list of what I call stupid optimizations. That’s why I call this 4a, I recommend skipping 4a and go directly to 4b When I first when on my quest to optimize my code, I was disappointed at what I found. Let me give you a short list of ‘tips’ [...]