« first day (1947 days earlier)      last day (3017 days later) » 

5:07 PM
> Then what does the disable_functions setting in php.ini do?
if the only way I can answer that is "disable functions", am I stupid, or is the person who asked the question ?
 
not you.
 
not sure how else I can explain it ...
 
Clearly, that guy doesn't comprehend the difference between a language construct and a function.
 
yep
 
@JoeWatkins Happy? cakeday.
 
5:11 PM
the cake is a lie ...
 
not a triumph, then?
 
nope, lies
 
evenin
 
indeed
 
5:33 PM
o/
 
5:51 PM
I'd appreciate comments on my doc writing style though, if anyone can be bothered :-)
 
6:04 PM
> The root() function is returning a handler for static file serving and is expected a document root path to serve files from.
Engrish
Is {:toc} some docs generator hint?
 
@PeeHaa yeah, ignore it :-)
@PeeHaa the English is fine … the phrase construction maybe a bit heavy … but how to write it better? :-)
 
A note about assertions being needed for the debug flag is useful
 
in the process of post-redirect-get, if users hit twice "go back", is it possible to prompt the submit again??
 
No
 
@PeeHaa true, will add…
 
6:07 PM
> The root() function is returning a handler for serving static files. It is considered the document root of the virtual host.
?
> The only apparence of the Websocket\Message is in Websocket::onOpen respectively of Body is in Response::getBody respectively InternalRequest->body.
wat!?
 
@PeeHaa thanks for replying my dumb question :D
 
It's not dumb
 
@PeeHaa ah, you're looking in the classes directory … need to review that again ^^
 
yea :)
 
@PeeHaa Okay, that is formulated a bit weird
 
6:10 PM
thanks anyways :)
 
np
 
@bwoebi "is returning" - continuous verbs are not that great. Either a definitive future case "will return" or non-continuous "returns"....
 
> people from easily DoS'ing you by just sending much, much and even more data.
 
@PeeHaa oh, that's your proposal… well, reads even weirder than before to me. :-/
 
much, much and even more
 
6:12 PM
@Danack okay
 
Might as well put a many just for good measure in there :P
 
@PeeHaa many and data? noooo :-P
 
@bwoebi Well that's how people will read your sentence
Did you perhaps mean to add a "to be"?
 
The root($path) function returns a handler for static file serving and is expected a document root path to serve files from as first parameter.
^ better?
 
No
> is expected a document root path to serve files from as argument.
No idea what this means
 
6:14 PM
edited
 
What does is expected mean?
What are you trying to say?
Does expect perhaps?
 
well, you have to pass the doc root path to it as first param?
not sure why I used passive form here…
 
yeah
11 mins ago, by PeeHaa
Engrish
:-)
 
:-D
"is expected to be passed" would have worked too, but sounds weird too^^
@PeeHaa put that as commit msg.
 
ietf.org/rfc/rfc2119.txt - has good words to use. tools.ietf.org/html/rfc6919 has funny words to use.
 
6:17 PM
@bwoebi :)
 
@Danack I immediately looked at the date ;-)
 
@Danack I love rfc2119
 
I'm trying to find a Lionel Hutz quote; it's something like "a crappy argument is still kind of an argument".
 
@Danack Also, I don't like reading RFCs because of their imperative style. It's fine for explicit protocols, but not so much for prose or APIs
 
@bwoebi That's kinda the thing I love
 
6:19 PM
@PeeHaa eih?
 
I have an idea for an April Fools PHP RFC, but I don't know if I'm going to have time to put it together and/or be around on April 1 to pull the trigger.
 
@bwoebi You MUST NOT disagree.
 
@PeeHaa have you already looked at the documents in the http directory?
@PeeHaa
 
Nope. Clicking through classes atm
$res->setCookie("tasty", "", ["Expires" => date("r", 784111777)]); # somewhen in the past
 
this was a really cool interview: Ryan Reynolds: "Deadpool" | Talks at Google
 
6:21 PM
time() - something ?
 
@PeeHaa the date is a bit a pun against RFC 6265 ^^
 
