replacing PHP in websites

This forum is for all programming discussions. Not limited to just Linux-related discussions. We will not judge you based on the operating system or the programing language...unless it's Javascript. ;)
bigpod
Posts: 28
Joined: Thu Jan 02, 2020 7:51 pm

Re: replacing PHP in websites

Post by bigpod » Sat Jan 18, 2020 6:32 pm

mainly because everyone uses it so its hard to switch from it. well PHP could be slowing websites down just a tiny bit but adding on top of that databases it creates a huge problem.

well but then blame databases right no because databases in it of themselfs arent a problem problem is how they work thats why you need to use caching layer(redis or memcached for example) but most people just dont bother with that

so reality is there is much more to the story then the language but the point of the thread was to say maybe it isnt javascript that is slowing websites down but another language that runs on the server. even tho i know it isnt as easy to say who is at fault
Use whatever tool makes your job easier.

User avatar
xeriab
Posts: 2
Joined: Sun Jan 19, 2020 2:17 am

Re: replacing PHP in websites

Post by xeriab » Sun Jan 19, 2020 2:43 am

I am using PHP since PHP 4 and when I compare the performance of PHP 4/5 to the 7th version I know that the PHP core developers made a great work enhancing the language.

My point is I can replace PHP with anything else if the alternative is going to benefit me in a way or another, PHP itself is not slow and it's not bad at all and that's why it's still empowering websites all over the world, What makes PHP slow is a bunch of factors. including Apache, MySQL and bad practice.

Using PHP with PHP-FPM, Nginx, Memcached/Redis and PDO will be good and the performance will not get bad at all.

TL;DR: If you're looking for a replacement; you must know the benefits of using it.

I worked in/for web projects using Python, PHP, C/C++ and Java/Kotlin and each project made because we needed to benefit the most from that specific language.
31 y.o. Geek, Nerd, Developer and Metal head from Yemen. 😑

User avatar
fossegrim
Posts: 28
Joined: Thu Jan 02, 2020 8:49 pm

Re: replacing PHP in websites

Post by fossegrim » Sun Jan 19, 2020 9:30 am

Max wrote:
Sat Jan 18, 2020 5:44 pm
bigpod wrote:
Sat Jan 11, 2020 10:09 pm
the http module is what is normaly reffered as nodeserver
I would've thought the nodeserver would refer to the nodeserver package, and not the http module.

Regardless, I'm still not convinced that PHP is the “worst culprit” — if it was really as bad as you say, why is it so widely used?
I'm not taking any side in the discussion here. I just want to point out that your argument is flawed. By your logic windows wouldn't be bad because "If windows is as bad as you say, why is it so widely used?".

https://yourlogicalfallacyis.com/bandwagon
Image
“Software is a gas; it expands to fill its container.”
— Nathan Myhrvold

Website: http://fossegr.im/
Shithub: https://github.com/olav35
Tweeter: https://twitter.com/olebullsplass

User avatar
Max
Posts: 9
Joined: Tue Jan 07, 2020 8:02 pm

Re: replacing PHP in websites

Post by Max » Sun Jan 19, 2020 2:28 pm

fossegrim wrote:
Sun Jan 19, 2020 9:30 am
I'm not taking any side in the discussion here. I just want to point out that your argument is flawed. By your logic windows wouldn't be bad because "If windows is as bad as you say, why is it so widely used?".
I'm not sure I'd agree that this is an argumentum ad populum, as the people electing to use PHP are professionals who have — presumably — considered its pros and cons and are aware of the alternatives. Additionally, I'm not saying that PHP is the absolute best, I'm merely stating it's probably not as bad as it's being made out to be.

On the other hand, the average user doesn't know the first thing about operating systems.

Post Reply