« first day (1386 days earlier)      last day (3556 days later) » 
00:00 - 17:0017:00 - 00:00

user895378
5:02 PM
yes, because reddit
 
Anyone ^?
 
5:16 PM
How do I print the oldest directory?
 
<?php print "oldest directory"; ?>
 
@AlmaDo you forgot "the"
 
my bad..
 
hi does this "⁣" come through?
 
?
 
5:27 PM
it's the invisible separator
 
@notchris see stackoverflow.com/questions/2084986/file-creation-time/… and make sure to pass GLOB_ONLYDIR to glob to limit it to directories. Example: codepad.org/eHIFwT69
 
@Gordon Thank you
@Gordon I'm trying to remove the oldest directory in a directory. Not having a ton of luck.
 
Evenings!
 
hello :)
 
@Florian I think that will only print files.
 
user895378
6:09 PM
@DaveRandom Sorry to bother you with this again. If you could please update the Addr composer alert dependency from "~0.9.0" to "~0.10.0" it would make my life easier. There is one BC break that you're almost certainly not affected by. I removed ReactorFactory::__invoke, but I can't imagine anyone's code actually used that.
 
6:36 PM
Whats upload_max_filesize = 10M mean in mb or gb?
 
@RahulKhosla you guess
 
@Ocramius 10mb?
 
Quiet today
 
6:52 PM
 
really?
 
yep
that and stdClass
 
@Ocramius context?
I'd like to know what to avoid.
 
just that second parameter of json_decode
oh, and stupid stuff like 3v4l.org/Can1q
 
