Re: My Question
| From: | Ben Schmidt | Date: | Thu, 20 Jan 2011 15:13:20 +0000 |
| Subject: | Re: My Question | ||
| References: | 1 | Groups: | php.webmaster |
| Request: | Send a blank email to php-webmaster+get-10455@lists.php.net to get a copy of this message | ||
- The PHP language is described in the PHP manual. It is used to write
programs, which we usually call 'scripts'. They look something like
this:
<?php
echo "Hello world\n";?> They are usually saved in files with names ending in .php - The PHP interpreter is a program that is used to run php scripts; it makes the PHP scripts actually work; it 'interprets' the PHP language. The PHP interpreter is usually just called php on Unix/Linux, or php.exe on Windows. Or it can be 'installed inside' a lot of different web servers in different ways, often via .so or .dll files. If you run the PHP interpreter directly, you do it from the commandline something like this: $ php helloworld.php The PHP interpreter itself is written in C. So the line above will run the (compiled) C program called php, and what that program will do is run the PHP script called helloworld.php I hope that makes sense. Ben. On 20/01/11 9:06 PM, gianto widodo wrote:
greetings prosperous, I wanted to ask, what's the difference between the php interpreter with php language? Can I mention that it issame as php interpreter ? php then what it was made with c language? if its only interpreters who created the language c but its not php? you please explain, I do not understand it. thank you for your answer,