Archive for the 'Web Programming' Category

How To Give A Price Quotation For Building A Website

How much does it cost to create a website? As a web developer, I often hear that same question over and over from business acquaintances I get into contact with. Some would like to build a business website, thinking that it is a cool thing to do. Others would think that building a website is much like typing a thesis paper on a word processor and therefore it should be easy and cheap. If you were to answer that question, what would your response be?

Three hundred thousand Pesos? Fifty thousand? Five thousand? One thousand? Just a cup of McDonald’s hot chocolate?

Any Web Developer worth his salt and who has been in the business of developing websites — or Web Applications for that matter — is aware that the first question raised above is actually incomplete. It doesn’t even give you a hint as to the nature of the project. So any figure you that you will come up with based on that question alone is in fact meaningless. But, on the side of the customer (the one asking for a price quotation), it is a good way of spotting the kind of web developer you are talking to – whether an amateur or a real professional.

“Hey Carlos, if you don’t come up with a figure right then and there, how will the client know if he will hire you to do the project or find someone else?”

Thanks for asking and you have a good point. First, I don’t regret losing a client who doesn’t know what he is about to do. If I should be working WITH a client, I’d like to do it with someone who awards a project not on the basis of price alone, but on the benefits he will derive in knowing that he is working with a real problem solver. Second, as a web professional, I always make it a point to remember that I am also a consultant. It is my job to dissect what my client’s real needs are and offer a few suggestions. It could be free during the initial stage, I’d be glad to do that. Just because a client wants a business website doesn’t automatically mean that it is the perfect pill for him to shallow.

“So Mr. Consultant, how do you proceed?”

If you are new to Web Development Business, read carefully. I am about to share some priced possessions that I’ve been keeping in my treasure chest of wisdom learned from being a practicing web developer and software consultant. I am assuming here that you are dealing with a client who relies on you for guidance in showing him the right way to develop his website.

Here are the five points to remember:

Read complete article »

Form Handling with PHP

One of you the ways you can provide interactivity to your website is by providing data entry forms where site visitors can send their orders, feedbacks, inquiries, subscriptions and the like. Forms are even more important in database-driven Web Applications. Can you imagine anything useful in a web application that doesn’t provide forms. Forms are primarily the main interface where users get to interact with an application.

In tutorial, you will learn how to handle HTML forms in PHP. I am assuming that you are thoroughly familiar with creating HTML Forms. Can you do it by hand without the aid of and HTML Editor? If not, be nice to your self and fire-up that DreamWeaver Icon you placed on your desktop and get ready to rock and roll.
Read complete article »

Control Structures

Under normal conditions, an execution engine like the PHP always executes code instructions on a line-by-line basis. That is, it performs the first statement, then the second statement, etcetera, until the last statement. A program like this would not be really be doing any useful application.

Read complete article »

Variables, Constants and Simple Arrays

Dealing with data always involves the use of constants and variables. This is the primary topic of this tutorial. The concept is really easy to understand and by the end of this tutorial, you should gain the following knowledge:

  • Differentiate a variable, a constant and a literal.
  • Learn the different data types supported by PHP.
  • Learn how to create and use variables and constants in PHP Script
  • Create and use simple PHP Arrays
  • Know the difference between PHP String in Single Quotes and in Double Quotes

Read complete article »

PHP Syntax

What I like about PHP is that it is very easy to learn. You will find that out for yourself after this simple lesson on the basic syntax of PHP. At the end of this tutorial, you should be able to:

  • Identify the PHP Tag.
  • Write a simple script and save it to the server.
  • Run a simple PHP Script from the browser.
  • Learn about PHP Statements.

Just like most modern Web Scripting Languages, PHP is also a server-side, HTML-embeded script; that is, you can mix PHP code into your HTML tags. To demonstrate what this means in actuality, consider the program snippets shown. Listing 1: sample.php

Read complete article »

Installing PHP on Windows

As you are reading this article, chances are good that you are also using a flavor of the Windows Operating System to access the website. Since it is the most widely used operating system, and I bet in a way you have easy access to it, I’ll focus the discussion on Installing and Running PHP under Windows.

Without further ado, listed below are the things that you need to follow on.

Read complete article »

Self-Paced PHP Tutorial for the Filipino Programmer

In a series of articles, I will be writing some tutorials on the basics of PHP. I have done a number of workshops and lectures in the past demonstrating the use of PHP and MySQL in building dynamic, database-driven website, but I have not really origanized my work in one coherent manual where people — including those who are really new to PHP and want to get up to speed with it — can refer to for a quick guide. I have young students in Davao who come to me for help in learning PHP. There are also other software professionals who are just plainly curious and want to explore about PHP and compare it with their current development tools like JSP or ASP.Net.

Read complete article »

Why PHP and MySQL

Web Developers have tons of server-side scripting tools to choose from. Basically, these tools can be grouped into three major categories: a) Microsoft-based, b) Java-based, and c) LAMP-based (LAMP has come to mean Linux, Apache, PHP, Perl and Python.) Anyone wanting to develop a web-based application eventually has to decide which camp he should jump.

Read complete article »

AJAX Misused

I was approached by a friend who was so proud to announce that they use a lot of AJAX in their projects and asked if I ever tried a single AJAX Code. “Do you know AJAX?”, he asked.

“Well, I don’t need AJAX in any of my applications.”, I said matter of factly, implicitly suggesting my little knowledge on the subject . ”Tell me what do you use AJAX for?”

Read complete article »

Playing Yoyo with Wordpress

If you have been visiting this website for some time now, perhaps you will notice the crazy changes I have introduced.

At first there was Wordpress running the entire site. I was really pissed off with the spams I receive everyday coming from this website. So I decided to remove Wordpress. The funny thing is my other sites run Wordpress on their blog sections allowing me to post my articles easily. It was really a snap using Wordpress.

Read complete article »