Cazpa.com PHP Developer & Website Designer

6Dec/090

PHP Functions (Arguments & Values)

Creating a basic fuction

Functions are great for cutting down on code and making things easier to read when developing, you can create a function
for just about any process including conditional statements, loops or even calls to other functions.

This article will show you how to create simple functions for your applications and website's.

First things first we need to know how to define and invoke a function:

<?php
// Define your function
function displayEinsteinQuote()
{
	echo "Do not worry about your difficulties in Mathematics. I can assure you mine are still greater.";
}
?>
<?php
// Invoke your Albert Einstein Quote
displayEinsteinQuote()
?>

Once you invoke your function this will output:

Do not worry about your difficulties in Mathematics. I can assure you mine are still greater.

Now I know what you are thinking, why not just echo the quote to begin with? well the next example will show you how to use
a variable to create a more dynamic function

<?php
// Define your function with simple argument
function ConvertStoneToKilos($stone)
{
$diff = '6.35029318';
$total = ($stone*$diff);

	echo "$stone stone is the equivilant to $total kilograms";
}
?>
<?php
// Invoke the function
ConvertStoneToKilos(11);
?>

This will convert eleven stone into kilograms (69.85322498), of coarse changing the varaiable in the brackets will change the output!

26Nov/090

Make Money Online (Beginners)

Making Money Online

Making money easy by surfing the Internet is something that is always a big question on peoples minds, we hear on a daily basis about people making 5 or 6 figure sums working online and I would like to share a few thoughts and ideas with you.

Platform

Having a platform to work from is always a great idea (although not 100% necessary), your platform could be a website, blog or even a group or page on a social networking website, there are many ways to create a “home” for your cause or product you are trying to promote.

If you are just starting out then no doubt you have come across pay per survey or quiz website’s and you may already have an account and tried, my guess is that you either got bored or found that you did not make enough money to make it worth your while, for this reason I am not going to endorse or link to any pay per survey websites!

To begin with there is some things that you need to know:

  • If it seems to good to be true then you should research more because it probably is to good to be true, many people loose money by paying up front, never pay money up front… ever!
  • If you need money NOW then online marketing is not for you, online marketing is something that does not happen over night but WILL give you a steady revenue stream if it is done right.
  • Use your common sense, this is the most important thing you need to be doing at all times when working or looking for wok online.
  • Get rich quick schemes only benefit the person who comes up with the idea, we have all seen it; the guy who has the nice car, nice house and holiday home, a nice banner on the website with floating money… and they are giving it away for next to no money???? – No money up front right?

To earn money online you still need to “work”, now this does not have to be 9-5 but the more you put in, the more you get back.

You will need a niche or topic, this will need to be something that you love and have a passion for, you will get bored otherwise.

When picking a niche you should think outside the box, people search the Internet for literally everything today right down to the smallest things around your home, you need to find a gap in the market, I bet you have in the past said something like: “why is there no ??? online” or “I can never seem to find a decent ???”., why not create it?

Some of the most profitable website’s online are blogs, you can get a free blog at blogger.com or Wordpress.com or you can invest in some affordable hosting and get yourself a domain name, most hosting companies have website builders where you can easily create a website.

Once you have your “platform” you will need a way to bring traffic or visitors to your platform, the only true way to do this is to create good quality information (content), so say you have picked your niche / topic and it is laver lamps, you could write about how they work, safety, tips, make your own (if such a thing exsists), where to buy them from ect, this is probably a small topic but then I bet there is a large market for them!

So you have now written about your niche and need to open the revenue streams, you will need an affiliate program, there are many places to sign up (free):

Other than that you can look for relevant website’s to your platform and see if there is an affiliate link, sign up and promote just like this weight loss website where you could earn up to 30% of each sale (about $15 per sale!).

After you have your platform, your links added and your content then its just about plugging your website and getting visitors to do the buying J

Take a look at our SEO category for promotional tips!

Good Luck

21Oct/090

Subscribe

Join our mailing list

After building website's for many years I have decided to change my business model and the way that I deliver my service, Over the years I have made hundreds of PHP scripts, website templates and website's and have found that I am getting more and more people ask for the same project types over and over again so now I am about to release all of my scripts, most will be free and some of them will be for a small fee nothing like other website's are charging.

All you need to do is subscribe and I will let you know when scripts become avaliable, some will come included with Master Resale Rights!

You may un-subscribe at any time if you feel that you no longer need my free PHP scripts, cheap scripts, tips, tricks, and strategies on how to make your website profitable

Subscription

Fill out the form below to signup to our blog newsletter and we'll drop you a line when new articles come up.

Our strict privacy policy keeps your email address 100% safe & secure.

G-Lock opt-in manager for bulk email software.

   
Powered by WordPress Lab