hey i love the second parameter :(
 
7:09 PM
@Ocramius So was it mb?
Im trying to upload a file to my server, its a large photograph. I've created a php.ini and set:
file_uploads = On
upload_max_filesize = 100M
Still wont upload.
 
7:21 PM
@RahulKhosla check if you have apache limitations in place
 
I updated the docs on my master branch on github. Is there a way to merge those changes into an existing release or do I have create a new release (and increment the version)?
 
@RahulKhosla Check your phpinfo() to see you've actually changed it.
 
Sorted it
Put it in the root.
 
There's a directive post_max_size too
 
Thanks though.
 
7:48 PM
-1
A: could not unset url after display the MVC page

David C.You should not have relative url's in your view files (html-files). Check out some common MVC systems like Laravel or Symfony. They all have some functions which provides you the full qualified url for you vew-files like: http://domain.tld/controller/param/... instead of /cobntroller/.. Implemen...

 
@tereško fighting hard
Maybe the question is better suited for code review?
 
the answer is better suited for drowning in napalm
 
"let me cite the (holy) laravel book" :/
 
fucking fucktard of fuck
 
@tereško 99.9% php developers think that MVC is something like MVP. When you say they're wrong, they will give a you a book where they have learned it. So even if you say what actually MVC is, they wound say you're wrong
 
7:57 PM
@bad_boy you probably should read wildcrest.com/Potel/Portfolio/mvp.pdf
because it's likely that MVP is not what you think
it's actually a client-server type of architecture (think: Xorg)
but yeah ... this trend of each framework defining MVC as "that, what we have implemented" it retarded and destructive
 
@tereško It has nothing to do with me personally. I'm just saying that 99.9% (kinda) php developers think that controller is responsible for getting data to model and sending it to view. This is just a whole "system"
I saw very skilled php devs (that know patterns, SOLID stuff, decent algs) and they think the same about MVC
 
@tereško When you separate controller (manipulates domain model) and view (that creates the output), what would you call that (if there is a name for it)?
 
"a mistake" .. also you can go with "rails architecture"
 
bad dum tsh
 
Guys im trying to clean everything BEFORE so that my download via headers can work.
 
8:05 PM
@tereško maybe I formulated this wrong, but I'm pretty sure that's what you described in one of you SO answers... Do I have to dig it out? :/
 
Is having
ob_end_clean();
//code
exit();
the best way?
 
exit() never is
 
@Patrick yeah, 2 years ago I too thought that it's called "MVP", but it's not
 
exit; **
 
@tereško so how are you doing things these days?
 
8:06 PM
Sorry.
 
@RahulKhosla exit; is neither.
you shouldn't kill your script (usually)
 
Its to download
<?php
ob_end_clean();
header('Content-type: application/octet-stream');
header('Content-Disposition: attachment; filename="'.$download->name.'.jpg"');
readfile($weburl."/upload/".$hiddenpassage."/".$download->link);
exit;
Then I've just require_once('download-image.php'); within a function.
 
@Ocramius How would you put assets (images, js, css) in module and call them?
in ZF2
 
@bad_boy I wrote a module called AssetManager together with @Rwoverdijk
you can use that
 
@Patrick It will be way too complicated to explain ... especially considering that this ia chat and I have drunk already two beers
 
8:10 PM
@tereško no worries then, I'll wait for the inevitable long answer on SO on someones question :)
 
hi guys
in order to test my-self and check my skills
I have started implement \SplDoublyLinkedList but in PHP
 
You know what sucks about 5.3? That I'm trying to use newer features all the time. a) [] instead of array(), b) array_filter with $key in callback, c) empty() with expressions, ...
 
everything fine, but I am trying to find good test case for that class
@ro
@RonniSkansing do you know some good test case for that class?
but it not so good
 
that sound like one of those sites which perpetuate SQL injections
 
8:17 PM
@cystbear are you talking unit tests or like a use case ?
 
@RonniSkansing thanks for link to doc
@RonniSkansing yeah, I am about unit tests testcase
 
Well try writting it from scratch again. But do not write any code before you written some unit tests
only add the code that makes the test go green
 
@RonniSkansing I know about tdd, also I have implemented big testcase and even implementation, but looking for some new test
... testcase I mean
 
Not sure then.. Whenever I go write tests for some code, I first just prototype code, when I got something like I wanted. I write tests, then add code, run tests, refactor, add tests ... until the module or etc is done. After that I do not really know what unit tests to add, cause I guess every test is already there, cause without it, the code would not be there
 
8:34 PM
Aloha everybody! Where can i find online tool to test php code execusion time used memory and so on? I know it exists but i forgot name of tool.
 
user895378
9:23 PM
You can easily write one yourself.
 
user895378
microtime and memory_get_usage are the only things you need.
 
@VeeeneX I use Athletic for my stuff, but it doesn't check memory usage.
 
Did you see it @rdlowrey?
 
10:06 PM
importing a few thousand commits into github :|
 
@Ocramius taking hours?
 
@bwoebi more like a day
 
@Ocramius how many thousand commits? :o
 
Manual subtree split of ZF2
 
into a new repo?
 
10:16 PM
 
no, they exist, but they are all messed up
 
Good afternoon, room.
 
it is midnight in my country
 
> "The most difficult part of the whole project was installing Windows on Sigbritt's PC," said Jonsson.
 
10:19 PM
dang, wrong link :P
 
^^ We knew it.
 
yo
 
10:37 PM
@bwoebi my internet is just 400 kbps :'(
well that was not for you, i accidentally tagged you
@RahulKhosla hi
nope wrong link
 
10:54 PM
@zeeks I don't see the coolness
 
are you english?
@HamZa
 
@zeeks nope
 
@zeeks more like "depressing" :|
 
anyway, i am watching liverpool-milan match
i hate it when my top favourite teams play against each other
 
11:53 PM
curious to know, for how many seconds do you make a sprint of 100m ?
 
infinite
 
hahahahahahaha
i am serious
i need to know a good time
to run 100m sprint
 
Is crawling allowed? I could try using that as a base
 
@zeeks I guess you need to check how long pro's do that and add or multiply that time
 
00:00 - 17:0017:00 - 00:00

« first day (1386 days earlier)      last day (3556 days later) »