Example of what is Front end PHP and Example of Backend?
dave
2012-08-03 07:16:01 UTC
Could someone provide a example/scenario of Backend PHP and front-end and what they are, I'm trying to make sure I know what both are 100%.
Three answers:
VBA
2012-08-03 14:28:31 UTC
PHP code runs entirely on the webserver (backend). It does the data processing and builds the web pages that are served to the client's browser (front-end). So PHP is always backend.
edit: Just because you can include HTML tags in PHP files does not make PHP frontend: it is only outputting those tags, not executing them. The frontend of a web application is HTML, CSS, Javascript, and any other code that runs in the user's browser, that they have access to, can see. They will only ever see the output of a PHP script. This makes it, by strict definition, backend processing only. The output from a PHP script might include font-end code, that then executes in the user's browser. But the PHP script itself runs on the webserver and only sends its output to the user. So PHP itself is backend.
2016-07-26 05:00:05 UTC
I've used PHPMaker before and it can be beautiful excellent. Nevertheless, it can be unlikely that it'll do everything you want, so you can need to tweak the output to make the website perform as you want: for this you can have to be reasonably accustomed to personal home page.
Anas Imtiaz
2012-08-03 16:18:40 UTC
Front-end PHP refers to what you might see on your screen like facebook.com/home.php is an example of front-end php.
Back-end PHP refers to when the webpage exchanges data from a server.
PHP is can be used as BOTH front-end AND back-end php.
refer to this site for more help on php: http://w3schools.com/php/default.asp
I personally design my webpages as both front-end and back-end php. remember: you can use all of html tags in php files as well as scripting.
ⓘ
This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Continue reading on narkive:
Search results for 'Example of what is Front end PHP and Example of Backend?' (Questions and Answers)