January 29th, 2007 at 12:55 pm (PHP Articles, Fast PHP Tutorial Series)
Good Day!
Here is yet another article of Fast PHP Articles Series. Today we are going to discuss ARRAYS. We will learn its syntax, its different types, the different built-in Array functions that help to perform different tasks related to Arrays quickly and different practical examples explaining the use of Arrays in PHP.
By the end of this article you should be able to ,
- Define Arrays 
- Use different types of Arrays
- Use different Built-in functions related to Arrays e.g list(), each(), var_dump, print_r, var_export()
- Write basic as well as complex php code using Arrays.
- Working with multidimensional arrays
- Understanding Foreach loop with the help of different examples
Read the rest of this entry »
2 Comments
January 24th, 2007 at 1:58 pm (Linux Articles, Server Administration)
+========================================+
Author: Nayyar Ahmad
Contact: nayyares *AT* gmail *DOT* com
Dedication: To my pets - boby and tavi.
+========================================+
Preface:
Some times, we are required to resolve our Internal domains at local nameserver while External (Internet) domains from ISP’s nameserver. There are different solutions to this problem, but in this howto, we are going to solve it through configuring combination of caching-nameserver and BIND 9 together.
Theory Behind Caching-Namerserver and BIND 9:
Caching-Nameserver is a type of nameserver that will resolve a web address (domain name) from its next or master DNS, and will keep those entries in cache, after first time resolution it will resolve DNS queries locally, untill its TTL (Time To Live) is expired.
BIND 9 is used to resolve domain resolution queries from it own database, as it is SOA (Start Of Authority).
Read the rest of this entry »
Comments
January 24th, 2007 at 10:26 am (PHP Articles, Technology Articles)
Full Article: http://www.phpdeveloper.org/news/7152
DevShed has posted the last installment of their series looking at the use of the Facade design pattern. This time, they’re looking specifically at its use in handling file data for the items on the local file system.
I’m going to continue demonstrating the application of the facade pattern, this time by developing yet another illustrative application. It will take care of processing the contents of a selected data file in different ways.
They start from scratch with the development of the sample script - creating a simple class that implements the pattern, then modifying it to work as a string processor and finally pulling them together to read the data for a file and echo out the processed results.
Comments
January 22nd, 2007 at 2:58 pm (Linux Articles, PHP Articles, Apache Articles, Server Administration)
+=======================================+
Author: Nayyar Ahmad.
Contact: nayyares *AT* gmail *DOT* com
Dedication: To Baji (my mom). for all those efforts, she did for me.
+=======================================+
Preface:
.htaccess is used to provide facility of changing configuration per directory basis, this file can contains one or more directives that is going to be forced on the directory contains .htaccess.
.htaccess is papular name of this configuration modification file, you can change this default name by changing AccessFileName parameter in apache config file. i.e.
AccessFileName .anyname
In this howto, I will take a dumy scenario of two parallel level subdirectories and will implement password authentication on both of them.
Read the rest of this entry »
Comments
January 20th, 2007 at 10:05 pm (PHP Articles, Fast PHP Tutorial Series)
Related Articles:
FAST PHP Tutorial (Part 1)
How to Install PHP on Windows (Fast PHP Tutorial Part 2)
How To Install PHP On Linux
How To Install Apache on Windows
Easy Installers to Install PHP, MySQL, Apache on Windows
PHP Programming Basics
Operators in PHP
Decision Making using IF-ELSE in php
Decision Making using PHP Switch Statement
Hi guys,
I have been receiving very good feedback from different users from different countries and I am loving it
I have replied to all of those students who have sent me their assignments and have asked any questions though I will request you to ask questions in the comments of a specific articles so that other readers can also get knowledge about the points you ask me.
Let’s move towards our today’s lecture which is about Loops.
There are certain conditions in which you need to execute the same block of code again and again. For example if you want to print ten consective equal signs in three lines to make a separater then you could do it with different methods. One could be to use three echo statements and put ten equal signs in each i.e
Quick Code
<?php
echo "==========" . "<br>";
echo "==========" . "<br>";
echo "==========" . "<br>";
?>
Read the rest of this entry »
2 Comments
January 19th, 2007 at 2:02 pm (PHP Articles, Fast PHP Tutorial Series)
Hi,
Here is a good shepherd with his sheep again
Today I am going to discuss Switch Statement. The basic concept of Switch is similar to the IF-ELSE statement; it helps you to write decision making code just like IF-ELSE but it is a little more organized, elegant and handy when dealing with complex logics as compare to IF-ELSE.
Remember, you can convert every IF-ELSE programme to Switch syntax but vice versa is not possible in some situations.
Remember one more thing, it is not necessary to convert IF-ELSE to Switch and vice versa, just use whatever suits to your needs, though when handling the complex and large decision making code I would suggest to use Switch.
Let’s have a look at its syntax.
Switch Statement Syntax:
Read the rest of this entry »
12 Comments
January 16th, 2007 at 8:16 pm (Linux Articles, Server Administration)
In this howto we will learn how to build a Dynamic DNS Server. Normally when we configure DNS, we use static entries to resolve any FQDN. If we are using DHCP in our network which gives dynamic IPs to every computer that turns on or requests one, then it is not possible to configure DNS statically. For that we should configure our DNS with DHCP in a manner that whenever a computer gets a new IP, its FQDN will be automatically updated with the new IP in DNS.
1 Installation of Packages
Fedora Core 4 contains a DNS (Bind) and DHCP (dhcp) packages in its CDs. You can install it from the Fedora Core 4 CDs or download it from the internet using following command.
yum –y install bind bind-chroot bind-utils bind-libs caching-nameserver dhcp
Read the rest of this entry »
Comments
January 13th, 2007 at 9:07 pm (PHP Articles, Fast PHP Tutorial Series)
Dear students,
today we are going to study the tools that will help you to write Decision Making Codes in php. For example, when you sign in to orkut.com you see a message ‘hello username’ on the upper right of every page. Similarly when you login to gmail if you provide wrong username or password you see an error message and if you submit accurate information you are taken to the inbox.
If you think deep on these events, this is what we call ‘decision making code’. your write intelligent code that can make decision on user’s input and can act accordingly to the input to produce required output.
Read the rest of this entry »
3 Comments
January 10th, 2007 at 9:47 pm (PHP Articles, Fast PHP Tutorial Series)
Dear pupils,
I hope you would have been practising the last lecture ( PHP Programming Basics ) as I am getting feedback from different students from different countries and I am very happy I am able to contribute to PHP through my series of PHP Articles for beginners and professionals.
Today we are going to discuss different types of operators used in PHP. I hope you remember the basic definition of the operators and operands from my last article ( PHP Programming Basics ) and I am not going to explain it again as we had promised in the very first article of this Series of PHP Tutorials that we will not see behind and this is just to compell you to concentrate on each and every article of this series and practise (O! I love practice)
Read the rest of this entry »
5 Comments
January 10th, 2007 at 4:58 pm (Linux Articles, Server Administration)
Author: Sohail Riaz
1 Overview
This document describes how to attach modems to a Linux box and allow it to receive calls to connect users to the network. Its like being your own ISP (Internet Service Provider). If your Linux box is connected to the Internet, then the users will also be connected to the Internet. Your Linux box becomes a router. This is also known as RAS (Remote Access Services) in the Microsoft world. In the Linux world its called PPP (Point to Point Protocol).
2 Attach A Modem
Read the rest of this entry »
Comments