:P
Also "somewhen" feels medieval english
 
is sometime better?
 
I would say yes.
Shouldn't it be two words in that case though?
 
don't know
 
6:23 PM
Where all all those brits when you need them?
 
@Danack DAAAAAAANNNNN ^
:-D
 
one word
 
@bwoebi "a time in the past" - but actually maybe "Any time in the past" depending on actual meaning.
 
any is fine, okay
 
somewhen is perfectly good English too ...
 
6:26 PM
okay, when Joe says so :-P
 
> To define a dynamic handler, all needed is a callable passed to Host::use().
All that is needed
read nicer to me
 
that's too long :x
don't know
 
it does need changing ... there are words missing there ...
 
@bwoebi You are missing words, which may be fine when speaking but in writing it is odd
 
Can we please write Latin, there nearly no word is too much :-D … kidding … okay.
 
6:29 PM
To define a dynamic handler, pass a callable to Host::use() ?
 
> being (nearly) equivalent to $_GET.
At least tell me what is missing from it :P ^
> There are a few more information available about the request
There is
 
@PeeHaa the nearly is redundant, I figured later :-P
 
even then it wouldn't really be right
 
There is more info still reads wrong?
@bwoebi Even better
 
"There is a few more"
There is [limited] additional information available about the request
would be okay
probably omit [limited]
 
6:32 PM
thanks :-)
 
BTW regarding fast route. Shouldn't you also implement caching?
Which would mean a prod/dev flag somewhere
 
@tereško related ... going to see that tonight ...
 
@JoeWatkins yeah, well, I will be waiting till it hits the torrents :(
 
@PeeHaa What type of caching exactly? Aerys is internally caching the route dispatches
 
6:35 PM
ugh me too
 
in which room should i ask .htaccess questions?
 
@AgniScribe the padded one.
 
@PeeHaa no, we're not caching that, that's not relevant for Aerys.
 
Oh right. Run once...
 
6:36 PM
@teresko the padded one?
 
@PeeHaa yep ;-)
 
Hi!
 
Just ask....please don't ask to ask....we'll just ignore the question if we don't want to answer.
 
6:38 PM
Why are filenames usually excluded from most of the clean url code that goes into .htaccess eg. RewriteCond %{REQUEST_FILENAME} !-f ? What's the reason for keeping out filenames? I have urls with filenames that need simplifying what if I just left out this line?
 
I'm facing some problems with apache's .htaccess
I renamed my root folder from "www" to "old" and renamed the "test" folder to "www", moved "old/.htaccess" to "www/.htaccess" and changed permissions, I still can't get ModRewrite to work
 
@AgniScribe to rewrite clean urls to a URL that contains a file e.g. "/users" to "/users/index.php"
 
@bwoebi The options defaults are choosen
choosen is not a thing
 
woops, typo
 
The Apache rewrite stuff is one of the reasons why people i) Don't use Apache if possible and instead use Nginx, ii) send all requests to /index.php and then do all of the routing inside PHP.
 
6:41 PM
@AgniScribe that condition is checking whether file exists
 
the full code is:
`<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ index.php [L]
</IfModule> `
 
you dont want to rewrite /css/stylesheet.css TO /index.php?url=/css/stylesheet.css
that's what those conditions guard against
 
> maxConcurrentStreams is the maximum of concurrent HTTP/2 streams on a same connection
maxConcurrentStreams is the maximum of concurrent HTTP/2 streams on a signle connection
Or the same
 
basically, read the fine manual, @AgniScribe: httpd.apache.org/docs/current/mod/mod_rewrite.html#rewritecond
 
Are php methods case insensitive?
 
6:44 PM
@teresko - put that way i get it, but then how can i cleanurl those few urls that have filenames (i have at least 4 of those), the remaining don't
 
@Manulaiko yes. As are class, interface, namespace and trait names
 
0
Q: PHP: Static linking & using Clean URLs on filenames

Agni ScribeThis question has 2 parts: 1. My website has a unique homepage template and a completely different template shared by all the inner pages. This has led me to giving each of them their own page. The tutorials I've seen to date have involved dynamically linking to other main navigation (landing) ...

 
I'm going to have a beer or two now. Will try to read through it proper later this week @bwoebi
 
