I was attempting to deploy my Symfony app using Capifony, but it just wouldn’t work. The first error in the train wreck was: “Warning: Wrong parameter count for parse_ini_file() in …/bin/vendors on line 69”. Like all problems that take forever to fix, this one was incredibly simple. My shared host had both php 5.2 and 5.3 installed. I added the following line to deploy.rb:
set :php_bin, "/usr/local/bin/php-5.3"
Your path may differ.
Update: If you are having this problem, you also need to fix $interpreter in ‘bin/vendors’.
As I get more used to Symfony, I find myself wishing that I had given RoR a longer try back in the day. It’s too late for me to start my current project from scratch again, so PHP it is and will be. But gosh, Ruby looks fun.
For some reason, Eclipse (using PHP Development Tools) doesn’t include built-in PHP functions with a new project. Assuming you downloaded Eclipse from the Ubuntu repository and added PDT through Eclipse’s “Install new software” dialog: in Eclipse, right click on your project in the Explorer pane; choose Include Path, Configure Include Path; select the Libraries tab; click Add External Source Folder. The folder you need may vary depending on the version of Eclipse, it should look something like “~/.eclipse/org.eclipse.platform*/plugins/org.eclipse.php_core*/Resources/language/phpVERSION”.
I am currently writing my first WordPress plugin. I attempted to use the Settings API on my plugin’s settings page, but found it was a little cumbersome. So I wrote a helper to cut down the number of functions I needed to define. My plan was originally to simply automate the API calls, but it quickly outgrew the Settings API and does quite a bit more. I am posting it, hoping that it will be of use to some other plugin developers. The class handles form creation, display of options, security (wpnonce, back-end validation), and storage.
Read the rest of this entry »