Author Archives: Toan Duong

About Toan Duong

Search Engine Optimisation and Web design specialist. Graduated from Victoria University with a double degree in Multimedia and Ecommerce Since then Toan been working on website design/development and website management and is currently specialise in the area of SEO. Connect with me on: LinkedIn - http://au.linkedin.com/in/toanduong Facebook - http://www.facebook.com/duongtoan

PHP String Replace

To replace characters in an existing string: $new_string = str_replace (‘b’,’a’,$string); a = text you want to find b = text you want to replace $string = string you want to find Example: $string = ‘I love apples’ $new_string = … Continue reading

Posted in PHP | Tagged | Leave a comment

Facebook ID & other information

http://graph.facebook.com/pagename

Posted in Reference, Web development | Leave a comment

Increase website load speed with gzip compression

Insert the following code in .htacess file to enable gzip compression. {code} #Enable Caching Header set Cache-Control “max-age=2592000, public” Header set Cache-Control “max-age=604800, public” Header set Cache-Control “max-age=216000, private” Header set Cache-Control “max-age=600, private, must-revalidate” #Expires Headers ExpiresActive On ExpiresDefault … Continue reading

Posted in SEO | Leave a comment

Displaying content from SQL database in WordPress

This code get content from database fields and displays it Its ok if you don’t understand SQL Queries, all you have to do is access PHP My Admin and go to the table and it allows you to generate the … Continue reading

Posted in Web development | Leave a comment

Populate images in a folder

This piece of code automatically get all images in a folder and output it to your site. This is very effective for image gallery with many images. Add and remove images from a gallery is simple without touching a piece … Continue reading

Posted in Web development | Leave a comment

CSS Round Corners

W3C Specification Mozilla Implementation border-radius -moz-border-radius border-top-left-radius -moz-border-radius-topleft border-top-right-radius -moz-border-radius-topright border-bottom-right-radius -moz-border-radius-bottomright border-bottom-left-radius -moz-border-radius-bottomlef source: http://www.css3.info/preview/rounded-border/

Posted in CSS | Tagged , , | Leave a comment

CSS Hacks for Firefox

Firefox CSS Hacks Usually IE give have display issues, but not all the time, Firefox have some issues too. I came across a site that displays fine on all browsers; IE, Chrome, Safari – but not Firefox which is totally … Continue reading

Posted in CSS | Leave a comment

.htaccess references

{code} RewriteEngine On ## Include www in url RewriteCond %{HTTP_HOST} ^yoursite\.com\.au$ RewriteRule (.*) http://www.yoursite.com.au/$1 [R=301,L] ## 301 redirect page Redirect 301 /oldpage.html http://www.site.com.au/newpage.html ## 404 Not found error ErrorDocument 404 http://www.site.com.au/errorpage.html ## Server redirect AddType text/html html AddOutputFilter INCLUDES html … Continue reading

Posted in Reference, SEO | Tagged , , , | Leave a comment

Numbered search results

So you want to track the current rankings for your keywords. If you manage your own campaign its ok to do it manually. But if you are and SEO company, doing ranking reports can be a time consuming task. Here … Continue reading

Posted in SEO | Tagged , | Leave a comment

Illustrator Artboard area

Illustrator is a great for vector graphic. But sometime you want to include some images or graphic in your design. But when you placed an photo/image and it goes outside the artboard and exporting the document will display everything including … Continue reading

Posted in Graphic, Illustrator | 2 Comments