Cazpa.com PHP Developer & Website Designer

19Feb/100

17 – JavaScript Tutorial – JavaScript Try…Catch Statement

This tutorial will show how to handle errors thrown in web browser and how to be able to manage them so the page will look error free. This video was made by Ray Tawil: www.rabihtawil.com Visit the forum at www.coderisland.com Follow us on twitter www.twitter.com Become a fan on Facebook: www.facebook.com

17Feb/100

16 – JavaScript Tutorial – JavaScript Events

This tutorial will talk about javascript events & will give several examples about each different one of them. This video was made by Ray Tawil: www.rabihtawil.com Visit the forum at www.coderisland.com Follow us on twitter www.twitter.com Become a fan on Facebook: www.facebook.com

28Jan/1026

Send Emails with a Web Form: PHP Scripting

Check this video out at Hi-Res here: www.tutvid.com Files are Located here: www.tutvid.com In the following tutorial we will start with a few html files and we will build an Email Handling PHP script that sends info from your web form to your email! It is pretty easy PHP so enjoy learning and Have fun! I am using Dreamweaver CS3, but you can use pretty much any version of Dreamweaver, just follow closely and try not to make mistakes. Please enjoy and don't forget to check out the site www.tutvid.com

14Jan/1025

PHP Tutorials: Dynamic pages (Part 1)

Creating a standard webpage template, only the content changes when a link is clicked. Saves time duplicating each file, and makes it a lot easier if something needs to be changed, like a menu item, header, or footer.

13Jan/100

Custom CMS – Affordable small business website design

Affordable small business website design.

Owning and running your own small business can be hard work and very time consuming leaving little time to organise or create things such as a company website, online advertsing and search engine optimisation so we have put together the ultimate website package for all small businesses.

What do you get?

A lot of website designers will limit you to how many pages your website can have... we don't! a lot of designers will charge you for the website then the domain and then the monthly hosting fees... we don't

Our package consists of the following:

  • Free hosting for one year.
  • Free .com or .co.uk domain name.
  • Free support whilst your website is hosted with us.
  • Edit your own content, create your own pages with an easy to use online editor just like Word for Windows.
  • £30 Facebook advertising to begin getting your new website noticed.
  • Pick from over 3000 template designs, we will intergrate your logo.
  • Basic logo design if required.
  • Up to 5 extra features such as forum, contact form, gallery and blog.
  • Intergrate your Twitter account + Facebook account with your website.

How do we do all of this?

This package utlizes open-source software such as Joomla and Wrodpress to cut down the development costs so you only pay for the installation of the software, customisation, yearly hosting and your yearly domain name fee.

Why Open-source?

Open-source software has thousands of developers working on the software on a daily basis, this includes security threats, upgrades and additional functionality, this is all ready for you to use and download at no extra cost.

How much does it cost?

Bearing in mind that hosting usually costs around £10 per month, your domain name costs around £15 per year and to get your custom website installed could cost upwards of £30 we are offering this complete service for a low price of just £89.99.

How do I get started?

In order for us to get started we need a deposit of £35.00 to cover the cost of your chosen domain name and the initial setup of your new custom website, once the website is completed then the balance should be paid.


Once we recive your deposit we will contact you within 24 hours for further details, if you need any help or assistance then please use our contact us page.


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

24Oct/090

Update Twitter From Your Website (HTML form)

Here is a small script that allows you to post updates to twitter from a simple HTML form on your website.

First thing you need is the form, this is a simple HTML form, very easy to add to your existing website:

<form name="form1" method="post" action="twitter.php">

Now for the script, just copy and paste this code into a blank document and save as twitter.php, you can name it what you want just remember to change the form action variable:

$username = ($_POST['t_user']);
$password = ($_POST['t_pass']);
$message = ($_POST['t_update']);

$url = 'http://twitter.com/statuses/update.xml';
$curl_handle = curl_init();
curl_setopt($curl_handle, CURLOPT_URL, "$url");
curl_setopt($curl_handle, CURLOPT_CONNECTTIMEOUT, 2);
curl_setopt($curl_handle, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl_handle, CURLOPT_POST, 1);
curl_setopt($curl_handle, CURLOPT_POSTFIELDS, "status=$message");
curl_setopt($curl_handle, CURLOPT_USERPWD, "$username:$password");
$buffer = curl_exec($curl_handle);
curl_close($curl_handle);
if (empty($buffer)) {
    echo 'message';
} else {
    echo 'success';
}

And that is it, if you want to set the username and password then all you need to do is change:

$username = ($_POST['t_user']);
$password = ($_POST['t_pass']);

// to

$username = 'yourusername';
$password = 'yourpassword';

http://cazpa.com/wp-content/plugins/downloads-manager/img/icons/winzip.gif download: Web To Twitter (957B)
added: 24/10/2009
clicks: 85
description: Post updates to Twitter from your website (Script)

   
Powered by WordPress Lab