Category Archives: Tutorial

home » Archive by category 'Tutorial'

How To Earn Money By Uploading Videos Like A Supply Of No Cost Traffic

Not everybody includes a skill in photography. It is easy to obtain a digital camera. The engineering has paved just how for that gizmo being affordable. In case you are only starting to find out nevertheless, you realize that your own pictures are wonderful, you might too think how to earn money on the internet from these kinds of materials. You may have been aware of the many ways that folks have obtained profits from online sources. Today any time times are usually difficult, you must be creative inside thinking of methods how you may get extra money.

So how do you help to make make money uploading photos that you’ve used? As well as that will buy them while you are usually amateur and you’re not necessarily identified on this field? You don’t must be well-known to find yourself in this line of function. When you have been aware of small share photography, become familiar with how the pictures, their high quality as well as originality will be the elements that may matter here. You may upload your own photos on websites online which accept these types of supplies. Your own images is going to be displayed together with watermark. If someone else receives serious using the image, they’ll buy them from the web site and you will be paid in the process.

internet-marketing

If you are pondering that or what forms of businesses start using these supplies. You will end up surprised that we now have many organisations, both beginning, small, and huge businesses that use inventory pictures that they’ll get on the internet. They use the actual photographs upon campaign components like literature, leaflets or even catalogues. Some organizations make use of the photos independently web sites.

The world wide web now’s one of the best areas for cash producing options also it should go exactly the same for photographs. You can find websites where you can earn vips per obtain on your photos. Though some run $1 per download, there are also those sites offering around earn per download . The one thing you need to ensure is the title of the photos. Just be sure you have not published that anywhere in Stumbleupon, your blog or in any place on the internet who’s could be downloaded free of charge. … Read the rest >>

List of 250+ Social Bookmarking Sites URL

The term “Social Bookmarking” is still very magnificent and useful in Search Engines Optimization. Social Bookmarking is an off-page SEO technique, it is very useful for SEO experts to improve the SEO ranks of their website. This is one of the quickest method to index any web page in search engines like Google, Bing, yahoo, etc.

To submit the url of our websites or the url of our client to social bookmarking sites we depends on search engines and sometimes it is very difficult to find some good and high quality bookmarking websites. Check the list I have created for my own use:

Social Bookmarking Sites List:

  1. https://www.facebook.com
  2. https://www.google.com/bookmarks
  3. https://plus.google.com
  4. https://twitter.com
  5. https://www.pinterest.com
  6. https://www.tumblr.com
  7. http://www.reddit.com
  8. http://www.stumbleupon.com
  9. http://digg.com
  10. http://www.scoop.it
  11. http://tutpub.com/
  12. http://www.plurk.com
  13. http://www.newsvine.com
  14. https://delicious.com
  15. http://www.citeulike.org
  16. https://www.librarything.com
  17. http://www.airpim.biz
  18. http://www.pusha.se
  19. http://linkarena.com
  20. http://www.blurpalicious.com
  21. http://www.bookmark-manager.com
  22. http://www.bookmax.net
  23. http://1look4.com
  24. http://www.linkroll.com
  25. http://www.1888pressrelease.com
  26. http://blogengage.com
  27. http://youmob.com
  28. http://www.pulsimo.com
  29. http://www.bildu.net
  30. http://blokube.com
  31. http://www.blogbookmark.com
  32. http://www.fark.com
  33. https://www.bookmarkee.com
  34. http://www.start.me … Read the rest >>

Basic terms of web robot.txt

What is a Web robot:

In basic, web robot is simply a program. Robot is used to automatically and recursively traverses a Web site to retrieve document content and information. Search engine spiders is the most common types of Web robots. These robots visit Web sites and follow the links to add more information to the search engine database.

Web robots often go by different names. You may hear them called:

  • spiders
  • bots
  • crawlers

Commonly Web robots is used to index a site for a search engine. But robots can be used for other purposes as well. Some of more common uses are:

  • Link validation – Robots can follow all the links on a site or a page, testing them to make sure they return a valid page code. The advantage to doing this programmatically is inherently obvious, the robot can visit all the links on a page in a minute or two and provide a report of the results much quicker than a human could do manually.
  • HTML validation – Similar to link validation, robots can be sent to various pages on your site to evaluate the HTML coding.
  • Change monitoring – There are services available on the Web that will tell you when a Web page has changed. These services are done by sending a robot to the page periodically to evaluate if the content has changed. When it is different, the robot would file a report.
  • Web site mirroring – Similar to the change monitoring robots, these robots evaluate a site, and when there is a change, the robot will transfer the changed information to the mirror site location.

Read the rest >>

5 PHP Interview Questions Series – 2

Question 1: Explain the output of the below code:

Surprisingly to many, the above code will output bool(true) seeming to imply that the and operator is behaving instead as an or.

The issue here is that the =  operator takes precedence over the and  operator in order of operations, so the statement $x = true and false  ends up being functionally equivalent to:

This is, incidentally, a great example of why using parentheses to clearly specify your intent is generally a good practice, in any language. For example, if the above statement $x = true and false  were replaced with $x = (true and false) , then $x  would be set to false as expected.

 

Question 2: What will $x  be equal to after the statement $x = 3 + "15%" + "$25" ?

The correct answer is 18.Read the rest >>

5 PHP Interview Questions Series

Question 1: What will be the output of the code below?

The output is:  bangladesh does not contain bangla

 

So what is the explanation?

The problem here is that strpos()  returns the starting position index of $str1 in $str2 (if found), otherwise it returns false. So in this example, strpos()  returns 0 (which is then coerced to false when referenced in the if statement).

 

Question 2: What will be the output of the code below and why?

The output is:
In the snippet of code there are two key facts that we need to keep in mind: … Read the rest >>

Simple way to create a custom layout in wordpress theme

I was always thinking how some people create completely different looking pages on their WordPress theme. Currently we see that from an static page to ecommerce site is developed using WordPress package. Many sites has different layout for different pages. WordPress provide a simple solution to create custom layout for our website built on wordpress. A custom layout of wordpress page is helpful if we want to have a layout that looks completely different than rest of our blog but still executes on WordPress CMS.

In this tutorial I will try to describe you how we can create a custom page in WordPress using the custom page template snippet.

Lets create a custom page by opening a blank file in an editor. In the very beggining of the page paste the following code:

For example:

Lets save the page as: custom_layout_1.php. The above code is simply giving a name to the template. so we can call our template MyCustomLayout1, but you can call it whatever you like for example: archive, … Read the rest >>

Install LAMP Server Easily using command line

Hello Linux Lovers! The acronym LAMP is derived from first letters of Linux, Apache HTTP Server, Database MySQL, and Language PHP, Perl or Python. We already have shown you how to install LAMP on many platforms. So we can say that LAMP is a combination of operating system and open-source software stack. Lets start the LAMP setup procedure:

1. To install LAMP run the below command:

2. Run the following commands to setup user for your apache server, add permission & enable some modules:

3. Restart the apache server:

4. We will open the /etc/apache2/apache2.conf file in text editor to enable rewrite options. Run the below command:

and modify the below snap of script. … Read the rest >>

Getting started with Sass and Compass from scratch

Recently my team leader has decided use sass for our web projects and I have no idea about sass or compass, even never tried to search about it, lol! So just started searching for tutorials to configure Sass for my project.

Here I am going to write about the following steps that are used to setup and configure Sass for my project as my note for future reference, But wish it will also helpful for them who want to get started with Sass from scratch.

  • What is Sass?
  • Install Compass and Sass
  • Configure Sass and Create a test project

What is Sass?

Sass (Syntactically Awesome StyleSheets) is an extension of CSS that adds power and elegance to the basic language. It allows you to use variables, nested rules, mixins, inline imports, and more, all with a fully CSS-compatible syntax. Sass helps keep large stylesheets well-organized, and get small stylesheets up and running quickly, particularly with the help of the Compass style library.

There are two syntaxes available for Sass:

  • The first, known as SCSS (Sassy CSS) and used throughout this reference, is an extension of the syntax of CSS3. This means that every valid CSS3 stylesheet is a valid SCSS file with the same meaning.
  • The second and older syntax, known as the indented syntax (or sometimes just “Sass”), provides a more concise way of writing CSS. It uses indentation rather than brackets to indicate nesting of selectors, and newlines rather than semicolons to separate properties.

Either syntax can import files written in the other. Files can be automatically converted from one syntax to the other using the sass-convert command line tool: … Read the rest >>

Protect wordPress special files from direct access

Block access to backup and source files. The below script in .htaccess tells the server to look for files with any of this extensions: [filename].config, [filename].sql, [filename].bak and so on, and if so, deny processing requests for such files.It will return a 403 Forbidden error instead.

For extra security we should block access to the WordPress readme.html file and other default WordPress files which publicly display your current WordPress version number. Rather than deleting these files, it’s better to add the following directive to our .htaccess file to block public access to these files.

Lets start with the ultimate guide to wordPress multisite part -4

Previous three articles of this series:

Managing Your Network: Updates, Users and Settings

As well as managing the individual sites in your network, you’ll need to manage the network itself. This will include:

  • Updating WordPress
  • Updating themes and plugins
  • Managing users
  • Customizing the settings.

Let’s take a look at each of these in turn.

Updating WordPress

Updating themes, plugins and WordPress itself via the network admin screens is straightforward: you’ll see a notification if any of your code needs updating and you simply update it in the same way as you would for a normal site. Updating WordPress is a two step process: you need to install the update and then update the network of sites. This is just a case of clicking a couple of extra links which WordPress will guide you through.

Users

The Users screen works in the same way as for a standard WordPress site: it will list all of the users on your network and let you edit and delete them. This will include users that site admins have added to your site as well as users who’ve signed up for a site.

The one main difference is that the Users screen tells you which sites a user has access to. If you want to add a user to a site, you do so via the Users tab in the site settings.

multisite-network-admin-users

 

Settings

