[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y ] [Home]
4chanarchives logo
Why is PHP so sexy?
Images are sometimes not shown due to bandwidth/network limitations. Refreshing the page usually helps.

You are currently reading a thread in /g/ - Technology

Thread replies: 24
Thread images: 5
File: New Canvas.png (195 KB, 1366x738) Image search: [Google]
New Canvas.png
195 KB, 1366x738
Why is PHP so sexy?
>>
Go away Pajeet
>>
File: 1458942024464.png (335 KB, 1280x720) Image search: [Google]
1458942024464.png
335 KB, 1280x720
>>54808901
>>
>>54808901
Are you retarded?
>>
>>54809360
>I don't know how to stop it
my sides
>>
>>54809360
>the function hashing mechanism was strlen()
What does this mean?
>>
>>54809360
>I'll just restart Apache every 10 requests
holy shit kek
>>
>>54808901
>require() instead of autoloading
>echoing html instead of using templates
>sql queries inside the same file as HTML
PHP is just fine, but this code is not.
Just because you can write a login script like a retard doesn't mean you should.
>>
>>54809571
google
strlen()
then google
hashing function
>>
>>54809571
strlen("A") == 1
strlen("AA") == 2
strlen("B") == 1
If you use strlen as a hash then A equals B.
A more realistic example would be that strlen equals strcat.
>>
>>54809524
>>54809571
>>54809612
Rasmus is an old school troll and you have taken the bait.
>>
File: hC2aoDd.jpg (62 KB, 500x377) Image search: [Google]
hC2aoDd.jpg
62 KB, 500x377
>>54809524
>>
>>54809643

Even his name is a troll - read it backwards in a pirate voice.
>>
>sexy
I think you mean retarded.
>>
>>54809571
A hash is making a number out of basically anything in a way, that it is extremely unlikely that two hashes are made from two different inputs. So you can easily check if two objects are different by comparing their hashes. Strlen says how long a string is. For 'hello' it would be 5. For 'gaben' it would be 5 too. See the problem?
>>
>>54809571

Doop doopity doop doop deep doop, boop boopity boop boop beep boop.
>>
>>54809618
Why? I was taught this way
>>
File: 1462793376687.jpg (139 KB, 1280x720) Image search: [Google]
1462793376687.jpg
139 KB, 1280x720
>>54808901
>brackets
>PHP
hahaha programmers are extinct
>>
>>54808901
PHP was a kludge in the first place

long live javascript
>>
>>54808901
Share your brackets theme famalam
>>
File: bestlangtopkek.png (101 KB, 899x894) Image search: [Google]
bestlangtopkek.png
101 KB, 899x894
>>54808901
I dunno senpai, I kind of like it
>>
>>54813333
>copy and paste from symfony manual
>don't remove comments
>>
>>54808901
Because it's a simple, yet powerful language.
>>
>>54809668
frudrel sumsar... what weird about that
Thread replies: 24
Thread images: 5

banner
banner
[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y] [Home]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com, send takedown notices to them.
This is a 4chan archive - all of the content originated from them. If you need IP information for a Poster - you need to contact them. This website shows only archived content.