Skip to main content

Posts

PHP Control Flow (if...elseif....else)

        PHP starts with many strengths in its logical and bitwise operators. PHP then extends the ideas of C, Java and Perl control of flow and looping functionality - giving them more of the ease of use associated with Visual Basic or Ruby. Also enhancing the functionality of its associative array, PHP has some powerful control commands with  list() ,  each()  and  foreach() .          Finally, PHP takes full advantage of its mixed type capability for variables and functions. Thus functions like  fopen()  return a value (a file handle in the case of  fopen()  finding a file for opening) or the Boolean  false  if no file was found. Developers have to be alert to these different Very often when you write code, you want to perform different actions for different decisions. You can use conditional statements in your code to do this. In PHP we have the following conditional statements: if statement  - use this statement to execute some code only if a specified condit

Comments

               When it comes to commenting code, the consensus is it is necessary but the reality is it rarely is done.  It has been said that commenting code is like cleaning the bathroom - no one ever wants to do it but a clean bathroom creates a more pleasant experience for all that will need to use it.  There are many types of commenting strategies with each having advantages  and disadvantages over each other.  The key is to comment, how that is accomplished is best worked within a team environment and calls for a great deal of flexibility.  The following are types of typical commenting that should be considered along with how they would be implemented inside of PHP code:  Code Commenting  This form of commenting is not considered traditional commenting (in the sense of creating remarks to support the code) but is closer related to good programming design principles.  This best practice approach  to coding involves using coding names that describe the action that is ta

Delimiting PHP Code

                           PHP was originally designed to be used in conjunction with a web server, and in the case of the LAMP architecture, the Apache Web Server.  PHP applications are designed embedding PHP scripts within a web page along with its HTML.  Unlike standard HTML pages which are sent directly from the web server to the end user, PHP files are first interpreted by the PHP application which then converts the PHP script into another form for display.  This process eliminates the end user from being able to see the original PHP script that was embedded in the HTML and provides  true interaction in HTML files.  This process is similar to proprietary applications such as ASP and Coldfusion; however, PHP is Open Source and cross- platform. PHP Tags             PHP scripts are distinguished from the HTML scripts by using delimiting characters that tell the server to execute the PHP application to interpret that which is contained in the code.  There are four ways

PHP INTRODUCTION

                     PHP  (recursive acronym for  PHP: Hypertext Preprocessor ) is a widely-used open source general-purpose scripting language that is especially suited for web development and can be embedded into HTML. PHP stands for  P HP:  H ypertext  P reprocessor PHP is a server-side scripting language, like ASP PHP scripts are executed on the server PHP supports many databases (MySQL, Informix, Oracle, Sybase, Solid, PostgreSQL, Generic ODBC, etc.) PHP is an open source software PHP is free to download and use Why PHP? PHP runs on different platforms (Windows, Linux, Unix, etc.) PHP is compatible with almost all servers used today (Apache, IIS, etc.) PHP is FREE to download from the official PHP resource:  www.php.net PHP is easy to learn and runs efficiently on the server side What can PHP do? Anything. PHP is mainly focused on server-side scripting, so you can do anything any other CGI program can do, such as collect form data, generate dynam

ABOUT WAMP

           WAMPs are packages of independently-created programs installed on computers that use a Microsoft Windows operating system.            WAMP is an acronym formed from the initials of the operating system Microsoft Windows and the principal components of the package:Apache, MySQL and one of PHP. Apache is a web server. MySQL is an open-source database. PHP is a scripting language that can manipulate information held in a database and generate web pages dynamically each time content is requested by a browser. Other programs may also be included in a package, such as phpMyAdmin which provides a graphical user interface for the MySQL database manager, or the alternative scripting languages Python or Perl. Equivalent packages are MAMP (for the Apple Mac) and LAMP (for the Linuxoperating system). To download  WAMP click here

MySQL INTRODUCTON

   So after learning HTML lets go into the working part     lets first see what is MySQL and then go to php              MySQL is installed on every continent in the world (Yes, even Antarctica!) MySQL AB MySQL is a relational Database Management System (RDBMS). MySQL AB develops and markets a family of high performance, affordable database servers and tools. Contributing to building the mission-critical,high-volume systems and products worldwide is what makes MySQL the world’s most popular open source database, as well as its reliability, excellent performance and ease of use. MySQL is not only the world’s most popular open source database, it’s also the fastest growing database in the industry, with more than 11 million active installations and 50,000 downloads per day. The company was founded in Sweden by two Swedes and a Finn: David Axmark, Allan Larsson and Michael "Monty" Widenius who have worked together since the 80's. MySQL AB(Swedish for “Inc.”) is the sole