Posts

Showing posts with the label Tutorial

Practical PHP Tutorial - Master Page I

Chapter 4 Master Page, what is master page? We always here this term whenever we come to server side programming, but what is it? what is the use of it? how and when do we use it? Well, lets come to our project. We have a structure here so far. Let me give the content of the html of the page's body. <div class="center-it" id="main-container"> <table style="width:100%; margin-bottom: 50px;" id="page-holder"> <tr style="vertical-align: top"> <td style="width: 250px"> <div id="div-header"></div> <div id="div-category"></div> </td> <td> <div id="div-cpanel"></div> <div id="div-menu"></div> <div id="div-page"> ::::::::::::::::::::::::::::::::::::::::::::::::: </div> </td> </tr> </table...

Practical PHP Tutorial - Home Page

Chapter 3 Home Page, first page. Here is the plan: A column in left side content comprising Logo and Navigation List A right side container that has the page's main content A footer that has immediate links We are going to use Table Layout to achieve this. You can use relative, fluid or other layouts if you want. But for following the tutorial we are doing table layout. Lets start with the basic html syntax. <!doctype html> <html> <head> <meta charset="utf-8"> <title>My Trading Center</title> <link href="/styles/style.css" rel="stylesheet" type="text/css"> <script src="/scripts/jquery.js" type="text/javascript"></script> <script src="/scripts/script.js" type="text/javascript"></script> </head> <body> </body> </html> I hope you understand this syntax. Again, if you are not familiar with h...

Practical PHP Tutorial - Project Layout

Chapter 2 As I said in the introduction, we are going to develop a simulation of a online stock trading system. A very good project that helps us to cover every aspect of php. PROJECT FOLDERS Create a folder in you root directory named OnlineStock or anything you like. This is going to be our project folder. From now on I will refer this folder as root folder. Create the following folders in the OnlineStock folder. Also create respective files in the OnlineStock/ scripts/ script.js jquery.js styles/ styles.css images/ common/ index.php Note: All the folder names are recommended to be in lowercase only. This will ensure that users will not have difficulty in typing the url, as the php servers are really case sensitive. Scripts Folder will contain all the javascript files. The scripts file is created by you. You have to download the jquery.js javascript library. Please download the latest module from here . Styles Folder will contain all the css files. Images Folder accommodates the i...

Practical PHP Tutorial - Configuration

Image
Chapter 1 Editors Text editors for php can be as simple as notepad and as sophisticated as Dreamweaver. Its you wish. But I prefer to use  webmatrix  by Microsoft or  SublimeText . These are really simple to configure and you. Or you can use  Notepad++ . The latter is simply a syntax highlighter. Servers Configuring server is a process needed for running php. Php is server side language. We can use following servers that provide facilities to host php and render them. XAMPP for Windows/Linux/Mac XAMPP is a popular server, supports all platforms, that packages all that we require PHP binaries -latest xampp has latest php binaries. phpMyAdmin - that is used to manage the tables and databases in MySQL MySQL - contains our databases FileZilla - and FTP manager that required to upload file to server(not this local server, but to your domain). Every prefers it as has everything in it by default. You can download it  here . WAMP Server It is a sub package of xampp, but...

Practical PHP Tutorial - Introduction

Chapter 0 Hi friends! Welcome to do some practicals in PHP. Searching for a tutorial that guides you through the features of web developing? Here you are, I am going to walk-through you in developing a fully working website constructed using HTML and PHP. 'course this includes CSS and some scripting. For better understanding, we will be developing a web application that simulates a typical Online Stock Trading system like ebay. Before we start, lets prepare a checklist that will ensure our progression in web development. A Server (I will tell you how to configure a one) Any text editor Cool! A long list(?). Well, whenever you are ready, let's dive in! If you already know HTML, CSS and JavaScript, you can go directly into developing Or you can do some research in them at w3schools  and come back

A Simple Calculator [Android]

Image
We are going to see how to create a simple calculator for Android platform. This is like a hello-world program and is really easy to do. Please Leave A Reply To Improve The Content Tools we need / that I used : Eclipse with All android plug-ins installed ( How to install? Ans:  Here  ). Android SDK with at least one platform installed (I use Android 4.0.4 ). Prior knowledge required : Well, you need to how Mark-Up language works. At least you should know what is tag and its attributes. Best way to learn, learn HTML. We use XML that doesn't differ much from HTML except for the namespaces, you use android:[attribute] = "" instead of [attribute] = "" A little java on handling the data types and simple castings. How to run apps in android phone. Just click them on the icon :P. How to recommend this tutorial to others : Click the   +1  button at the end STEP I : Starting Your Project Start Eclipse and create a new project ( File -> New -> Project... ). In the ...