For my devs, php or js

Status
This thread has been locked.
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

luaq

Supreme
Feedback score
7
Posts
141
Reactions
40
Resources
0
Depends on what I'm using it for. In cases where I am building a web API, I'd probably go with JavaScript (NodeJS & ExpressJS). If it's for handling form data (e.g. logging in, registering, etc.) then I typically use PHP. If we're talking JavaScript that's downloaded by the browser and handled client-side, then I would advise limiting your use with it because anything that's client-side authentication is very risky and can almost always be reverse-engineered. The only time I use JavaScript that's downloaded to be run client-side is when I need something to be done that HTML + CSS cannot do alone (e.g. changing navbar on scroll, fancy animations, etc).

TL;DR It depends, they both have their perks.
 

Eric

Software Engineer
Supreme
Feedback score
14
Posts
1,760
Reactions
1,648
Resources
1
PHP generally is decent, if you know what you're doing. If you don't, it can be dangerous.

Node is alright, but express is often times slower than a standard LEMP stack (PHP+NGINX).
 

supportrequest

Feedback score
0
Posts
1
Reactions
0
Resources
0
PHP generally is decent, if you know what you're doing. If you don't, it can be dangerous.

Node is alright, but express is often times slower than a standard LEMP stack (PHP+NGINX).
Could you elaborate how it could be dangerous?
 

Eric

Software Engineer
Supreme
Feedback score
14
Posts
1,760
Reactions
1,648
Resources
1
Could you elaborate how it could be dangerous?
Easily exploitable through SQL injections and XSS attacks if the developer doesn't manually filter it correctly. You wouldn't believe the amount of sites I've worked on where the previous dev completely disregarded all safety procedures.
 

Zigenzag

Dev Ops Engineer
Supreme
Feedback score
4
Posts
215
Reactions
101
Resources
0
PHP all the way, if your doing Web API's then it would be easier (and imo better) using Laravel than Node personally
 

on

• Previously Cornflakes •
Supreme
Feedback score
22
Posts
681
Reactions
328
Resources
0
php, no doubt it’s easier to use and better in my opinion
 
Status
This thread has been locked.
Top