« first day (2821 days earlier)      last day (2124 days later) » 
01:00 - 23:0023:00 - 00:00

11:01 PM
@William so... properly configured as in "it's working!" vs. "it's not working!" or something else?
 
@Tiffany I don't understand your question
 
your original question
> how do I detect when the router/index.php is properly configured vs it isn't.
 
ahh yeah well if someone visits localhost I want it to throw an error with out the the router in place
but I am trying to avoid a separate router.php file
just an index.php file only
 
would that violate SoC (separation of concerns)?
 
define SoC
its php probably uhhh its php
 
11:17 PM
??
 
yes but its php its kinda a pretty hacky language
 
@William check in $_SERVER... but you usually just want to rely on the url rewriting of your web server.
 
@FlorianMargaine that's what he was doing earlier, using the local PHP web server, but I swayed him towards using a router in PHP :S
@FlorianMargaine besides, nginx doesn't have URL rewriting
 
@Tiffany swayed? I asked if I can use a router with the local web server to avoid installing apache/htaccess/nginx
 
@William PHP has issues, there's no denying, but that's not justification for following poor design decisions, in my opinion
but I cede that it depends on the scope of the project, if it's just something you're throwing together for fun and then forgetting it in a week or so, then I agree, what's it matter
 
@DaveRandom lied to me
 
don't trust @DaveRandom
8
 
that was one of my hangups for fully switching to nginx because I'm using to rewriting URLs at the server level (...in IIS...), and haven't fully adjusted myself to doing it through code
 
you can definitely use nginx, don't worry
 
yaaay
 
11:28 PM
$_SERVER seems to be identical I guess I am sticking to a router.php file for now or something
to be fair the url is the same but I had hoped there was a way to tell
there would be with nginx or .htaccess I think
 
11:42 PM
@Tiffany use php files.
@William you would probably be better off using a framework like slimframework.com at least until you're comfortable with PHP's patterns.
 
@Tiffany YAML is nice, yes
> and independently - should perhaps go hand-in-hand with fixing the flaws of the non-strict types - something we can do in PHP 8.
oh god Zeev
will you never stop
so bitter
 
@FlorianMargaine they have business plans to keep to.
 
01:00 - 23:0023:00 - 00:00

« first day (2821 days earlier)      last day (2124 days later) »