Pa ne dodajes PHP skriptu u (x)HTML nego obratno. Server procesira PHP file i vraca browseru cisti HTML kod.
Iliti uz 25 sekundi na
"PHP is an HTML-embedded scripting language. Much of its syntax is borrowed from C, Java and Perl with a couple of unique PHP-specific features thrown in. The goal of the language is to allow web developers to write dynamically generated pages quickly."
"When someone visits your PHP webpage, your web server processes the PHP code. It then sees which parts it needs to show to visitors(content and pictures) and hides the other stuff(file operations, math calculations, etc.) then translates your PHP into HTML. After the translation into HTML, it sends the webpage to your visitor's web browser."
Zamislis to kao najobicniji HTML file sa dinamickim dijelovima koje generiras programiranjem u PHPu.
Da ne guglam umjesto tebe, skini neku najjednostavniju PHP skriptu i pokreni lokalno i kemijaj po njoj.