PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

PHP Neler Yapabilir?> <Getting Started
Last updated: Sat, 17 Jul 2004

view this page in

Bölüm 1. Başlangıç

PHP nedir?

PHP ("PHP: Hypertext Preprocessor" sözünün kısaltılmış hali) özellikle Web uygulamaları geliştirmek için tasarlanmış, geniş bir kitle tarafından kullanılan genel amaçlı ve Açık Kodlu bir betik dilidir. PHP, HTML'in içine gömülebilir.

Basit bir cevap, biraz daha açık olalım. Bir örnek:

Örnek 1-1. Başlangıç örneği

<html>
    <head>
        <title>Örnek</title>
    </head>
    <body>

        <?php
       
echo "Merhaba, Ben bir PHP beti&gbreve;iyim!";
       
?>

    </body>
</html>

Perl ya da C gibi başka diller ile yazılmış betiklerden ne kadar farklı olduğuna dikkat edin -- HTML çıktısı üretmek için bir dolu komut yazmak yerine, bir parça gömülmüş kod içeren bir HTML betiği yazıyorsunuz (bizim örneğimizde yaptığı iş yazı çıktısı vermek). PHP kodu özel başlangıç ve bitiş etiketleri içinde yer alır. Bu etikler size "PHP modu"na girme ve çıkma imkanı sağlar.

PHP'yi JavaScript gibi istemci tarafında çalışan yapılardan ayıran kodun sunucu tarafında çalışıyor olmasıdır. Sunucunuzda yukardaki kodun bir benzerini çalıştırdığınızda, istemci bu betiğin oluşturduğu sonucu alacak ve arka tarafta çalışan koddan haberdar olmayacaktır. Dilerseniz web sunucunuzu bütün HTML dosyalarınızı PHP tarafından işlenecek şekilde yapılandırabilirsiniz.

PHP'nin en üstün taraflarından biri, yeni kullanıcılar için çok basit olmasının yanında, profesyonel programcılar için de birçok ileri özellik içermesidir. PHP'nin uzun özellikler listesini okumaktan korkmayın. Bu özelliklerin içine dalabilir, ve birkaç saat içinde, kendi başınıza basit betikler geliştirmeye başlayabilirsiniz.

PHP'nin gelişimi sunucu taraflı uygulamalar üzerine odaklanmışsa da, çok daha fazlasını yapma imkanınız var. PHP Neler Yapabilir? bölümünde daha fazlasını okuyabilirsiniz.



PHP Neler Yapabilir?> <Getting Started
Last updated: Sat, 17 Jul 2004
 
add a note add a note User Contributed Notes
Başlangıç
kissfsf at yahoo dot com
27-Aug-2008 08:09
If you want more open source project of php, visit the following link which also has many free software of other program language like python,java,perl .etc.

http://www.fs-dir.com/language/5/

It's great!
nostamar $AT$ g mail
30-Jan-2008 04:06
here is a "server-php >> html >> browser" process illustration:
http://www.lastown.com/forum/viewtopic.php?t=533

it shows the basic steps; first php code is parsed at server into html; then sent to browser, that understands html tags and renders them to the display the webpage, there's also some quick overview about the process.. worths taking a look at
winks716
18-Aug-2007 07:48
before html runs to show a webpage, php code runs first on web server.

so, when there lines as follow:

<table>
<tr>
<td>
  <?php
   
echo "php runs first!";
 
?>
</td>
</tr>
</table>

the first step is to run php code, we get:

<table>
<tr>
<td>
php runs first
</td>
</tr>
</table>

then, code is sent to browser, and we see somthing~
george dot langley at shaw dot ca
18-Jul-2007 05:02
"the code is executed on the server"

This is an important concept for the first-time PHP programmer to understand, so that when you get into string formatting later on, you understand the difference between formatting the on-screen content (as parsed by your browser) and formatting the HTML code (as returned by the server).
For example "/n" starts a new line in the HTML code, and its results are only seen if you look at the "source HTML". It is NOT the same as <br>!

PHP Neler Yapabilir?> <Getting Started
Last updated: Sat, 17 Jul 2004
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites