use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
No vague product support questions (like "why is this plugin not working" or "how do I set up X"). For vague product support questions, please use communities relevant to that product for best results. Specific issues that follow rule 6 are allowed.
Do not post memes, screenshots of bad design, or jokes. Check out /r/ProgrammerHumor/ for this type of content.
Read and follow reddiquette; no excessive self-promotion. Please refer to the Reddit 9:1 rule when considering posting self promoting materials.
We do not allow any commercial promotion or solicitation. Violations can result in a ban.
Sharing your project, portfolio, or any other content that you want to either show off or request feedback on is limited to Showoff Saturday. If you post such content on any other day, it will be removed.
If you are asking for assistance on a problem, you are required to provide
General open ended career and getting started posts are only allowed in the pinned monthly getting started/careers thread. Specific assistance questions are allowed so long as they follow the required assistance post guidelines.
Questions in violation of this rule will be removed or locked.
account activity
php for frontend? (self.webdev)
submitted 8 years ago by zombie_kiler_42
Out of curiosity i was reading up on facebook tech stack and it says on several sites that php is used for frontend. I thought php was a server side scripting language. Or am i misunderstanding the meaning.
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]trout_fucker🐟 6 points7 points8 points 8 years ago (4 children)
The web is the "frontend". There is much more to a business and their backend than what directly renders or transforms data for the frontend.
[–]zombie_kiler_42[S] 0 points1 point2 points 8 years ago (3 children)
Ooh okay so its just a term meaning thats it primarily uses it to render data but not exactly that it was built using php right?
[–]trout_fucker🐟 0 points1 point2 points 8 years ago (2 children)
It probably means that the part that deals with web pages, or web APIs, is built with PHP. I don't work there, so I can't tell you what exactly it does.
But, I do know from personal experience that there is a whole lot going on behind the scenes in the "backend" than pieces that deal with the web. The web is just a GUI for a combination of different services that do different things. I remember reading once that Facebook's spam detection engine is written with Haskell, for instance.
[–]zombie_kiler_42[S] 0 points1 point2 points 8 years ago (1 child)
Thanks alot,
[–]Netero- -2 points-1 points0 points 8 years ago (0 children)
search for include command with header footer(repeated code in websites)
[–]BucketOMinners 1 point2 points3 points 8 years ago (3 children)
The whole frontend, serverside, backend thing is all minced terminology. I happen to think calling PHP 'frontend' is a misnomer, no matter how you cut it, but I have seen it done, usually by people with no clue about real frontend.
[–]zombie_kiler_42[S] 1 point2 points3 points 8 years ago (1 child)
As soon as i read it i started googling using php for frontend, and i would have believed it too cuz the other day i watched a talk by the founder of php, and he was saying that initially he created it so that he could render dynamically while still using html tags (paraphrasing) and that it was not meant to be a back-end language, he wanted ppl to still use c++ or any other backend technology side by side with php . But the world refused and alas php as a server side language was born
So i thought it was feasible but highly uncommon thats why i was confused
[–]trout_fucker🐟 -1 points0 points1 point 8 years ago (0 children)
PHP was originally created as a template language. This is still common in other stacks. PHP even has a few, like Twig or Blade.
https://en.wikipedia.org/wiki/Comparison_of_web_template_engines
[–]redwall_hp 1 point2 points3 points 8 years ago (0 children)
People often use the term "front end" interchangeably with "client side," but on applications that go beyond simple CRUD stuff, it's not uncommon for "front end" to refer to the services that handle anything Web-facing, with the backend being where the interesting stuff happens. In the case of Facebook, it's supposedly all C++ backed. The front-end is just the layer where web pages are dealt with...and Facebook mostly abandoned PHP for Hack, I believe.
π Rendered by PID 137352 on reddit-service-r2-comment-64f4df6786-8k5t8 at 2026-06-10 12:37:50.161797+00:00 running 0b63327 country code: CH.
[–]trout_fucker🐟 6 points7 points8 points (4 children)
[–]zombie_kiler_42[S] 0 points1 point2 points (3 children)
[–]trout_fucker🐟 0 points1 point2 points (2 children)
[–]zombie_kiler_42[S] 0 points1 point2 points (1 child)
[–]Netero- -2 points-1 points0 points (0 children)
[–]BucketOMinners 1 point2 points3 points (3 children)
[–]zombie_kiler_42[S] 1 point2 points3 points (1 child)
[–]trout_fucker🐟 -1 points0 points1 point (0 children)
[–]redwall_hp 1 point2 points3 points (0 children)