Archive | PHP

RSS feed for this section

Facebook share showing wrong description solution

When you share a  post or a page on Facebook, it would pull the first few lines of the post and use it as content description. Where does Facebook get the description? Facebook pulls the description from the following sources, in this order: First it looks for a description meta tag, and uses the content […]

Read full story Comments { 0 }

Mootools best tutorial and examples

The following link is very helpfull to learn Mootools http://www.outcut.de/MooFlow/example-fullsize-viewer.html http://demos.mootools.net/ http://sixrevisions.com/javascript/mootools_tutorials_and_example/ (1590) 000

Read full story Comments { 0 }

List only folder in a given path by php

getDirectory(’../templates’); function getDirectory( $path = ‘.’, $level = 0 ) { // Directories to ignore when listing output. $ignore = array( ‘.’, ‘..’ ); // Open the directory to the handle $dh $dh = @opendir( $path ); // Loop through the directory while( false !== ( $file = readdir( $dh ) ) ) { // […]

Read full story Comments { 0 }