@PeeHaa Yeah, I'll add more docs
 
@teresko - ye i think i better do that - have hit a wall
 
6:45 PM
@tereško oh well, that explains why I can't have public function register() : Response and public function Register() : Response
 
@bwoebi I will probably just PR fixes for it then. Easier for everyone
 
@PeeHaa though, my main question still isn't answered… any comments about my doc writing style in general?
The English fixes are very nice, but not what I really asked for :-D [But you're welcome ;-)]
 
:P
 
@PeeHaa that wasn't an answer :-P
 
yeah overall it is ok I guess. But @Danack seems like the guy to bitch about stuff like that.
I'm pretty sure I have seen him do that on multiple occasions
@AgniScribe > with the -f ensuring that it does not apply to filenames
That is just wrong
 
6:48 PM
mhm fine :-)
 
@PeeHaa ping me in 3 days if I haven't done it at all - github.com/Danack/TodoList/issues/5
I'm in the middle of too many other word things right now.
 
hehe kk
 
Basically been offered a job, but with horrendous contract conditions.
 
@PeeHaa "is just wrong" meaning -f is not the way to go about it?
 
@Danack Are you in urgent need of one? :-/
 
6:49 PM
Still that thing with the non compete anywhere anytime ever yo dawg thing?
 
@bwoebi yes pretty much.
 
@AgniScribe No, in the way that it is only for files found in the document root
 
@PeeHaa well ... it's !-f that excludes existing files
 
@PeeHaa yeah.....and just found out that they're enforcing it on someone, actually in a way that if it was written more clearly would be both legal and reasonably. They've fucked up though - the way it's written is far too broad which makes it unenforceable in general, but in particular for the person that're trying to persuade not to go work somewhere.
 
the "!" stands for "not"
 
6:52 PM
/me is out getting drunk o/
 
@PeeHaa have [some weird kind of] fun :-)
 
Will do
One last thing:
How the fuck did this get all those upvotes!?!?!
31
Q: How do I make text bold in HTML?

user133145I'm trying to make some text bold using HTML, but it doesn't work. Here's what I'm trying: Some <bold>text</bold> that I want bolded. Could someone tell me what I'm doing wrong?

 
@PeeHaa it had 7 years time…
 
plus there are more newbies in thr world that specialists, and they are likely to ask these questions and google's bots help
*than
 
Is XDebug available for PHP7 throw repository for linux?
 
7:00 PM
@Ekin dunno. It kinda is my all-time-favourite. I guess I can recommend "Serial Experiments Lain" which (just like "Ergo Proxy") left this feeling of The Void, when it ended. And I am assuming that you have already seen Ghost In the Shell (1995)
I really havent seen too many animes since I left the dorms .. I probably should start watching them again
 
You're the 2nd one today suggesting SEL to me, so it's decided. Yep I saw Ghost In the Shell already. Ergo Proxy is now my 2nd all-time favourite, after Code Geass. (it might be cause that was the first one that left the feeling of the void on me)
 
yeah, SEL is a really strange experience
first time I saw it I binged through all 13 episodes, almost entirely fuled by weed ... dormrooms
 
lol
well.. that was my yesterday night with Ergo Proxy... sigh, summer in uruguay :p
 
I really liked how characters in it changed over time
both in appearance and behaviour
 
indeed
huh "Stack Exchange is currently offline, we'll be back shortly!"
 
7:13 PM
someone is messing around
 
oh, remembered another one which was interesting: Karas ... but this on is more notable for the spectacle and not the ideas
 
indeed seems like an interesting one
 
@Ekin youtube too is experiencing some leading issues
 
noted
 
it seems we have another cloud-meltdown on our hands
it seems we have another cloud-meltdown on our hands
 
7:16 PM
yeah
 
.. and this chat might go offline very soon
 
lol your last msg was double posted (on my end)
come on... hang in there chat :p
 
