Asked by duncanb7
at 2024-04-17 23:25:16
Point:250 Replies:10 POST_ID:828478USER_ID:11059
Topic:
Hypertext Markup Language (HTML);PHP Scripting Language;JavaScript
At the beginning, I make a table of 300*40 cells by javascript and the display speed is good so I try
to convert the javascript code into php code since I want to protect my code for a try tutorial.
The speed of table by php is obiviously slower than javascript. So I get a few easy question.
1) Using javascript has adavantage that is because he is client-side language, the speed of display table
is depened on users' broswer and CPU of PC (besides html page to user pC), so to server's workload is not too much
Is it correct and right ?
2) If I using php to make a table, that will be issue because it is server-side languge. If there is 1000 users
to submit php request from my domain at the same time for example, , the server needs to generate 1000 table for 1000 users so it will slow down speed. Is it right ?
3) I am using domain is share domain so it might be slow than my PC, so using php might not have any advantage
under such condition, Is it correct?
4) Last one, people are using php because it is just for security issue to protect the code not being seen by users and for the job
of checking password and login process Is it correct ? If so ,if server and my PC is same CPU speednand for one user only to
use the server, php speed shoud be similar to javascript because both languague is based on C languag , Is it right ?
5) If not critical code to protect or security, always stay on javascript (not php) that will have speed advantage always, Is it right ?
Please advise
Duncan
to convert the javascript code into php code since I want to protect my code for a try tutorial.
The speed of table by php is obiviously slower than javascript. So I get a few easy question.
1) Using javascript has adavantage that is because he is client-side language, the speed of display table
is depened on users' broswer and CPU of PC (besides html page to user pC), so to server's workload is not too much
Is it correct and right ?
2) If I using php to make a table, that will be issue because it is server-side languge. If there is 1000 users
to submit php request from my domain at the same time for example, , the server needs to generate 1000 table for 1000 users so it will slow down speed. Is it right ?
3) I am using domain is share domain so it might be slow than my PC, so using php might not have any advantage
under such condition, Is it correct?
4) Last one, people are using php because it is just for security issue to protect the code not being seen by users and for the job
of checking password and login process Is it correct ? If so ,if server and my PC is same CPU speednand for one user only to
use the server, php speed shoud be similar to javascript because both languague is based on C languag , Is it right ?
5) If not critical code to protect or security, always stay on javascript (not php) that will have speed advantage always, Is it right ?
Please advise
Duncan