Archive for the ‘PHP’ Category

How to redirect /index.html, /index.htm, /index.php to / using .htaccess

Monday, November 21st, 2011

Problem: How to redirect your /index.html, /index.htm, /index.php to / using .htaccess  to avoid duplicate of content in SE. Solutions : Add the code below in your htaccess : RewriteCond %{HTTP_HOST} !^www.yoursite.com$ RewriteRule ^(.*)$ http://www.yoursite.com/$1 [R=301] RewriteCond %{THE_REQUEST} ^.*/index.php RewriteRule ^(.*)index.html$ http://www.yoursite.com/$1 [R=301,L] or if you have /index.html RewriteCond %{THE_REQUEST} ^.*/index.html RewriteRule ^(.*)index.html$ http://www.yoursite.com/$1 [R=301,L] [...]

>>read more

Email confirmation sent after Paypal payment has been completed + itemized the product

Thursday, July 15th, 2010

Problem: Email confirmation sent after Paypal payment has been completed + itemized the product The problem above was requested of my Canadian clients for their site . I used the virtuemart patch here but it took me a long time to figure out and i encountered a lot of errors. What I did was I [...]

>>read more

Can’t create/write to file /tmp/ (Errcode: 28)

Monday, December 29th, 2008

The tutorial explain how to fix error cause by MYSQL daemon/engine on your server has run out of space for storing its own database files. If the filename/path mentioned includes “/tmp/” in it, then the error is likely referring to temporary/swap files instead of main database files.

>>read more

YouTube Flv Grabber Script

Thursday, November 8th, 2007

I created a youtube grabber base on rayzz (youtube clone script) a PHP script allow you to save any video you find on YouTube.com directly to your PC in FLV format. Check out my script below:

>>read more