Is it absolutely necessary for all pages in a website to be linked dynamically using the ?page=# strategy; right now am statically linking to my main navigation landing pages using href, and using dynamic linking for the all the pages falling under these main navigation sections.
 
I can't believe it shows 28C here...it feels like 35C at least
 
I still can't understand why mod_rewrite isn't working, I've tried almos everything, changing file permisions, allowing override, moved .htaccess to site .conf...
any idea?
 
7:36 PM
@AgniScribe your question didn't make sense
@Manulaiko did you check the error and access logs?
 
@teresko i'm using the respective table ids to load almost all my pages. but in the case of my index/home.php and main landing pages ie. news.php, reviews.php - i'm linking using href. is this an issue?
 
7:49 PM
@AgniScribe the correct answer would be: it depends
for a small site it is just fine
 
@teresko, it is a small site
 
but as site's size grows, more and more of "pages" become dynamic
and same applies to the practices and architecture that you use - as you learn more shit, you site will become more and more dynamic
 
but the only issue it's creating for me is when it comes to cleanURLs since the .htaccess code .... !-f would exclude filenames
 
I don't think you really understand how rewrites work
but it doesnt really even matter
let's say you are using this rule:
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ index.php [L]
 
yes
 
7:55 PM
when you open http://my.site/news you want to load the news.php file ..
 
yep
 
it means that in the index.php file you should have a "whitelist" based on what's contained in $_SERVER['REQUEST_URI']
if $_SERVER['REQUEST_URI'] contains "/news" you just include news.php file
 
that would be the slug saved in the table?
 
what slug?
 
(ignore that - am mixing things up)
@teresko - thanks, will chew on this & read more.
 
8:01 PM
not sure if I should lie about valentine's day to my client and skip work hours today or just accept it and work between 9pm-1am..
 
@AgniScribe when you implement a fully dynamic routing in PHP, you will end up with index.php just looking at $_SERVER['REQUEST_URI'], splitting it up and using the parts to decide what files to load
 
that makes sense - it's the first time i'm hearing of $_SERVER['REQUEST_URI'], in the lessons i've been through on dynamic linking
 
is it bad architecture to have route matches the template folder/file path name instead of setting all the possible route path ??
 
@Andrew for a beginner - no, because it is just one of the phases you go through.
for a professional - hell, yes
 
@tereško yeah, I saw all the route mechanism in github all explicitly needs manually setting...
what is the advantages of doing so ??
 
8:13 PM
main advantage would be that at some point beginners which to using OOP instead of include-oriented-programming
also, the directory-file structure almost never represents the underlaying architecture
There is no "edit.php" file for http:/who.cares/article/13/edit
 
not quite understand the first sentence .. :(
true, the "edit" will be parameter
 
no, the "edit" would be (loosely related to) a method in some class
 
instead of a real file
arh, i see, as a method in related to edit
@tereško I see where the problems lie now. thanks :)
 
8:29 PM
is there a function to check if a class exists?
oh wait yes
 
@Andrew and then for an experience developer, and you know why you're doing it, it become fine again: github.com/Danack/Tier/blob/master/src/Tier/JigBridge/…
 
9:04 PM
@Danack thanks for the example :) how do I know when I have enough experience haha......
 
When you know the idea kind of sucks, but the benefit of doing it like that outweigh the costs.
aka ¯\_(ツ)_/¯
 
haha I like that
 
Why this keeps giving 0 as $rows (num_rows)?

$query->bind_param('s', $keycode);
$executed = $query->execute();
if($executed === TRUE){
$query->store_result();
$rows = $query->num_rows;
$query->bind_result($id);
$query->fetch();
...
}
(^ is wrapped in if($query = $conn->prepare("SELECT id FROM table WHERE x = ?")){...} )
 
Anybody knows what is the meaning of this: "lemmeno ?"
 
9:19 PM
"let me know"
 
/me prefers to use PDO instead of MySQLi
 
@jbafford yeah right ..! tnx
 
yeah normally me too and guess I'll just rewrite with PDO
 
is there any legit reason to go from PDO to MySQLi ?? I actually never used mysqli before...
 
@Andrew Do you mean what is the advantage of PDO than MySQLi ?
 
