You need to work with some PHP code out in the wild to experience the joys of 'custom' code. It will inevitably feel like a house of cards at one point or another, as PHP lets you get away with murder.
If you're in your basement by yourself, wanking it to dickgirls in between bouts of PHP, yeah, sure, write your own framework.
If you're working with other people, don't reinvent the wheel - you won't have time anyway.
The best code I write is code I steal from other people. Find a framework that can do everything you need it to do, make sure people are actively writing code for it (lots of PHP abandonware out there), and figure out how it works. I recommend CodeIgniter (sorta abandonware, but does everything you'll need until you know better). MVC makes PHP bearable.
MVC
One of the most disgusting abominations created by architecture astronauts as a way of making PHP as difficult to use for web programming as any other general purpose language? No.
The successor to MVC is Morphic. Morphic's goals are "directness" and "liveness".
Name:
Anonymous2014-01-03 2:28
When I used PHP I used plain old PHP. I pushed everything to the front end, and the PHP was just secure glue to MySQL.
Name:
Anonymous2014-01-03 9:22
PHP secure
Back to reddit/r/funny, please.
Name:
Anonymous2014-01-03 10:07
PHP is pretty much designed to be written in a horribly unstructured way.
It's essentially Perl for web programming.
I'd suggest using a different language if your project is large enough to require serious structure.
Name:
Anonymous2014-01-03 13:36
>>17 It's essentially Perl for web programming.
If only....
Name:
Anonymous2014-01-03 15:18
>>18
Well if you want real Perl for web programming then I'm pretty sure Perl has web programming libraries. They're just not very popular for reasons unknown
Name:
Anonymous2014-01-03 15:22
>>19
You kids might not know it, but back in the 90's half of websites on the Internet had at least a "cgi-bin.pl".
Name:
172014-01-03 16:50
>>18
I use Perl::Dancer for my toy projects involving web pages. It's awesome
Name:
Anonymous2014-01-03 16:53
How do you use PHP?
You don't.
Name:
172014-01-03 18:36
>>21
Oh fuck, my schizophrenia is back.
Who am I again?
Name:
Anonymous2014-01-03 20:58
>>20
Why'd it fall out of popularity?
I can't imagine PHP is better, yet it's king for small, shitty websites
MVC is not that great though. It came from Smalltalk, but Smalltalk replaced it with Morphic from Self (a language in the Smalltalk family).
The "MVC" frameworks you get in other languages are usually as confused as "Actor" frameworks. They are the result of the California-(or USA in general)-magic-computer-snake-oil-cheer-leader-squad marketing.