Tag Archives: PHP

phpMailer ERROR: AUTH not accepted from server:

I wanted to use the Virgin Media SMTP server for a website running phpMailer. First of all the emails failed so I turned on errors with the following command:

It returned:

It turned out to be quite simple (ssl:// for the …

Read more »

Link Leaderboard – WordPress Plugin (Version 0.1 Alpha)

This is a post dedicated to the WordPress Link Leaderboard plugin that I wrote, Version 0.1 (Alpha) This is the first WordPress plugin that I’ve written so expect many bugs and errors and plenty of room for improvement. The basic idea was …

Read more »

Cannot delete file on FTP server, Invalid Filename

Had a file on an FTP server that I was logged into, the filename was similar to “c:\folder\filename.php” (i.e. the filename had c:\ in it) I think this was a result of Uploadify, which has now been removed (more to …

Read more »

The Owl USB Energy Meter and using the SQLite Database with PHP

I’ve had The Owl running for a little while now and the software that comes with it is a little bit rubbish to be honest. I kinda works OK I guess but is very limited, so it was time to have a little …

Read more »

Facebook Page and PHP SDK

I’ve been doing some work on our facebook page recently and thought I’d share my experiences. After a bit of reading and checking out other pages on there it seemed like a good idea to change the main images we …

Read more »

External MS SQL Database User Authentication with Moodle

We have a Moodle running which I’ve recently moved to a new server. The old server was running PHP 5.2.x and the new one is on 5.3.x. This of course now means that the PHP extension php_mssql.dll is no longer …

Read more »

MediaWiki Code Snippets

For reference, MediaWiki code snippets for LocalSettings.php: # Must be logged in to edit $wgDefaultUserOptions ['editsection'] = false; # Disable reading by anonymous users $wgGroupPermissions['*']['read'] = false; # Disable registration $wgGroupPermissions['*']['createaccount'] = false; # Image Uploads $wgEnableUploads  = true; $wgFileExtensions …

Read more »

Simple Cookies in PHP

For one of our public sites we have different sites for different countries and to make things easier for the end users I put together a landing page where they can then choose a flag (based on the country they …

Read more »

PHP optimisation in Windows IIS

Firstly, use the non-thread-safe version of PHP, its more efficient, see here. If you are unsure which version you have, check the very top of phpinfo() Then you can make some slight changes to php that will save some processing …

Read more »