Archive | php RSS feed for this section

17 August 2009 1 Comment

A WordPress YouTube Plugin – The FuTube Player

Recently we were looking for a Flash video player to use on our websites. Youtube’s default player was a little bloated, so one of our developers at Fubra built an alternative youtube flv player, which looks a bit like this: We’ve also released this as a wordpress plugin. You can install it via subversion if [...]

Tags:
16 July 2009 0 Comments

PHP GovTalk Class

As part of our commitment to open source, we have begun work on PHP class to make it easier to for developers to work with the UK’s government gateway. The project is hosted on Google Code, and is called php govtalk. GovTalk is a set of standards for interacting electronically with government services. In the [...]

Tags:
28 May 2009 0 Comments

Testing the Yii Framework

Installing First, download the Yii Framework to somewhere sensible. I prefer to use subversion to check out the code: svn co http://yii.googlecode.com/svn/branches/1.0 /usr/share/php/Yii This will take a few minutes. Once it’s done, you can use the Yii Command Runner (yiic) to set up your web application: /usr/share/php/Yii/framework/yiic webapp /var/www/html/appname If everything went well, you should [...]

Tags:
27 May 2009 0 Comments

Developing with Subversion, Unfuddle and OSX

Today I’m going to be helping one of our investment companies, ByteWire set themselves up with a subversion based development environment for their Street Crime game. They will use a straight forward workflow whereby they will develop and test their code locally on their iMacs, commit working code to a subversion repository, and then check [...]

20 May 2009 3 Comments

WAMP SMTP Server – Send outgoing emails

If you are running WAMP and you want to be able to send outgoing e-mails via PHP’s mail function, then you will need to edit the php.ini file and change SMTP = localhost to SMTP = smtp.yourisp.com Replacing smtp.yourisp.com with the address of your ISP’s SMTP server, e.g. smtp.ntlworld.com. The php.ini is in the bin directory [...]

Tags:
11 March 2009 0 Comments

Testing Syntax Highlighting with wp-syntax (Geshi)

Some bash commands: dig @ns1.fubra.com fubra.it axfr > /root/db.fubra.it vim /root/db.fubra.it Some PHP with line numbers: 10 11 $name = ‘Paul’; echo ‘Hello ‘.$name;

18 February 2009 3 Comments

PHP Web Application Security

Here are some tips to help you think more about security when developing a web app.  Buy a good book on the subject, such as Securing PHP Web Applications and implement what you learn in your code. Read through Web Application Security section on of the SANS Institute 2007 top 20 security risks. There are some useful [...]

12 February 2009 0 Comments

PHP Adsense Report Script

Currently there is no Adsense API for accessing account statistics / reports. Fortunately, Alex Polski (Victor Klepikovskiy) runs a project on Google Code that provides a PHP class to login and download a variety of reports from Adsense.  So, if you want to monitor your Adsense reports in your own systems, you should give his PHP Adsense Account [...]

Tags: , ,
11 February 2009 1 Comment

Installing Zend Framework on OS X (Leopard)

Today I needed to use Zend Framework on my iMac’s local web server, so here’s how I installed it.  I prefer using subversion where possible to download any open source projects, and since Zend have an svn repository available I decided to use that.  sudo svn co http://framework.zend.com/svn/framework/standard/branches/release-1.7/library/ /usr/lib/php/libraries/zend-framework-1.7/ This will follow the latest updates [...]

9 February 2009 5 Comments

Fixing a blank screen with the WordPress Mollom Plugin

If you get a white screen after the Mollom Captcha step when trying to add a comment to your blog, then check your PHP errors logs. I was experiencing this problem, and looking into the logs showed the following: [09-Feb-2009 11:11:53] PHP Fatal error: Call to undefined function mb_convert_encoding() in /sites/pyrosoft.co.uk/http/blog/wp-content/plugins/wp-mollom/wp-mollom.php on line 1371 The [...]