Archive for the 'Information' Category

Should You Concentrate on PHP as a Freelance Programmer?

Thursday, November 18th, 2010

Getting into the business of being a freelance programmer can be exciting, but also confusing for those who have a too broad scope of languages and skills. Sure, it can be useful to know a lot of things, but it can turn into a detriment when you’re trying to focus on one particular aspect of your skillset that you’re truly good at. PHP can make a great answer to your questions and offer you a great way to invest your time and skills – but it’s not the most suitable choice for everyone.

The most important thing to consider when thinking whether to market yourself as a freelance programmer towards people who need PHP is the matter of security. With security being such a top priority in today’s websites and Internet-related applications in general, you really have no excuse for letting your solutions slip in that regard in any way. If your websites fail to meet the basic expectations for a secure service, your clients are going to dwindle and eventually all go away.

Also, how good is your design? If you can offer a complete scripting + design package to your clients, it can instantly make your offer a much more attractive one. With that in mind, it should be noted that HTML and CSS aren’t that difficult to learn, so if you’re not that good in that area (or even can’t do anything at all), you should take some time to familiarize yourself with at least the basic concepts.

Learning HTML the Easy Way

Friday, September 10th, 2010

Learning HTML or Hypertext Markup Language does not require any professional IT experience. This computer application is as simple and easy as it may seem to be. Performing Hypertext in the Word document is as simple as linking a keyword to direct a reader into a specific link. These said links can either be found on the same or other pages with the link that carry on a much broader explanation and variety of other web links of the same topic. This basic HTML Tutorial would best describe common HTML tags needed in learning the fundamentals as well as advance HTML.

Date Validation Tutorial

Thursday, June 10th, 2010

Date Validation in PHP

This tutorial will show how to Validate Date fields using PHP code in ‘dd/mm/yyyy’ Format. It is a good practice to validate the date value when it is obtained using forms through user input.

PHP CODE:

//Check whether the submission is made
if(!isset($_POST["hidSubmit"])){
//Declarate the necessary variables
$strdate="";
$strdate1="";
DisplayForm();
}
else{
$strdate=$_POST["txtdate"];
//Check the length of the entered Date value
if((strlen($strdate)<10)OR(strlen($strdate)>10)){
echo(“Enter the date in ‘dd/mm/yyyy’ format”);
}
else{
//The entered value is checked for proper Date format
if((substr_count($strdate,”/”))<>2){
echo(“Enter the date in ‘dd/mm/yyyy’ format”);
}
else{
$pos=strpos($strdate,”/”);
$date=substr($strdate,0,($pos));
$result=ereg(“^[0-9]+$”,$date,$trashed);
if(!($result)){echo “Enter a Valid Date”;}
else{
if(($date<=0)OR($date>31)){echo “Enter a Valid Date”;}
}
$month=substr($strdate,($pos+1),($pos));
if(($month<=0)OR($month>12)){echo “Enter a Valid Month”;}
else{
$result=ereg(“^[0-9]+$”,$month,$trashed);
if(!($result)){echo “Enter a Valid Month”;}
}
$year=substr($strdate,($pos+4),strlen($strdate));
$result=ereg(“^[0-9]+$”,$year,$trashed);
if(!($result)){echo “Enter a Valid year”;}
else{
if(($year<1900)OR($year>2200)){echo “Enter a year between 1900-2200″;}
}
}
}
DisplayForm();
}
//User-defined Function to display the form in case of Error
function DisplayForm(){
global $strdate;

Explanation
*Expression ^[0-9]+$
^ :-Indicates the beginning of the string
[0-9]+ :- indicates that the string begins with a number between (0-9) and is followed by numbers.
$ :- Indicates the end of the String

Basic PHP Syntax

Monday, May 10th, 2010

A PHP scripting block usually starts with . The best thing about PHP scripting block is that you can place it anywhere in the document. placed anywhere in the document.

On servers with shorthand support enabled you can start a scripting block with .

It is recommend that you use the standard form

< html >
< body >

< ? php
echo "Hello World";
? >

< /body >
< /html >< /em >

Every line in PHP ends with a semi-colon. The two basic output text in PHP are: Echo and Print.

Smarty – the right stuff?

Monday, June 22nd, 2009

Smarty is categorized as a “Template engine”, though developers describe it more detailed as a “Template/Presentation Framework”, that offers developers and programmers ample tools to make extensive coding tasks easier by replacing tags with their appropriate counterparts. Smarty is aimed to hasten and make the development process simpler for all who aim to develop pages for the internet. (more…)

Cross-Site Scripting Tips

Friday, May 22nd, 2009

There are several platforms on which web pages are deployed and with thousands of people using different versions of software, scripting languages should be endowed with the proper set of tools that determines the proper set of scripts. Scripts for one platform may differ in form in another so a conversion method should be deployed to allow them to properly interface with each other. Though done behind the scenes, it is of utmost importance making the web experience more enjoyable with an example of the script below for reference. (more…)

PHP – Wide Gaping Security Risk?

Wednesday, April 22nd, 2009

With many of the internet’s web pages and applications based on PHP, many questions are being raised by the security and robustness of the system so to speak as we go through years of rapid development. Now the scripting language that is PHP isn;t meant to be weak security-wise and the problem lies with the sloppy work programmer have done all through the years that have left quite large and gaping security holes in something we so rely on. One event that greatly tripped the panic meters of developers the world over is the departure of one of the world’s leading authority on PHP, Stephan Esser, one of the founders of the language and a foundation of the web with him stating as an explanation that the security issues that are currently coming out are happening without his knowledge. (more…)

Separating Roles

Sunday, March 22nd, 2009

In web development, it is quite necessary to separate the roles of the page designer and the programmer which handles more of the logical or program side of the whole page. Designing a page is the task of making it interesting and quite pleasing to the prospective users who want something that is easy on the eyes yet loaded with functions that performs their needs. The template designer handles the framework onto which the logic is presented visually which is the norm of the internet which relies on graphics and other nifty trinkets to make their users happy customers. (more…)

Don’t be an elitist!

Tuesday, February 10th, 2009

One of the most basic mistakes people make in PHP programming is failing to resize their images and files. Because it is supposedly a “small” thing, this is precisely what makes it easy for many PHP programmers to overlook.

Dont be an elitist!

Don't be an elitist!

What the failure to resize simply does is to make your site harder to access, as people with slower internet connections or short attention spans (or worse, both) will just skip viewing your site altogether, which would be a shame if your site and your content is well crafted. You might as well put a big bright disclaimer on your site that says, “People with slow internet connections – GO AWAY.” And that, friends, is elitism, albeit unintentionally done.

PHP- To Fix the Broken WEB

Monday, January 12th, 2009

internet3The internet is a collection of broken stuff that may be too large for anyone or any company to fix so what do you do? Fix it with the growing popular PHP language that has been used again an again and is responsible for most of the web applications we use over the internet today. Being used by most open-source developers it has provided most of the web’s most innovative applications with millions of pages and users. From blogs to sites and apps, they all have one thing in common, PHP. Too many experts claiming this and that, unorganized moves to improve and develop systems for the net has left it broken as hell and the best way to fix it? (more…)