February 17, 2015

How to customize themeforest theme into wordpress?

Before You Begin install fresh WordPress

Choosing A Theme

Picking the right WordPress theme for your portfolio can be difficult. I recommend that you start by browsing the list of portfolio themes on Themeforest.

And then follow the following step to integrate theme into wordpress.


  1. Read The Documentation
  2. Install The Theme
  3. Review Theme Options
  4. Start Customizing
  5. Create A Homepage
  6. Create An About Page
  7. Create a Services Page
  8. Create a Contact Page
  9. Create a Portfolio
  10. Add a Blog
  11. Add A Menu
  12. Working With Widgets
  13. Wrapping Up 

February 14, 2015

How to get years between two dates using PHP

You can used strtotime() php function to convert two dates into years, months and days. From this it's rather easy to calculate different time periods.

$date1 = "2007-03-24";
$date2 = "2009-06-26";

$diff = abs(strtotime($date2) - strtotime($date1));

$years = floor($diff / (365*60*60*24));
$months = floor(($diff - $years * 365*60*60*24) / (30*60*60*24));
$days = floor(($diff - $years * 365*60*60*24 - $months*30*60*60*24)/ (60*60*24));

printf("%d years, %d months, %d days\n", $years, $months, $days);

February 10, 2015

PHP get image from page

$url="Site URL";

$html = file_get_contents($url);

$doc = new DOMDocument();
@$doc->loadHTML($html);

$tags = $doc->getElementsByTagName('img');

foreach ($tags as $tag) {
       echo $tag->getAttribute('src');
}

How to enable htaccess on localhost

Find your apache directly which uses the php installation .

2) Open your httpd.conf  with notepad, Which is located in the path \apache\conf directory
3) Find the code like below
1
  #LoadModule rewrite_module modules/mod_rewrite.so
Find your apache directly which uses the php installation .
2) Open your httpd.conf  with notepad, Which is located in the path \apache\conf directory
3) Find the code like below
1
  #LoadModule rewrite_module modules/mod_rewrite.so
4) Remove # from above code
5) Save httpd.conf file
6) Restart your apache server
4) Remove # from above code
5) Save httpd.conf file
6) Restart your apache server

Most Top 10 Web Hosting Service

The most top 10 web hosting listed in below are awarded based on price, features, performance, reliability and technical support.

BlueHost - $3.49/mo

InMotion Hosting - $3.49/mo

JustHost - $2.50/mo

Arvixe - $2.80/mo

A2Hosting - $3.92/mo

HostGator - $3.71/mo

GreenGeeks - $3.96/mo


HostMonster  - $3.49/mo


Why They Are the Top 10 Web Hosting?

All these web hosts offer rich features, fast speed and good uptime to run PHP open source scripts very well as below.

  1. MySQL and PHP of the latest advanced version to ensure a 100% compatibility with every version of PHP based applications.
  2. Make use of suPHP for website security.
  3. Enough PHP memory_limit of 128 MB or higher to meet the high memory requirement of supporting a complex website.
  4. User-friendly control panel enables customers to manage every aspect of their accounts and websites with the least effort being made.
  5. 1-click scripts installer enables webmasters to install 100+ open source scripts with a few clicks in 1 minute.
  6. Advanced data centers with robust web servers and some other first-rate facilities to achieve the fast speed.
  7. At least 99.9% uptime for websites to be online all the time.
  8. 24×7 monitoring ensures that customers are able to run websites smoothly at any times
  9. 24×7 technical support through phone, email and online chat enables software users to concentrate on business without being distracted.

February 8, 2015

Use youtube video embed code in responsive websites

Many peoples use the internet in their smartphones and tablets. So it is important to create website responsive. Use youtube video embed code in responsive websites, we want to explain about responsive designs and HTML. The concept responsive webdesign is now firmly established as the best way to create a website for mobile users . Through this concept all website is flexible with different screens.

You can used following simple CSS and HTML for that.

Write CSS

.youtube-container {
position: relative;
padding-bottom: 56.25%;
padding-top: 30px; height: 0; overflow: hidden;
}

.youtube-container iframe,
.youtube-container object,
.youtube-container embed {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}

Write HTML

<div>
<iframe width="560" height="315" src="//www.youtube.com/watch?v=znK652H6yQM" frameborder="0" allowfullscreen></iframe>
</div>

At above example the class “youtube-container” using in embed div and css. It will automatically resize with all mobile devices.


Freelance Job Sites For Programmers & Designers

Being a freelancer can be extremely advantageous and it is probably a dream for many designers and developers. Not only you get to choose the job you are really interested in, you also have total flexibility in terms of time, whom you want to work with and where you want to work at.

Odesk

Since its inception in 2004, this online marketplace truly embarked a revolution in the way world works. It’s win-win approach for both service providers and employers with meaningful work as well as top-flight talent, makes it an asset for both parties. Average size of a job here is $5,000.

Freelancer

You can post any project you need done and receive bids from our talented freelancers within minutes. Compare their proposals and price, then select the best freelancer to complete your project. Easy!

Integrating Google reCAPTCHA v3 in HTML Form with PHP

  What is Google reCAPTCHA v3? Google reCAPTCHA is a free service that helps protect websites from spam and abuse. reCAPTCHA v3 is the lates...