You use the Network Settings screen to customise the way your network is used:

multisite-network-settings

Settings you can customise are:

  • The title of your network
  • The network admin’s email address
  • Registration settings: whether users can register accounts and/or sites, whether site admins can add new users, and email domains and site names which are banned.
  • New site settings: the content of the welcome email for site admins and users and the first page, post and comment created on new sites.
  • Upload settings: file types permitted and maximum file size
  • Language settings: the default language
  • Menu settings: enable or disable the plugins menu item for site admins. If you disable this they won’t be able to activate or deactivate plugins.

 Managing and Maintaining a Huge Network of Sites

Read the rest >>

Lets start with the ultimate guide to wordPress multisite part -3

Previous two articles of this series:

Installing and Activating Themes

Only the super administrator of a network can install themes and make them available for sites to use. You can do this in one of two ways: you can allow them for individual sites or you can network activate them. A theme can only be activated on a site if it’s been network enabled or enabled for that site.

Here’s how you install a theme and network enable it:

  • In the Network admin screens, go to Themes > Add New and install the theme in the same way as you would for a standard WordPress site.
  • On the ‘Installing Theme’ screen that appears, click the Network Enable link.

Alternatively, to network enable a theme you’ve already installed, click on Themes to go to the Themes screen, then click the Network Enable link below a theme.

You can also enable a theme just for one site. This can be useful if your network runs lots of sites each of which will need a different theme, for example if you’re hosting client sites. Enabling themes by site means that other themes won’t be available to sites which don’t have them enabled, so there’s no risk of site admins accidentally activating the wrong theme.

To do this, follow these steps:

  • In the Network admin, click on Sites to view all of your sites.
  • Hover over the name of the site you want to enable the theme for and click the Edit link that appears.
  • Click the Themes tab to view the themes settings screen for the site:multisite-enable-theme-for-site
  • Under the theme you want to enable, click the Enable link.

Now when you go to the site administration screens for that site and click on Appearance > Themes, you’ll see the theme you’ve enabled included in the available themes for activation:

multisite-site-themes-screen

Installing and Activating Plugins

Plugins also have to be installed by the network administrator, but they work slightly differently with regard to the sites on the network. You can’t enable a plugin for an individual site: instead you can network activate it, so it runs on every site on the network, or you can just install it, so that individual sites can choose to activate it.

Network activating plugins is useful if you’ve written or downloaded a plugin to provide features which you want all of your sites to have, for example on my network of client sites I’ve installed the Snapshot plugin to ensure that all of the sites are backed up regularly. Here’s how to install and network activate a plugin:

  • In the network admin screens, got to Plugins > Add New and install the plugin as you would in a normal WordPress site.
  • In the Installing Plugin screen, click the Network Activate link.

That’s it! The plugin will now run on all the sites in your network and site admins won’t be able to disable it.

But what if you want to just activate the plugin on one site? That’s done by installing the plugin as a network admin and then activating the plugin if you have site admin privileges for the site.

  • In the network admin screens, got to Plugins > Add New and install the plugin as you would in a normal WordPress site.
  • In the Installing Plugin screen, click the Return to Plugin Installer link.
  • Visit the site admin screens for the site you want to activate the plugin for and click the Plugins link in the admin menu.
  • Under the plugin you want to activate, click the Activate link as you would in a normal WordPress site.

You’ll notice that in the Plugins screen for a site admin, there’s only the option to activate or deactivate plugins, not to delete or update them: … Read the rest >>

Lets start with the ultimate guide to wordPress multisite

In this article I’m going to show you everything you need to know to get started with Multisite and create your own network of blogs or sites.

I’ll cover:

  • What is Multisite and how is it different from regular WordPress?
  • Uses for Multisite (with some examples)
  • When not to use Multisite
  • How to activate Multisite on a new or existing WordPress installation
  • Creating blogs in your network
  • Managing your network, including installing themes and plugins, creating sites and setting up domain mapping
  • Plugins to make Multisite even better.

But first, let’s get some terminology straight. In this post I’m going to use the word network and site to refer to two different things:

  • Network refers to the entire Multisite network, i.e. your WordPress installation
  • Site refers to one of the blogs or sites created as part of the network.

So when I refer to your site, I don’t mean your whole network of sites, but just one of the sites on it. Each network will have a main site, which is created when you install WordPress and which will probably use the main domain for your WordPress installation: that’s still a site. I’ll explain this in more detail as we go along.

So now we’ve got that sorted, let’s take a look at Multisite!

What is Multisite?

The Codex defines WordPress Multisite as:

A feature of WordPress 3.0 and later versions that allows multiple virtual sites to share a single WordPress installation.

This means that by installing WordPress just once on your server, you can run as many sites as you want, and I really mean as many as you want. At the time of writing, WordPress.com hosts approximately 37 million sites, and our own Edublogs.org hosts nearly 3 million educational sites. You won’t be able to host millions of sites on a standard Multisite installation though – later in this post I’ll cover some plugins and techniques you can use to host large numbers of sites. … Read the rest >>