4 ms·
single .php file…
by NaughtyShiba 5y ago
single .php file…
- wertgklrgh 5y agoso what? it's simple and it works.
- uglygoblin 5y agoIt doesn't mean they do all development in a single file.
- codazoda 5y agoI’m not sure if you’re implying it isn’t, that’s bad, or something else. The download link does take you to a single php file. It’s a mess, but it’s also kinda interesting. I’ve been doing PHP dev professionally for more than 20 years and I don’t think I’ve ever seen some of the conventions used. Even the PHP close tag inside a function like this. function login_page($is_login_attempt, $sidx, $is_logout, $client_hash){ ?> <!doctype html> <html> <head> <meta charset="utf-8"> … </html> <?php exit; // end form and exit }
- dewey 5y agoSome people make a million dollar a year with a single php file - https://remoteok.com/open https://remoteok.com/open - https://twitter.com/levelsio/status/1308145873843560449 https://twitter.com/levelsio/status/1308145873843560449
- rodolphoarruda 5y agoAnd here is the tweet which describes the stack. A single PHP file and Sqlite. This guy is my hero now. https://twitter.com/levelsio/status/1308406118314635266 https://twitter.com/levelsio/status/1308406118314635266
- cutler 5y agoSomeone who really gets PHP.
- qbasic_forever 5y agoThis is precisely the kind of thing that should be a single file CGI-like script. It's a much better view than the stock file listing Apache would spit out. There is no need to complicate it with microservices, high availability, event-based architecture, etc. It takes a single HTTP GET request and spits out HTML that nicely renders the content. That's all it needs to do. One file is perfect.