How to safely store a password inside PHP code?

前端 未结 11 1918
轮回少年
轮回少年 2020-12-11 04:12

How can I have a password inside PHP code and guarantee that no one viewing the page in the browser can retrieve it?

Is:

11条回答
  •  悲&欢浪女
    2020-12-11 04:31

    PHP code blocks cannot be retrieved by clients unless they output something. Observe:

    
    

    User can get either OK or Wrong nothing else.

提交回复
热议问题