Monthly Archives: June 2014

How to Create Your Podcast’s XML Feed?

Creating and sharing your own mp3 files online, searching and downloading those created by others, that’s what we mean by Podcasting, in brief. Topics may range from sci-tech, business, cooking and pets to sports, humor and latest trends in fashion/design; whatever you could think of and wherever your mind takes you, you could always create a podcast of it and share it.

Who would not have craved for sharing his ideas and thoughts about a latest episode of his favorite TV-show; everybody has an interest or endeavor of his own and would love to share his interest with others of his class.

You may write pages on your blog on what were your feelings when you saw the last scene of the movie “Dark Knight Rises”? but what you could convey about it by creating a less-than-10-min podcast of it will always get more audience and appreciation. Why wouldn’t it? The life and emotion you could always add to your podcasts and the comfort and ease with which you could always listen to those shared by others is nowhere to be found in reading and writing the same thing. By that, I do not mean that sharing by writing is not a thing to do; in fact, everything has a positive side as well as negative and I was just exploiting some of its shortcomings in the light of what one could enjoy with podcasts.

If you have a do-it-yourself kind of attitude and can afford to spend 100$ on the equipment, you can start at once, that’s exactly one of the reasons that people would prefer podcasting over other ways to share music or information, ways like talk shows and radio shows. All these ways have some things in common and these are: you need to have formal broadcasting education, experience and permission. You can’t avoid dealing with sponsors, commercials, managers and the terms and conditions you have to agree with, before you start your work. While podcasting, you do not have to deal with this crap.

Now, hoping that the investment of time and effort I have made in giving you know-how of what podcasting is, would pay off, and wasting no more time counting pros and cons of podcasting, let’s make a leap forward.

I would not be addressing “How to create your own podcast?” in this article, let’s save it for another time. While writing this article, I have assumed that you have already created a podcast, have saved it in your PC in let’s say mp3 format and have uploaded it to a web server. Having done all that, now you would like to distribute your mp3 files among services like iTunes and tell them what it’s about, here comes XML.

Steps you would need to take to create your podcast’s XML are:

Step # 1: Create a web space for your podcast

The 1st thing to do is to create an article on your blog (or website) for your podcast. For instance, if the podcast’s about how to create your first podcast, write few lines about it and then upload the mp3 file you have created.

Step # 2: Create RSS feed of your own

To create the RSS feed of your own, you need to know your podcast’s title, its description and the URL. Copy the sample RSS xml file given below to your text editor (e.g. Notepad) and replace the italicized text with the appropriate information.




The name of your podcast comes here The URL of the web page where you have shared the podcast comes here en-us
℗ & © Your name and the year you have published the podcast comes here (Well, that’s optional)
Subtitle of the podcast being published comes here
Your name comes here
Summary describing what your podcast’s about comes here
What your podcast’s about, in brief, comes here

Your name
Your e-mail address comes here (Again, that’s not among the mandatory fields)







Title of the episode
Your name
A subtitle for the episode
Describe the contents of the episode here

Full URL of the media file for the episode Date, for example, Wed, 15 Jun 2005 19:00:00 GMT Duration of the podcast comes here: HH:MM:SS
Keywords that could be used to search this itune
Yes to explicit if it contains adult content


Step # 3: Save and upload the *.xml you have created for your podcast

Now that you have changed the contents of this xml file, it’s your podcast’s xml, save it as myfirstpodcastxml.xml or give it a name of your choice and add the “.xml” extension to it, that’s it. Upload the *.xml you have just created to your webspace.

Now and then, you would have another episode to share, but that’s not a big deal now that you know the drill. You would need to duplicate block and put the new block over the previous one. Replace whatever’s in it about previous episode with the information about the new episode, save the file and upload it Voila!

Step # 4: Test your feed

To test your feed, you would need to take the following steps,

  1. Download and install the iTunes software. Just to make your job easier for you, here goes the link: http://www.apple.com/itunes/download/. Fill the “E-mail Address” field and click on the “Download Now” button. Installation’s merely a 3-step process.
  2. Once, you have installed iTunes, to test your feed, choose “Subscribe to the Podcast” from the “Advanced” menu and enter the URL of the feed file in the text box window that appears.
  3. Hit “Return”; if the feed you have created would be working, your podcast and episode will appear in iTunes window. You can check now whether your podcast is working or not.

Choose a Good Product to Sell Online

I think at least 98% of people who work online have no product and make money just by promoting others products. This is one of the best advantages of internet that makes us able to promote others products and earn commission, but you should know what products are better for selling online otherwise you will waste your time and money.

What Products Are Good to Sell Online?

When you want to promote others’ products, you should not fall in love with any special product that does not make reasonable money for you, because you have to spend your time and money to promote and sell a product and so you should choose a profitable product, not a product that you personally like to promote. On the other word, you should promote products that

  1. have a higher demand
  2. have a lower competition
  3. are not too expensive
  4. are not too cheap
  5. have a reasonable commission percentage
  6. have a high conversion rate

A product that has a high demand, should be more competitive but it has a higher conversion rate. When a product has a great demand but it is too competitive, you should forget about it.

