ryusuke's site

Why PHP

tags:
@ 21/02/2026

Note

This post is just a little bit technical. if you don’t have interest in how a website get done, you don’t have to read this. But hey, maybe you will learn something here 😉

Even thought Javascript sucks, it can make the server feel faster and flexible because we don’t have to run heavy service inside the server and we also can get asynchronous programming. I still don’t know how PHP handle this. Many programmers talk about this and make memes. I guess I’ll just figure it out as I learn.

The primary reason why I choose PHP is because it’s Server-Side Rendering So users don’t have to worry about their browser downloading Javascript junks

What is Server-Side Rendering? When you open a website, you requesting send an HTTP Request to a server. Then, the webserver in the server will continue it to PHP Interpreter and then send you the compiled or HTML version of PHP files. This is different when we compare it with Javascript where we get Javascript files. I’m not gonna explain it here because I already write about it here

What PHP can access

As I said, Javasript can access your computer. but with PHP, it can only see are http headers and metadata because users send it to the server. PHP can see your:

  • Your IP Address: 216.73.216.58
  • What Browser you’re using: Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
  • Your preferred language:
  • Your referrer and cookie. But probably you don’t have one.

Otherwise, it can’t access other thing. Unlike Javascript it can access:

  • Your location using your GPS chip
  • Hardware details
  • Local files
  • I don’t know it maybe can access your computer

ðŸ‘ąðŸŧ : Bro, that’s crazy 💀

I know, right? Anyway, that’s why I prefer PHP over Javasript. I don’t want to make users opening my website to feel being haunted. The only Javascript I use on this website is Turbo and it’s open source so people can check it if there’s a vulnerability or malicious code. That’s all from me I will continue to learn more about PHP, I hope you readers stay safe.


  - Peace, Ryusuke