Archive for April, 2010
Internal server error after placing php_value in .htaccess file?
I was recently moving a website to another server and I found out that after saving text into DB all the quotation marks were preceded by slashes.
This mean the “magic_quotes_gpc” option is enabled in the configuration file.
Here’s how to fix this behavior.
PHP Class: Get screenshot (thumbnail) of any website
If you use PHP 5.2.2+ on Windows you can use function imagegrabwindow to make a screen shot of a website opened in Internet Explorer. However there is also a lot of websites which can screen shot any site for you- for free!
So- here’s a simple PHP class which will get a screen shot of any [...]
How to increase 2MB limit on import in phpMyAdmin?
PhpMyAdmin by default allows you to import only 2 MB file. In many cases this is just way too little.
In order to increase the values you need to alter your php.ini settings.
PHP Error “headers already sent”
If got an error like this one:
Warning: session_start() [function.session-start]: Cannot send session cache limiter – headers already sent (output started at E:\websites\index.php:3) in E:\websites\index.php on line 5
it means you tried to change headers of the file after sending the content of the file.
How to move Magento shop to another host?
To successfully move a Magento store to another host (including localhost) you can just follow the steps above.