22 June 2009

How to Fix iPhone Headset Microphone & Buttons? (Fun)

If all of a sudden your iPhone headset stops working and every logical attempt of fixing it fails then (as weird as it may seem) the problem might be a chunk of innocent looking "lint!"

No, I am not kidding!

My headset was giving me headaches, I tried hell lotta things before I found this blog and this thread. Do whatever they say and it might magically start working again.

If it doesn't then the Apple Support lines are open 24/7 :)

16 June 2009

How to Change/Create php.ini, .htaccess Files?

If your site is hosted on GoDaddy.com and you want to change the PHP config settings then don't try to bypass settings with a .htaccess file. It will give you a 500 error [source]. Instead go to the root directory and you will find ini.php file, change the settings there.

Let's say you want to increase upload size in your php.ini, then simply copy-paste the following code at the bottom of the code:
upload_max_filesize = 10M ;
post_max_size = 20M ;
Done!

By the way, the php.ini is for configuring PHP 4. To configure PHP 5 you need to upload a php5.ini file [source].

Supplementary:

- Why .htaccess shows 500 error? [Read]
- Beginners guide to .htaccess file with examples [Read]
- .htaccess Apache how-to [Read]
- A simple guide to .htaccess [Read]
- Uploading large/big files in PHP using .htaccess [Read]