BrainMeta'                 

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Php Introduction
Guest
post Feb 05, 2006, 11:14 PM
Post #1


Unregistered









PHP introduction

PHP is a server side scripting language. This means that programmes in PHP are included in amongst the normal text of HTML pages and that these programs are executed by a PHP enabled WWW server. The output from the programs is included in the HTML page text as a replacement for the original PHP programme.

PHP is most commonly associated with the Apache WWW server and is almost certainly the most widely used scripting language on the WWW. The commonest current version is PHP 4, but PHP 5 is widely available. Full information is available on the WWW at www.php.net

Server side scripting was introduced in the NCSA WWW server in 1993 and the simple server-side include mechanism is still supported by the Apache server. Micro$oft's Internet Information Server supports a scripting mechanism known as Active Server Pages (ASP). This is not really a scripting language in its own right, it is actually a mechanism by which various language translation and interpretation engines (such as VBscript, Javascript etc.,) can be invoked in the course of IIS's processing of HTML pages.

The PHP language is strongly based on C (not C++) in the Unix environment, there are also significant influences from perl and the Unix scripting language awk. Anyone familiar with C++ and contemplating using PHP will need to understand the differences between C++ and C. Anyone familiar with C, particularly under Unix, and awk or perl will find PHP remarkably intuitive and easy to use. You might want to follow this link to read more about C and its differences from C++.

One of the great strengths of PHP is the inclusion of a very large number of library routines. These include a more or less complete set of Unix system calls and native mode access to a large variety of databases including Oracle and MySQL. Unfortunately, many of the groups of functions are optional and may not necessarily be available in a particular implementation. For details examine the PHP local environment example in the notes.

To activate PHP interpretation of files before sending them to clients an Apache server will normally be configured to recognise files with names ending in .php. Within such files PHP interpretation is applied to code contained within the markers <? and ?>. This is a slightly unfortunate choice as various other mark-up schemes such as those related to XML use the same markers. There can be several such marked regions within a page, they all form part of the same PHP program. The acceptable file name suffixes and the PHP markers can vary slightly depending on PHP build time options.

The PHP programming language includes, as might be expected, variables of various types, arrays (both conventional and content addressable), functions and flow control structures (if/then, for, do etc.,). It has the same set of operators as C. PHP is an object oriented programming language with most of the standard mechanisms but does not come with any standard classes.

If an error occurs during the interpretation of a PHP program then an error message is included in the generated HTML and is included in the page displayed to the browser user, this is useful for debugging in contrast to the tendency of the CGI mechanism to generate totally unhelpful error messages.

PHP variables differ in some respects from those encountered in most procedural programming language. They do not require specific declaration but simply spring into existence when first referenced in a manner familiar to programmers familiar with languages such as Basic and Fortran. Of course this does mean that extra care needs to be taken over their naming as the effect of a simple typing error can be to convert a reference to one variable to a reference to a different variable. PHP variable names always start with the symbol $. PHP variables do not have types, a trait PHP shares with many interpreted languages, the silly practice of starting a variable name with a letter indicating its type is, thus, totally irrelevant to PHP programming.

When a PHP variable springs into existence it will have a "null" or "zero" value unless it has been, effectively, defined in the environment. Environment defined variables represent data items whose value can be determined by the host WWW server either directly (e.g. the IP address of the requesting client) or from the "dynamic" part of the requested URL (this includes values acquired by the forms mechanism).
Go to the top of the page
+Quote Post
johnspells
post Apr 27, 2010, 03:33 AM
Post #2


Newbie
*

Group: Basic Member
Posts: 4
Joined: Apr 23, 2010
Member No.: 32720



It was worth reading and yes, it uses a HTML. The main advantage of PHP is that it offers very good levels of security to prevent malicious attacks. The security levels can adjusted in the .ini file. PHP also offers community. It is not too tough language to use. Now a day it is on demand and all are making their sites in PHP.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
jack martinn
post Jul 13, 2010, 10:46 AM
Post #3


Newbie
*

Group: Basic Member
Posts: 3
Joined: Jul 13, 2010
Member No.: 32912



PHP means hyper text pre-processor. PHP is a open source software. PHP is a one type of scripting language. It is developed for web development to produce a dynamic webpages.

PHP was originally created by Rasmus Lerdorf in 1995. PHP is easy to learn. PHP is the widely-used, free, and efficient alternative to competitors such as Microsoft's ASP.

User is offlineProfile CardPM
Go to the top of the page
+Quote Post
tonypulis0
post Jul 21, 2010, 09:11 PM
Post #4


Newbie
*

Group: Basic Member
Posts: 3
Joined: Jul 21, 2010
Member No.: 32934



I agree with all of you guys, For example: In Java (or C#) you can code any architecture for any Problem. Some will need more development time and more hardware, others less. In PHP you still have a lot of ways to solve a problem but not as many as in other languages because of the limits to object lifetime. Some of the possible solutions will lead to a dead-end road in terms of performance and maintainability. Therefore, intelligent PHP developers tend to communicate first.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



Lo-Fi Version Time is now: 23rd September 2014 - 06:24 PM


Home     |     About     |    Research     |    Forum     |    Feedback  


Copyright BrainMeta. All rights reserved.
Terms of Use  |  Last Modified Tue Jan 17 2006 12:39 am

Consciousness Expansion · Brain Mapping · Neural Circuits · Connectomics  ·  Neuroscience Forum  ·  Brain Maps Blog