The community is working on translating this tutorial into Italian, but it seems that no one has started the translation process for this article yet. If you can help us, then please click "More info".
If you are fluent in Italian, then please help us - just point to any untranslated element (highlighted with a yellow left border - remember that images should have their titles translated as well!) inside the article and click the translation button to get started. Or have a look at the current translation status for the Italian language.
If you see a translation that you think looks wrong, then please consult the original article to make sure and then use the vote button to let us know about it.
Please help us by translating the following metadata for the article/chapter, if they are not already translated.
If you are not satisfied with the translation of a specific metadata item, you may vote it down - when it reaches a certain negative threshold, it will be removed. Please only submit an altered translation of a metadata item if you have good reasons to do so!
Okay, let's get started with our very first PHP example, the standard Hello, world! With PHP, this is very easy. Be sure that you have installed Apache and PHP before using this example, or at least have access to a server with PHP capabilities. Have a look at the following example:
<?php echo "Hello, world!"; ?>
The<?php is important - it's your gate to the PHP interpreter. PHP documents can look just like ordinary HTML documents, and the PHP interpreter will ignore everything that's not within a set of the so-called PHP tags, which opens and ends our example. The echo construct simply outputs the string to the page. Try saving this with a .php extension and navigate to the page. If you're not sure how to do this, then have a look at one of the previous chapters about using the webserver. Once you call this page through the browser, the text "Hello, world!" will appear. We have just created our very first PHP page. In the next chapter, I will tell you a bit about the PHP tags that we just saw, since they are important to understand.