Sometime it seems you’d better to find a product that has a lower demand and so lower competition. This can work much better than promoting a product that has a high demand and so high competition. It works when you choose many of these products and promote them at the same time. When a product is less competitive, you have to spend less time and money to promote it. For example if you use pay per click search engines to promote the product, when it is a high competitive one, you have to pay more for each click.

Competition is so important and becomes more and more everyday. So I suggest beginners to choose less competitive products to promote.

Too expensive products are not good to promote because they have a low demand and people become realized to order them so hard. So you have to advertise a lot and spend lots of time and money to find a few customers.

What Are The Best Places To Find Good Products For Selling Online?

For digital products like e-books, ClickBank is the best place. Products are sorted on ClickBank marketplace according to their popularity. So ClickBank already tells you which product has the highest conversion rate and demand. ClickBank has more than 11,000 digital products. Digital products are information. Information is the most common product over the world wide web and is what people look and pay for it a lot.

For other products, LinkShare and Commissions Junction are the best places. These websites have thousands of different products and they also give you some tools like different size banners for each product.

Amazon is another place where you can find millions of products, specially books, to sell online.

Different Types of PHP Variables

Please make sure to read about the PHP Variables syntax here before you read this article.

There are different types of PHP variables. The most important ones are: Numbers, Strings, Arrays, and Objects

Numbers:

There are two types of numbers in PHP programming. “Integers” are the whole and round numbers. They have no decimals and fractions. They can be positive or negative, but they can not have decimals or fractions. For example, 1 and -1 are integer. But 1.0 or 0.1 or 1/2 is not integer.

The other type of numbers is know as floating-point, double-precision or doubles. Floating-point numbers can have decimals. For example, 1.23 is a floating-point number. We can not have fractions in PHP. Therefore , we have the convert the fraction value into decimal and use it in PHP. For example, instead of 1¼ we must have 1.25.

Strings:

String is any character inside (“) or (‘). It can be letters, number, or any character. For example:

“Hello World!”
“1350”
“123/456”
‘Hello World!’

Please note that there are occasions that you will be faced with problems when you have (“) inside the strong. For example if you use the string as below you will receive an error:

“Hey Peter, “What are you doing?””

We have talked about this issue, its reason and its solution in our Basic PHP Syntax article. The problem can be fixed like this:

“Hey Peter, \”What are you doing?\””

or

“Hey Peter, ‘What are you doing?'”

or

‘Hey Peter, “What are you doing?”‘

Arrays:

String has just one value. However, an array is a variable that has several values. Yes, it is possible to give several values to one variable. Each value in each array has a key. If the keys are numbers, the array is called indexed array. When the keys are strings, then the array is called associative array.

For example let’s have an array variable with $_names as its name. We can define this variable like this:

$_names = array (‘Peter’, ‘Mike’, ‘Eric’);

When we define the array the way that it was defined above, then the system starts defining the key for each value from 0. Therefore, each of the above 3 values will have the key as below:

0 for Peter
1 for Mike
2 for Eric

However, we can define the keys too:

$_names = array (1 => ‘Peter’, 2 => ‘Mike’, 3 => ‘Eric’);

In can be coded in multiple lines too:

$_names = array (
1 => ‘Peter’,
2 => ‘Mike’,
3 => ‘Eric’
);

If coded as above, then each value will have its defined key:

1 for Peter
2 for Mike
3 for Eric

What about the associative arrays?

Let’s have an associative array here:

$_Foods = array (
‘Monday’ => ‘Pizza’,
‘Tuesday’ => ‘Beaf Burger’,
‘Wednesday’ => ‘Cheese Burger’,
);

When defined like above, then each value will have a different string key:

Monday for Pizza
Tuesday for Beaf Burger
Wednesday for Cheese Burger

So, above we have a variable that its name is $_Foods. This variable is an array because it has more than one value.

Now, as an exercise let’s have the above variable in a PHP script, upload it to the server or use the XAMPP to see how it works. Please have the below code in a .php file and run it:






Different Types of PHP Variables


Hey Peter, \"What are you doing?\"

"; // this is an example of an "array" type variable: $_array = array ( 'Monday' => 'Pizza', 'Tuesday' => 'Beaf Burger', 'Wednesday' => 'Cheese Burger', ); print_r($_number); print_r($_string); print_r($_array); ?>



If you have done everything right, you see the below output in your browser screen:

The first line shows our number variable. The second line shows our string variable. And the rest of the page shows the array which has 3 values that each of them has a different key.

So, to assign a value to a variable, you should use the “equal sign”. Like this:

$_number = 12345;

$_string = “Hey Peter, \”What are you doing?\””;

Above, we have two variable: $_number and $_string

They could be defined with any name. Like this:

$_first = 12345;

$_second = “Hey Peter, \”What are you doing?\””;

This is how you define the “number” and “string” variables. However, as you see above, there are some different ways to define the “array” variables.

This was just an introduction on the different types of variables. We will talk about each of them more. Also, we will not talk about the “Objects” here in this article, because it is a complicated discussion that does not fit this article.