9:22 PM
@Andrew it would be a little bit faster
@Shafizadeh he meant the other way around. He's asking what would be the reasons for using MySQLi
 
@Shafizadeh sort of, but reverse
 
ah ok ..
@Andrew In this field, I like this short answer
 
I have heard some off-hand comments indicating, that MySQLi code (the one in C) might be better than PDO
 
@Andrew there's a few "semi-async" things that can be done in MySQL that can't be done in in PDO - php.net/manual/en/mysqli.reap-async-query.php
I believe.
 
the mysqli code is probably better suited specifically for MySQL than PDO is.
 
9:26 PM
@tereško I didn't know C uses MySQL ..
 
Also, the abbreviation is way cooler. MySQL-aaiiiiiiii
 
@Shafizadeh PHP itself is written in C
 
ow !
@tereško I thought C is a programming language just for local-applications (not web)
 
@Danack definitely havent seen it in PDO, nice link
 
@Shafizadeh You could certainly write a website using C. It'd be more difficult, though, but not impossible.
 
9:28 PM
@jbafford I see, interesting
 
That's why we have languages like PHP that add abstractions that make doing domain-specific things much easier.
 
If I have time I might as well just take a try on mysqli :)
as long as its not mysql without the i :P
 
As you said, the core of PHP is C .. Also I heared somewhere else the base of C# (ASP.net) is C too ..! But why PHP and ASP.net have totally different syntax ?
 
because they do.
 
9:32 PM
Most programming languages are written in C. That doesn't mean they have to have identical syntaxes.
 
fair enough
 
(removed)
 
he wrote something stupid, I called him out on being stupid, he decided that I was kinda correct, everything was reset to "lets forget it"
 
9:38 PM
:D
 
@tereško Yeah I figured it out ;-)
 
haha I was trying to reference as they all have the letter C XD
 
btw @tereško Have you a Clash of Clans account?
 
nope
I try not to play mobile/facebook games
 
odd .. I expect you have one
@tereško Why? you really like games
 
9:41 PM
I like games at which you can get better by learning
 
@tereško ah
anyway, I wanted to invite you to a doel (fight) ..! You are lucky that you don't have an account, because my account is really strong and you will be defeated ;-)
 
KSP is also a fantastic educational game
 
@tereško Has it some sexy photos? Because it is filter..!
 
9:45 PM
nope
also I am not entirely sure why it would be blocked
 
Then I don't know why it is filter, maybe it is containing some political points
@jbafford awesome !
 
oh wow, I totally forgot the osmos
 
osmos ?
 
that was kind of addictive for me once
 
steam is banned in Iran, he wont be able to see the link
 
9:48 PM
oh, then osmos-game.com
 
@tereško But how do you know that?
@Ekin ah ok
 
3 mins ago, by Shafizadeh
Then I don't know why it is filter, maybe it is containing some political points
 
good night guys, its almost 6 in the morning...well...good morning...
 
@tereško oh .. they are the same website ... sorry
@Andrew please wait ..
I have a short question
 
huh. It seems if you permalink to a message that is subsequently deleted, the permalink message still has the text of the original.
 
9:51 PM
@Shafizadeh ??
 
@Andrew One of my friend intends to migrate to China. He don't know Chinese at all, But he knows English a bit ... Now I want to know, all China-people know English ?
 
@Shafizadeh hate to say, but depends...
 
All I want to know is, A person who don't know Chinese will encountered some trouble in China?
 
I suspect it will depend on "where in china" ... it's a big place
 
Ok, lemme ask ..
 
9:55 PM
well...if your friend is in a developed city, it shouldn't be that big of a deal, but some trouble is certain
 
Shanghai !
@Andrew Owkey
 
@Shafizadeh it should be fine, there are lots of foreigners live there
 
alright ..
 
@Shafizadeh hope your fd best of luck. btw watch out the air pollution and reckless driver...not kidding
 
Thank you :-)
 
9:59 PM
@Andrew I don't think his friend is a file descriptor.
 

« first day (1947 days earlier)      last day (3017 days later) »