Skip to content

u/Alascar

In this archive from Jan 2012 to Sep 2012

4
posts
55
comments
0
media
160
score

Top posts

The __autoload() function

So I was going through a tutorial that used the function autoload(). It poorly explained what the function did and the explanation on the php.net manual didn't make to much since either. Can someone explain to me what the the function does and why who its parameters work?

25 points30 comments
Open on Reddit

Problem with multidimensional arrays

Is there a way to be able to select any depth of an array without the use of a switch statement? By this I mean, in the array: $array = array( 'array' => array( 'level1' => array( 'level2' => array( 'level3' => true ) ) ) ); To select level2, I'd use $array['array']['level1']['level2']. Is there a

14 points32 comments
Open on Reddit

Bcrypt?

Almost every time I see people asking for help with security in PHP people always say use bcrypt. Here is my issue, where do I get bcrypt and how do I use it? I've seen phpass, but it gives no instructions on how to use the thing (unless I am missing something?). Can someone explain to me this or po...

12 points22 comments
Open on Reddit

Best way to go about salting a password?

I've already managed to store a hashed password in my web server's database and able to verify it when logging it, but I don't know a good way to go about salting the password. My dilemma is that salts should be random so that hackers can't use one salt for all passwords, but if they are random then...

11 points41 comments
Open on Reddit

Top comments

Subreddits

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.