Internet

Memcached and APC: Two Simple Techniques to Speed up your PHP Web Application

Memcached and APC are two tools that you can install on your server and gain almost instant gratification!  APC basically caches executions that you send to a PHP process so that the next time you ask the parser to run your script it only has to look for some pre-chewed opcode in memory rather than parsing your PHP [...]

Installing APC and Memcached for PHP Sessions on Ubuntu and Debian

Installing APC on Debian or Ubuntu is as simple as:
user@server:/directory/$ sudo apt-get install php-apc

Now let us reboot the Apache process to enable our new cache:
user@server:/directory/$ sudo /etc/init.d/apache2 restart

APC should now be ready to run on your server.  Try running the following command to verify it is setup; you should get something in response like mine:
user@server:/directory/$ php -r ‘phpinfo();’ | grep [...]

Installing APC and Memcached for PHP Sessions on Redhat

Installing APC on Redhat is as simple as:
[user@server directory]# yum install php-pecl-apc

APC should now be ready to run on your server.  Try running the following command to verify it is setup; you should get something in response like mine:
[user@server directory]# php -r ‘phpinfo();’ | grep ‘apc’
apc
MMAP File Mask => /tmp/apc.s5jA6w
apc.cache_by_default => On => On
apc.coredump_unmap [...]

Firefox 3.1 has Web Workers (threading) and Geolocation

Firefox 3.1 has Web Workers (threading) and Geolocation

The latest beta 2 release includes web workers, which are essentially threads allowing you to farm off Javascript heavy lifting to background processes so that the interface can continue to load without being impacted upon.  The Mozilla developer center [sic] has an interesting article on implementing them; Using web workers, which includes a couple of worked [...]

Agavi Release Candidate 1

Agavi Release Candidate 1

A bit slow off the mark with this one but Agavi 1RC1 has been released and it is of course looking very nice. The 1.0 feature set is complete and potential bug fixes are the only things standing between now and 1.0 in earnest.  Features that I am particularly interested in include the recent [...]

A Good Windows Development Environment and Ubuntu Virtualbox

A Good Windows Development Environment and Ubuntu Virtualbox

Often Linux just does it better!  Often I find myself developing a Windows machine without access to a Linux development server, but I still need to access to some of the Linux binaries and features such as cron jobs, the at command and binaries such as imagemagick, pdftotext, etc.  Some things can be emulated with [...]

Securing SSH with Key Based Authentication

Certificates are a useful way of restricting access to your SSH server because a user must have three things to log onto the server:

Username
Password
Certificate

Normally they would only need to have a password and username, which can be guess at or (potentially) brute forced. Forcing the user to supply a certificate on log on means that [...]

Linux to Windows Server – Migrating and securing your crontab

In the PHP development arena the LAMP (Linux, Apache, MySQL and PHP) stack is very common, but once in a while a client will come through the door with a Microsoft background. So what do you do if your CMS or framework was built with a Linux base layer in mind? Sounds easy, [...]

Agavi 1.0 Beta on XAMPP 1.7.0

Agavi 1.0 Beta on XAMPP 1.7.0

To install the new XAMPP ensure you firstly uninstall and remove your current XAMPP folder. Upgrades are not supported with this version due to the differences one of which is the removal of PHP4 support from the XAMPP package.
I like to install agavi via the pear package that is available:

Open a command prompt and navigate to [...]

Freelancers: Costing your work

Recently I have been a fly-on-the-wall in an interesting discussion on the Auckland PHP User Group regarding the process of costing freelance work. So I thought I would toss my hat in the ring and give my opinion and summarise the interesting aspects.
Let me just say now that I cannot tell you how much you [...]

Page 1 of 41234»

Advertisement

Licence