Most of today’s companies are starting to realize how important SEO and online marketing is. In fact SEO is now a major factor to drive in sales to most companies. Nevertheless there are people who are still skeptical about SEO and online marketing. Don’t forget that most internet users will use the search engine in order to get results instantly.
Function extract image from HTML content using PHP via regex
If you would like to only extract out image from your HTML contents. You may use the function below to do so.
What the codes does is, it will scan through your HTML contents and look for image patterns, and return all of your images in array format.
#—————————————————————————————————-
# Function to get clean image
#—————————————————————————————————-
function getcleanimage($data){
$pattern = “/src=[\"']?([^\"']?.*(png|jpg|gif|jpeg))[\"']?/i”;
preg_match_all($pattern, $data, $images);
return $images;
}
#—————————————————————————————————-
Arrived @ Frankfurt, Germany
We arrived at Frankfurt International airport on 17th December 2011 6.45 AM. The weather was fine and nice enough till we get to feel the real weather outside the airport, it was very cold and windy. We headed to Koln straight away from Frankfurt, which took us up to 3 hours of driving approximately.
The highway “Autobahn” are fantastic and no doubt about it. It’s a super highway for super cars. BMW and Mercedes are common to be seen on these highways.
Flying to Germany for UAV Training
Today I will be flying off to Germany. My flight is scheduled on friday 16/12/2011 11:55PM. We will be flying on in a team. Basically we’re going there for a training on UAV.
This will be a memorable experience for us. Our 10 days trip will be a challenge for us, as we will be training in winter season. We will land at Frankfurt International Airport, and will have a night at Cologne, then move on to Kassel the next day.
Generate HTML Output via PHP Class
This is a simple example how to set HTML input in your PHP class. There are many ways to write,it, it’s up to you to decide the way of writing it.
PHP file to generate HTML output
PHP Shorthand Writing ” if else “
Here is how to write if else shorthand writing. It is useful in your code in order to keep your code neat and tidy. Assume you have a HTML form with input name “WEBSITE_TITLE” which will then be posted to a processing page.
$WEBSITE_TITLE_VAR = !empty($_POST['WEBSITE_TITLE']) ? $_POST['WEBSITE_TITLE'] : null;
How it works :
- Set your condition at beginning of the statement and the opposite value of the false condition. Or you can also do it the other way round which is true -> false OR false ->true.
- 1st it will check whether the value of $_POST['WEBSITE_TITLE'] is empty or not.
- If $_POST['WEBSITE_TITLE'] is not empty, then it will hold the posted value
- Else “?“ $WEBSITE_TITLE_VAR will be null.
Developed “tiaraheights.com”
I just finished developing “tiaraheights.com”. Basically it’s a simple site providing free email service for Tiara Heights residence. It took me 1 hour and 40 minutes to complete this whole site.
This site is running on PHP 5 & MySQL with JQuery framework. To view the site just go to http://tiaraheights.com
Simple Video Editing on iPad with iMovie
Instant and simple video editing can be done with your ipad. iMovie can be considered as one of the best app to edit your video instantly. It’s very user friendly and easy to use. The best part of it is the integration with social video site where you can upload straight away to any of your social video account such as YouTube,Vimeo,Facebook etc. Take a look at the video below, all images and raw video are taken with iPad2. It only took me 10 minutes to edit this whole video in iMovie.
Langkawi Year End Trip
Our year end family trip to Langkawi. We stayed at Sri Kijang Resort located at Pantai Cenang. We got the chance to lodged in at Sri Kijang Private resort owned by Bank Negara Malaysia, and only to be vacant by Bank Negara Staffs. Fortunately we got in is because my wife’s brother is a staff at Bank Negara.
Location of the resort plays an important role as well, especially for those who likes sight seeing and beach activities.
Saudi Arabia Part 1
It was May 2010 when I first landed my feet on Saudi Arabia.. The weather is different from Malaysia, here the humidity rate is higher compared to Saudi Arabia. The people here seems busy with their business most of the time, but the amazing part here is that during Adhan (Call for Prayer), they would immediately closed up their shops and businesses and head for prayers at the mosque.
