How PHP Works
Why Stack Overflow recommends it
Stack Overflow users link it when a questioner misunderstands that PHP runs on the server, for example expecting to call PHP from JavaScript or see PHP source in the browser.
Recommended by 4 people across 4 different months, 2013 to 2018.
What it is
A short, roughly 2.5 minute tutorial video from webvideobytes that illustrates the PHP request lifecycle: a browser asks a web server for a page, the server runs the PHP code, and only the resulting output is sent back to the client.
What people said
Recommends Bobot · 2014-07 · Stack Overflow · on “How to call php method in javascript?”
I would answer with a simple phrase : Look this video : How PHP Works [this video] You will understand yourself, why what you are asking is not possible without AJAX. Enjoy the video, and see you :) I hope this answer will help you to figure out why you cannot do what you want to, without using AJAX or similar ;)
Recommends swidmann · 2015-11 · Stack Overflow · on “How to "POST" data in an xml file, and then display it after receiving at the other end”
Like we found out in the comments, the script itself seems to work as you are getting the processed XML like you mentioned here: // The output gets generated and looks like an array eg: array(4) { ["@attributes"]=> string(5) "Array" ["header_section"]=> string(23) " " ["application_section"]=> string(18) " " ["name"]=> string(7) "example" } So I think you are just missunderstood the POST so I would recommend you to take a look at the manual for $_POST [LINK] . You already suspected that something is different than you probably thought and you are correct with this. Just some good and simple information about post: POST requests are never cached POST requests do not remain in the browser hist
Recommends Aleksandar Đokić · 2016-07 · Stack Overflow · on “Can admin of the web server see my php code?”
Yes, of course that they can... because they have root level access to your files. Please watch this video [this video] and you will understand how PHP works.
Recommends Chris · 2018-12 · Stack Overflow · on “PHP Auto refresh page after another page form submission”
This is actually not possible. PHP is a server side language and is only executed once when its requested. Making a listener or similar is not possible due to how PHP compiles. It executes once, and perhaps echo's any data etc. But as the page is viewed to the client, no server side code will be ran until the page is refreshed once again. Click here [this video] to watch a video teaching you about how PHP works in the background/on the server
Cites Srle · 2013-10 · Stack Overflow · on “Why PHP script is not workig in a web browser?”
PHP is server-side scripting language which means all php code is executed before page is sent to the client side. For that reason you will never see <?php ... ?> in page source. On high abstraction level... You can consider web server (hardware) as component of four different parts. Webserver(software, for example Apache), File system, database and PHP plugin. So for example when you sent page request (for some page .../example.php) to the web server Apache will try to find that page in file system and if the page exists he will call php plugin to executes all <?php ... ?> code (of course including db queries). After that page is sent back to the client side where you can manipulate with pa