[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?


Thread replies: 24
Thread images: 5

File: New Canvas.png (195KB, 1366x738px) Image search: [Google] [Yandex] [Bing]
New Canvas.png
195KB, 1366x738px
Why is PHP so sexy?
>>
Go away Pajeet
>>
File: 1458942024464.png (335KB, 1280x720px) Image search: [Google] [Yandex] [Bing]
1458942024464.png
335KB, 1280x720px
>>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 (62KB, 500x377px) Image search: [Google] [Yandex] [Bing]
hC2aoDd.jpg
62KB, 500x377px
>>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 (139KB, 1280x720px) Image search: [Google] [Yandex] [Bing]
1462793376687.jpg
139KB, 1280x720px
>>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 (101KB, 899x894px) Image search: [Google] [Yandex] [Bing]
bestlangtopkek.png
101KB, 899x894px
>>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
[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.
If a post contains illegal content, please click on its [Report] button and follow the instructions.
This is a 4chan archive - all of the content originated from them. If you need information for a Poster - you need to contact them.
This website shows only archived content and is not affiliated with 4chan in any way.
If you like this website please support us by donating with Bitcoin at 1XVgDnu36zCj97gLdeSwHMdiJaBkqhtMK