In one of my previous blog posts I talked about using APC as an opcode cacher to speed up your site. I thought it was worth mentioning a second time. This greatly improves the performance. You can read more about the different opcode cachers and how to configure them here: http://blog.crazytje.be/php-opcode-caching-why-use-an-opcode-cacher/ Part 4 will talk about optimizing your php code [...]

 

After looking on the internet after a good kickstart guide, there was not one that helped me set up everything from start to end. I’m not one that likes to read allot. So after 10minutes together with Google the road to ‘the perfect kickstart’ started. This is what the target was: – Mount a small iso, about 10mb big – [...]

 

When using php scripts on the command line or in the cron, there are often times that you do not want to allow the same script to run more then once at a the same time. So a single instance application in php. Personally I use php scripts like this allot. My cron is filled with all kind of tasks [...]

 

Recently I needed to query a postgres database and put some of the info in a sqlite database. At first I wondered how am I going to do that?, but it’s much much easier then you’d think it is. A small example of a bash script doing just that: #!/bin/bash export PGPASSWORD=mypassword psql="psql -h localhost -U myuser -d mydatabase"   [...]

 

Ever wanted to set your own session id? Well, I did. I was creating a webservice where authentication would be done with a ‘token’. This token would simply be a random guid given to that user after he logged on with his username/password. Now, this random guid/string would be the session ID. That way, if the user does an action [...]

© 2012 Crazy's Blog Suffusion theme by Sayontan Sinha