Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Software Development
Programming
Programming Q&A
NEed help asap with PHP
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="BIOS" data-source="post: 370470" data-attributes="member: 15674"><p>Yes, I'm strictly speaking of the OP's request.</p><p></p><p>There's a lot of other factors involved, like you stated XSS/MITM attacks if the OP doesn't properly sanitize output and such however that'd be a different story rather than "how am I able to create this function" which the OP asked.</p><p></p><p></p><p>I did not personally choose this option, the OP did. They have stated they didn't want to use databases and would prefer a hard coded variable, my input to this thread was simply showing the poster how they could achieve this, not how I would've done it.</p><p></p><p>I guess they could also use the password_hash function or something alike to hash the passwords stored in the $admins array then verify them with password_verify, yet again that'd be more than the OP is asking.</p></blockquote><p></p>
[QUOTE="BIOS, post: 370470, member: 15674"] Yes, I'm strictly speaking of the OP's request. There's a lot of other factors involved, like you stated XSS/MITM attacks if the OP doesn't properly sanitize output and such however that'd be a different story rather than "how am I able to create this function" which the OP asked. I did not personally choose this option, the OP did. They have stated they didn't want to use databases and would prefer a hard coded variable, my input to this thread was simply showing the poster how they could achieve this, not how I would've done it. I guess they could also use the password_hash function or something alike to hash the passwords stored in the $admins array then verify them with password_verify, yet again that'd be more than the OP is asking. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Software Development
Programming
Programming Q&A
NEed help asap with PHP
Top