Mamoun Al-Akash Blog

« | »

What is PHP?

since i am a PHP developer and basicly this is what i do in my life, i am a programmer and i use this language to write my scripts that will run "most of the time!" under linux servers i wanted to write a little bit about this great programming language to tell the newbies about the concept and a word of definition to discribe this fancy languae Smile

so, from here we go guys, keep on reading, you'll enjoy Wink
 

PHP is a server-side scripting language for creating dynamic Web pages. You create pages with PHP and HTML. When a visitor opens the page, the server processes the PHP commands and then sends the results to the visitor's browser, just as with ASP or ColdFusion. Unlike ASP or ColdFusion, however, PHP is Open Source and cross-platform. PHP runs on Windows NT and many Unix versions, and it can be built as an Apache module and as a binary that can run as a CGI. When built as an Apache module, PHP is especially lightweight and speedy. Without any process creation overhead, it can return results quickly, but it doesn't require the tuning of mod_perl to keep your server's memory image small.

In addition to manipulating the content of your pages, PHP can also send HTTP headers. You can set cookies, manage authentication, and redirect users. It offers excellent connectivity to many databases (and ODBC), and integration with various external libraries that let you do everything from generating PDF documents to parsing XML.

PHP goes right into your Web pages, so there's no need for a special development environment or IDE. You start a block of PHP code with <?php and end it with ?>. (You can also configure PHP to use ASP-style <% %> tags or even <SCRIPT LANGUAGE="php"></SCRIPT>.) The PHP engine processes everything between those tags.

PHP's language syntax is similar to C's and Perl's. You don't have to declare variables before you use them, and it's easy to create arrays and hashes (associative arrays). PHP even has some rudimentary object-oriented features, providing a helpful way to organize and encapsulate your code.

Although PHP runs fastest embedded in Apache, there are instructions on the PHP Web site for seamless setup with Microsoft IIS and Netscape Enterprise Server. If you don't already have a copy of PHP, you can download it at the official Web site. You'll also find a manual that documents all of PHP's functions and features.

تعليقات

Comment Icon

That was helpful, thank you for this clear description, i think that PHP is going to be the future of the web and i bit on that, in all the ways, i am a JAVA developer and i really would like to play with PHP is there any links for reading about such a subject and if so would you please post them here, thanks again and hope to see more useful posts by you.
- Muhannad

Arrow Icon muhannad | 22/11/2006, 22:02 [الرد]

Comment Icon

of course dude, there are hundreds and hundreds of free and payable books and there are also more in the shape of articles and PDF's available in the web, personally i use google to get my stuff and i also refer to php.net for any technical glitch that i may face, i can't also forget the huge community that will be very handy if you cannot find the solution with normal searching, anyway, here is some links that i refer to most of the time:
(1) php.net
(2) zend.com
(3) always use google because google is your friend Smile

Arrow Icon mamoun | 22/11/2006, 22:11 [الرد]

Comment Icon

so what!!!
look at it currently, more than 19,500,000 Domains has been registered to use PHP in their servers, this is the personal home page that you are talkin about!
please refer to this place to make sure of this stats.

Arrow Icon me | 01/12/2006, 21:50 [الرد]

Comment Icon

as we joke around the office with the perl and java folks - Personal Home Page ;-)

Arrow Icon tariq shadid | 04/01/2007, 15:08 [الرد]

اضافة تعليق
authimage
رمز التأكيد
 
A service provided by Al Bawaba