My Blog


#Codes #Tutorials #Reviews #Rants and More...


How to make plain URL in string clickable in PHP


Hi :)

This is just a quick PHP function to make all plain URL found in a string clickable. Very useful for projects where you want users to be able to click on any links found within text contents. 

 

 

 function make_links_clickable($text) {
		// The Regular Expression filter
		$pattern = "/(http|https|ftp|ftps)\:\/\/[a-zA-Z0-9\-\.]+\.[a-zA-Z]{2,3}(\/\S*)?/";
		$text = preg_replace($pattern, "<a href=\"\\0\" rel=\"nofollow\">\\0</a>", $text);

		return $text;
	}

Good luck


— 29 June 2017   |   Read more or comment on this post



PHP 7 awesome features



PHP 7 has been released. The 7.0.0 major release contains so many amazing features. PHP 6 was skipped because most of the new features were added to PHP 5.6 . 


— 13 January 2016   |   Read more or comment on this post



Merry Christmas



This time of year brings festivities and family fun. It is a time for reminiscing and looking forward. Wishing you wonderful memories during this joyous season.

 

A bucket of blessings for everyone.


— 25 December 2015   |   Read more or comment on this post



Happy Birthday Zoe


Happy birthday Zoe. May your life bloom in to a flower - beautiful, sweet and happy :)

I'm not good at drawing but will definately draw a sketch of your favourite "Green Goblin" for your 3rd birthday.

Enjoy every bit of the 3 days birthday celebrations. 


— 13 October 2015   |   Read more or comment on this post



Checkout the new Microsoft Surface Book


Now you know why I have started an emergency savings to purchase one or two :)


— 9 October 2015   |   Read more or comment on this post



Why You Shouldn't Just "Learn to Code," but Aim to Solve a Problem


Learning “programming” is like practicing scales. It’s gonna make you a great musician, but if you never get to play a song, it’s going to be very frustrating. It’s really hard to learn things when you’re not doing something cool with it.

Just a great advice for everyone on lifehacker.com.


— 5 September 2015   |   Read more or comment on this post



COLDSiS™ Ayaana is here



COLDSiS™ Ayaana is web based, which means that no downloads are necessary by students, parents, teachers or the school's administration to utilize the system. It is easily accessible by all users through the internet and/or school's intranet, wherever and whenever.

Download the Brochure (PDF File) 


— 5 September 2015   |   Read more or comment on this post



How to run Composer on a shared hosting server



Composer makes coding life very easy when developing PHP apps that depend on other awesome libraries. If you don't know this then you must be living under a rock. Learn how to run composer on your shared hosting server. Access to a SSH shell is usually restricted. Find out how you can hack the system. 


— 20 May 2015   |   Read more or comment on this post



Motivation :)



The cars we drive say a lot about us.

- Alexandra Paul

Motivated enough ?


— 19 May 2015   |   Read more or comment on this post



...And I'm back :)


Finally, my website is back to life. After more than a year of losing my domain name.

I decided to make the website really simple using SilverStripe, so here is it.

You will be seeing lots of posts about SilverStripe on here soon.

Will keep it updated on regular bases.

Spread the good news :)


— 25 October 2014   |   Read more or comment on this post