Question

Please, i need Unique answer, Use your own words (don't copy and paste). *Please, don't use...

Please, i need Unique answer, Use your own words (don't copy and paste).

*Please, don't use handwriting.

Describe when and why you should use PHP (as a server-side programming language). Why a client-side programming language (like JavaScript), not enough?

Also, is it generally safe to keep credentials like the Database passwords in PHP source code? Why? Compare that to doing the same thing in JavaScript.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Where and why use php?

Php is server side script so it is not executed on Client side, it execute on on server and generate output in html/js/CSS format and then it is visible to user.

So password or username and other sensitive information are must be use in php so it is safe and any hacker or user not able to manipulate data.

Why not JavaScript?

JavaScript executed on Client side. So all code written in JavaScript are visible to user and any hacker so then they can manipulate data and gain unauthorized access to website.

Add a comment
Know the answer?
Add Answer to:
Please, i need Unique answer, Use your own words (don't copy and paste). *Please, don't use...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT