« first day (484 days earlier)      last day (4461 days later) » 
00:00 - 20:0020:00 - 00:00

 
3 hours later…
3:11 AM
Good day!
Is anyone here?
 
 
4 hours later…
Sam
6:49 AM
Hello!
 
 
1 hour later…
8:01 AM
Hii
 
Sam
Sup
 
8:49 AM
Good morning
 
Sam
hi
 
Hi @Sam
 
 
2 hours later…
10:39 AM
Morning , anyone around?
 
11:32 AM
Morning!
 
Hello @Eugene
 
Hey @Donut
Do custom session handlers their operations independently from main process?
I'm asking since even if throw exit somewhere it still gives separate fatal error in example in session_write hadler.
 
11:57 AM
hey guys
2
Q: Working with PDF in PHP

epic_syntaxShort What I want to do is, to prepare PHP generated result for print with strong rules. Tried all possible ways with css+html: set dimensions in px, mm, cm. Nothing helped. Each browser, even each printer printed absolutely different paper results (tried both with & w/o border print. als...

 
 
1 hour later…
1:15 PM
As always... this channel is not active... not surprised :)
Well... not active as for this hour :P.
 
It's usually one of the more active channels. It's a Sunday :)
 
:)
I'm still waiting for official release of PHP 5.4.0 (means - not Release Candidate)...
 
1:32 PM
It's not going to happen soon I guess.
 
Still mostly on 5.2
 
Well, current RC is RC7...
PHP 5.3.0 only had 4 release candidate versions...
But right, reaction of web hostings may vary...
Some still use PHP 5.2...
(yes, I know it's RC6, not RC7, but my host has RC6 and not RC7...)
 
@GlitchMr I also hope that RC7 is the final RC
I think it should be released, regardless of the known bugs
Those can be fixed in 5.4.1
The code freeze is just annoying and it wouldn't be nice if it would continue for another month or so
 
I really like new array syntax. Personally, I think it would be nice in function arguments or arrays in arrays...
array([1, 2, 3, 4, 5],
      [6, 7, 8, 9, 0])
 
I personally can't wait for triats. Also callable typehint may be really useful.
 
1:44 PM
hellow all
 
Is that an array of arrays? So it's square brackets to denote arrays?
hello
 
Hi @PeeHaa
 
@JohnP: yes
 
wouldn't it make more sense to have everything square then? [ [1, 2, 3] , [1, 2, 3] ]
like in JS
 
1:46 PM
Too bad Unicode support is still bad and there is no taint mode (I guess that they want to put those in one of future releases), but otherwise it's nice release.
 
so the outer container (the construct method) is still a ()
 
I prefer $a = array(1, 2, 3) instead of $a = [1, 2, 3]...
 
Hi @Donut why traits? What are you going to use them for?
 
But I guess that everything square would work too :).
 
@Paul I will relace some classes with triats
 
@Donut I'm gonna stick with classes and composition. Traits still have an evil feel to them in my mind. They seem too much like copying and pasting code for me.
 
because they are doing exactly that
 
You'll have to resist the temptation to bunch a group of methods in there and use them all over.
 
@CharlesSprayberry I think we have killed ACTA in europe. Next stop: the even worse TPP
 
:)
 
@PeeHaa is on closing streak of 3!
 
@Donut All for the better of humanity ;)
 
:P
Writing framework, it's just awesome.
 
Lol some people just echo your answer as there own :P stackoverflow.com/questions/9249345/…
:P
 
Does anyone have any resources on public API design?
 
2:34 PM
@JohnP I saw a Google Clean Code talk on API design that was really interesting...actually fun to watch because the speaker was so enthusiastic and animated.
I'll see if I can find it
 
@CharlesSprayberry awesome! thanks
 
Anybody in here knows how to setup reverse DNS?
 
nope, nada, zilch
 
@CharlesSprayberry excellent, you have my gratitude good sir!
 
2:38 PM
The first 2 minutes starts kind of slow
But picks up after that
 
awesome!
 
3:17 PM
hey guys , is there any chatroom where i could ask about windows/network/IDK problems ?
or IRC channel .. hell .. i am quite sure that it is not fitting for ##windows
 
Hello everyone
 
hello @Zundrium
 
@PeeHaa with bind9 ?
 
A question to all, if we look at structures like MVC or HMVC etc. which of those structures is the most efficient / clarifying to you and why?
 
@Zundrium , are you aware that you cannot do classical MVC in php ?
you can only have MVC-like architectures : Model 2 MVC , MVVM , MVP (most common) and HMVC
i ( and it is extremely subjective choice ) use Model 2 for small sites and HMVC for portal-ish things
 
4:02 PM
2
Q: MVC pattern: what need to create first?

MazzyI'm studying codeigniter and its pattern programming...and I'm asking what should be create first, view or controller?what should be projected at first view or controller?

 
@tereško I'm only aware that PHP is a dirty language without any solid rules. Could you give me a small site as example?
 
@Zundrium dirty language is kinky
 
and now , this channel is aware that you are full of sh*t
 
@tereško who?
 
no worries , not you
 
4:05 PM
@tereško i wouldnt worry even if you meant me :D
 
thought so
 
@tereško full of sh*t you say.. I guess you mean you disagree with me there, no problems! If I just compare it with Java which is way more strict it looks like a playground where you can easily make inefficient code structures if your new to programming. But no worries I love PHP :)
 
@Zundrium I would say that you can write horrible code in any language. If there's some language that magically enforces you to write good programs I've yet to come across it.
 
@Charles What I mean is the return rule in Java for example. if you make a string function it has to return a string.
 
4:13 PM
@Zundrium Then your problem is not with PHP but with dynamic typing in general. PHP is not the only language that is dynamically typed.
 
@Charles Could be, I'm not an experienced programmer. I'm only programming for like two years and Only have experience in PHP and Java. So don't take my statements heavy
 
I get what you're trying to say. PHP lets you do a lot of things in a variety of ways and it can sometimes be easy to do bad things. However, that's not PHP's fault; it's the developer's fault. PHP didn't type that code into the editor. You did.
 
@Charles I agree, it lets you be creative. But I don't think that's the best thing for beginning programmers.
 
there are two key differences between java and php : 1. one is strictly type , other - loosely , 2 one was designed and other has evolved from templating markup
 
@tereško Tell me! :)
 
4:19 PM
Hi guys...I've got a bit of a problem and was told to discuss this over the forum.
*chat :D
 
@Zundrium That may or may not be true. I think it's more about the motivation of the developer. If they really wanna write good code the language they're writing in won't matter.
@Eugen Go ahead and ask. points at title in upper right corner
 
I'm trying to use PDO to connect to a MSSQL database and although I have the drivers installed and PDO support appears as "enabled" in phpinfo(); I'm getting the following error: ( ! ) Fatal error: Uncaught exception 'PDOException' with message 'could not find driver' in C:\wamp\www\testMSQL\getDataAndProcess.php on line 12
 
@Charles of course man, let's just say it has good and bad sides.
 
@Eugen , its what it says , you are missing driver for mssql .. the canned server solutions usually come only with mysql support
 
Yes...I was just about to add that in the driver line, there's no mssql.
I got the drivers from Microsoft installed (sqlsrv) but that's of no help since I was told PDO is the proper way to do this
Sorry for being such a noob with this, I usually develop in Android and Java and have very little PHP or MSSQL experience...
 
4:25 PM
ehh ... this why i always tell people : you should be able to compile shit on your server
 
@Eugen msdn.microsoft.com/en-us/sqlserver/ff657782.aspx linked from PHP docs on PDO and MS SQL
 
@CharlesSprayberry Many thanks! I'll try that now
 
DARN YOU AND YOUR SIMILAR NAME, SPRAYBERRY! DARN YOU TO HECK!
 
@Charles I have to deal with it on the other end too. Suffer my similarly-named-ping-you-to-hell wrath!
 
Seriously. *twitch*
 
4:32 PM
At least you have diffrent avatars :P
 
Yeah, it's just people that don't use the @-autocomplete that make life interesting.
 
Have I ever mentioned that SVN sucks?
 
so if I type @Carles you both get a sound?
 
@Zundrium That is correct. However, if you hover over the chat messages you'll see a small arrow pointing to the right. If you click on that and just type your message it will respond to the appropriate person and only one will get the ping.
 
4:34 PM
I happen to have sound turned off. I'm not in the chat much though, so occasionally I'll get chat notifications and always have to check every one of them to see which Charles they're for.
 
@Charles Clearly you should change your name!
 
@Donut I hate it more and more :)
 
I have't even used it, so I belive you
 
And I hate dsp for removing the github mirror of php's svn
 
@CharlesSprayberry I see
 
4:36 PM
Hey
 
@CharlesSprayberry Pfft. I was here first. Get off my lawn! ;)
 
Can someone hlp me?
Please!
 
0
A: Duplicate notification while writing an answer

GordonI am absolutely pro this feature request, but would implement it like this: User writes an Answer Another Users supplies a Closevote User hits Submit for his Answer User is forced to review Possible Duplicate User can then decide to post the Answer to the possible duplicate (counting as a clo...

 
@Luis No
@Luis We can not help you because we don't actually know how to help you...
 
@donut please!!! It's urgent!
Oh cool, wait
I'm doing a chat for my social network. I'm using the following code and it seems to work while showing chat, but not while hiding it. You can see it on live-pin.com at the right bottom corner (the "system" bar).
 
4:37 PM
SO does not react well to "It's urgent!"
Your question also seems to be about Javascript. This is the PHP room.
 
@NikiC My new employer uses SVN. I was actually thinking about hosting a project in it just to get a feel for it. But, ugh...too bad they don't use git.
 
I think we have a serious case of India Asking Pattern there...
 
I couldn't post it, don't know why.
 
@Luis why do you ask jQuery stuff in the PHP chatroom?
 
@Luis I don't know why you are asking for help in PHP room.
 
4:38 PM
Nope, it's PHP also
It's jQuery, PHP and JSON
 
How is that PHP?
 
@Luis So because of that you are posting JS problem here?
 
But jquery room is empty
 
Just because you echod it with PHP doesn't mean that it is a PHP problem
 
on jSON
 
4:38 PM
@Luis please provide code samples on separate messages and tick the FixedFont button so it shows properly
 
Ok. So what are you expecting from us?
 
jQuery != PHP. JSON != PHP. The code you posted != PHP. It's urgent, which is also != PHP.
 
@Luis I don't see any AJAX request to a PHP server so no
 
@CharlesSprayberry No, it's clearly a Linux kernel problem...
 
$.getJSON("/ajax/end.emu.php",function(data){
$.each(data.notif, function(i,data){
from = data.from;to = data.to;msg_id = data.id;msg_txt = data.text;
if ($("#chat_"+from+"").length === 0){
$("#boxes").append('<div id="chat_'+from+'" class="chat_box hidden_box">'+
'<div id="'+from+'_nick" class="chat_nick">'+from+'</div>'+
'<ul id="'+from+'_txt" class="chat_txt">'+
'<li id="'+msg_id+'_txt_msg" class="chat_txt_msg">'+ msg_txt+'</li>'+
'</ul>'+
'<form class="new_message" method="POST" id="new_msg_'+from+'">'+
 
4:39 PM
@NikiC your mother is a linux kernel problem ;)
4
 
Theres the JSON
 
@Luis There is not a single byte of JSON in that block of horrible that you just posted.
 
using AJAX in the backend
 
additionally .. @Luis , the code you posted sucks a lot , you seem unaware o how expensive each $() is
 
2 mins ago, by Gordon
@Luis please provide code samples on separate messages and tick the FixedFont button so it shows properly
 
4:41 PM
	$.getJSON("/ajax/end.emu.php",function(data){
	$.each(data.notif, function(i,data){
		from = data.from;to = data.to;msg_id = data.id;msg_txt = data.text;
		if ($("#chat_"+from+"").length === 0){
			$("#boxes").append('<div id="chat_'+from+'" class="chat_box hidden_box">'+
				'<div id="'+from+'_nick" class="chat_nick">'+from+'</div>'+
				'<ul id="'+from+'_txt" class="chat_txt">'+
					'<li id="'+msg_id+'_txt_msg" class="chat_txt_msg">'+ msg_txt+'</li>'+
				'</ul>'+
				'<form class="new_message" method="POST" id="new_msg_'+from+'">'+
 
@Gordon :P
oh, it learns, it learns
 
@Luis quit spamming your bloody code
 
@NikiC j/k ;)
 
@Gordon XML still sucks, btw ;)
 
That is a JSON file where the chat retrieves the latest messages.
Just like in Facebook Chat.
 
4:42 PM
heh, it doesn't learn after all...
 
@Luis I dont think anyone in here will be able to help you with that
 
It creates a "chat_box" DIV for each sender
 
Oh, hey @Luis what'cha doin?
 
Your question have to PHP what car to carpet.
 
Seriously, just go post a new question with all of the detail.
 
Oh, no @luis, that was the wrong move.
@Luis Please stop spamming the room, and also, don't send an invitation to anyone who comes in who you think can help
 
@PeeHaa Oh how I love canonical dupes.
 
Okay then, I have some PHP questions.
 
@PeeHaa pascal repwhored on it
 
I wrote a code for Facebook styling, old stuff.
But I need to write sessions
 
4:44 PM
@Gordon as always ^^
 
With an specific lenght
 
@Gordon yup you guys were to slow ;)
 
@Gordon , flag as "people with 100k reputation should not whore for more "
 
Uh, I think we really should implement preemptive closevoting for the php tag. Close everything and reopen as appropriate
5
 
Hey guises
 
4:45 PM
so there is moderator meeting in here now?
 
@Gordon wat
 
@NikiC yeah, lol :)
 
Wow, 2 moderators?
 
three
 
three?
 
4:46 PM
@Gordon we need some script which in realtime checks new question with "Headers already sent" and automatically post the link here :)
 
@PeeHaa no, we just need to start all Qs in the PHP tag as closed ;)
 
@Gordon :-)
 
7 messages moved to bin
Hello @Kev, @BoltClock and @casperOne
 
@Gordon fair enough
 
They come.
 
4:48 PM
@BoltClock Hi
 
Kev
@Gordon howdy chap.
 
Three moderators have come. Let's hide under the table!
 
@Zundrium @Gordon Thanks :P
 
Kev
@Donut you can run, but you can't hide :D
@Gordon everything ok in here...12 flags
 
@Kev yeah. I think @Luis understood now :)
 
4:50 PM
Just some code spam issues.
 
So many flags :'(
without context
 
Kev
@Gordon ok...cool. I'll leave y'all to it.
 
Sorry, new on SO
 
are there sites which allow mirroring svn projects to github?
 
16. And the messages being flagged don't fit in my browser window.
 
4:51 PM
@Kev yo. thanks for stopping by.
 
@Gordon Thanks for teaching me :B
Just 14 y'o
15*
 
@NikiC ask @salathe since he does that with the php src
@BoltClock buy a bigger screen ;)
 
@Luis It's ok to chat and ask questions in chat, but spamming the screen, sending out invites, that's just not cool, people will ignore you and if you spam the room enough, then we'll have to shut down your chat privileges for a bit. So don't make us do that, ok?
 
@Gordon wtf, that would be exactly what I need
 
@casperOne "shut down your chat privileges" :O
 
4:53 PM
COOL @casperOne, thank's for your lessons.
 
@BoltClock I'll explain in TL
 
@Gordon nope, salathe only has phpdoc-en, not php-src :(
 
Anyone here from anonymous?
 
anyone had problems with long pushstatates crashing the back button chrome?
 
Anyone not me?
 
4:53 PM
Guys, you ok with me just dismissing all of these flags.? They're annoying me quite frankly =)
Or do you want the messages gone?
 
What flags?
 
@Luis ... rules 1 & 2, nub.
 
@Luis only for 10k users
 
@NikiC but docs are in svn, too so however he does it should work for src shouldnt it?
 
@casperOne sure
@Gordon yeah
 
4:54 PM
Gents, anyone here have any experiences in building a public RESTful API? Would I run into any major pitfalls if I go with PHP?
 
@Charles I thought those are rules 1 and 2 of newsgroups ;)
 
@casperOne go ahead please
 
They're gone. Thanks guys. Appreciate it.
 
i just thought that he also has a src mirror after you said that ;)
 
Laters
 
4:55 PM
Everything looks like a nail when you have a hammer and all that
 
cya
 
@JohnP no you wouldnt, except for not finding any decent framework to support you in the process
 
Well that's one mod left.
 
@casperOne laters
@BoltClock make me one if you feel alone ;)
 
4:56 PM
@Gordon yeah, I haven't seen anything geared toward that. Language wise, it shouldn't make much of an issue I hope?
I just want to get off on the right foot on this project
 
@PeeHaa "link|edit|close (5)|delete|flag"
 
@JohnP there is a couple of frameworks in php claiming they do REST, but they usually dont include anything for adding HATEOAS. they mostly provide CRUD via HTTP.
 
@JohnP No gotchas language-wise... well, except you'd be writing PHP.
 
lol huge gotcha :P
 
WOOOOHOOOOO I FOUND IT!!!! github.com/damz/php-src
 
5:00 PM
@Gordon @Charles If you guys have any resources/bookmarks on API building I'd like to see them. The other Charles has already pointed me toward an interesting video. I'm going to have a look at the twitter API on how it's structured for a bit.
This is a massive blank area for me atm
 
@JohnP last time I checked the Twitter API wasnt a good example
 
@Gordon Just hoping that going with PHP as opposed to some other language isn't going to cripple me later on
 
@JohnP the best resources I can offer is this book: amazon.com/REST-Practice-Hypermedia-Systems-Architecture/dp/…
 
In any case, NodeJS and PHP are the only real options for me
 
@JohnP it wont.
 
5:02 PM
@Gordon nice, it has a Kindle edition. I'll have a look at that. Thanks
 
@JohnP As long as you already hate PHP, you'll be ok.
 
@Charles heh, that's a nice way of putting it :D Well, let's see where this road takes me
 
If you don't hate PHP, you will come to. That may cripple you.
 
hmm
just occurred to me that only two of my top 30 answers are
I have more iOS answers than PHP answers in my top 30
Total score in PHP is more than twice that of iPhone/iOS
Very fishy.
 
@Charles you can safely say my PHP cherry has been popped
so to speak
 
5:06 PM
@JohnP That was not a visualization I needed...
 
^_^
 
In a lighter vein, this is what showed up in my 'recommended' stream when I was watching the API video
 
@PeeHaa its a poor question but not sure it should be closed. the answer seems ok. whats much more bothering is that its the third poor question in a row of that user.
 
Lol. Someone wants to calculate unix timestamp of epoch: stackoverflow.com/questions/9250664/…
:)
 
5:10 PM
@Gordon The answer sucks.
 
...wow
 
How can I describe the memory requirements of a function in terms of big O?
I've been asked for the Asymptotic Run-time which is O(n) and the memory requirements
in terms of O( )
 
@BoltClock ok, well. yes. its link only. but at least the question can be answered
 
@Gordon Well it is easier to just ask here on SO. Otherwise you would have to research all the things you want to know yourself. ;)
 
@PeeHaa yeah :(
 
5:13 PM
Can someone please check my reverse DNS. It doesn't return my domain :'(
46.105.30.3 should resolve to responsible-disclosure.com
 
Should I get the memory used to store the array I'm looping through and then compare it to the overall memory usage?
 
Might be a local cache here though
 
codepad.viper-7.com/5rJWy0 Damn, this is misleading
 
@Donut lol
 
@Donut :D
 
5:15 PM
234 flags... 1:15 am... I'm going to take a nap
 
@PeeHaa it takes me to a site with the title Responsible Disclosure. It just adds https:// in front of the IP
end result - 46.105.30.3/en
 
@JohnP What is the result when you do a:
nslookup 46.105.30.3
?
The last result
 
Server: UnKnown
Address: 192.168.1.1

Name: responsible-disclosure.com
Address: 46.105.30.3
 
@JohnP k great. so it was a local cache issue. Thanks
 
no probs
 
5:24 PM
Posted my prob as a question: stackoverflow.com/questions/9250888/…
 
5:46 PM
1
Q: Why are traits not working?

user1203914I was trying to learn traits: I have used the example from PHP manual. but it does not work why? trait ezcReflectionReturnInfo { function getReturnType() { /*1*/ } function getReturnDescription() { /*2*/ } } class ezcReflectionMethod extends ReflectionMethod { use ezcReflectionReturnInfo; } ...

> but it does not work why?
Obviously a clueless scripter.
 
@BoltClock implies that ;)
 
@NikiC if that is the example from the manual, we should change it
 
it is
 
Honestly the use someTrait; syntax is stupid
 
what does ezc mean?
 
5:54 PM
@NikiC eZ Components. It's in the comments.
 
@NikiC ezComponents
at least, if im not mistaken. they are now Zeta Compontents
 
uh, who put that into the docs?
somebody got a checkout and can blame?
 
@NikiC iirc its from the original proposal
@BoltClock would you mind deleting all but the first comment to stackoverflow.com/questions/9244584/… please. ive flagged the entire convo for being non-constructive but for some reason only some message got deleted
i wouldnt mind if you removed them altogether though, since i disagree with the OP anyway but that is now lost with only some of the comments removed
 
@Gordon purged
 
@BoltClock thank you
 
6:03 PM
I saw the comments on your answer earlier today but weren't sure what to do with them. But since they're halved now, might as well just take it all out
 
@BoltClock i felt the discussion was going nowhere. thats why i flagged them.
 
6:17 PM
Anyone up on there popstate events , ie where you find the change in the event object ?
 
Hi
Again, and thanks for suspending me...
 
hey guys
 
6:55 PM
@NikiC: I'm for removing /e modifier.
It's way worse than Perl version (which is actually useful)...
 
@NikiC wont this be a BC break?
 
Removing register_globals is also kind of BC break...
 
wouldnt it be make more sense to allow disabling /e in php.ini?
although raising E_DEPRECATED and removing in 5.5 sounds like its long enough to adjust your scripts
 
In Perl, /e is not unsafe. But design of it in PHP makes it very unsafe...
I would vote, but I don't know. I don't know if newbies can even vote...
 
7:10 PM
hey, got a php problem: Trying to send an email via smtp through aol and I get this when using the php mail() function: Sender address rejected: not logged in
how do I fix this?
 
7:37 PM
i must clean up my download folder
it is impossible to find anything in it
@JoshMentwizzler , edit your php.ini file , your AOL SMTP server requires username and password
 
yeah, but what do I put in it to make it work
?
I have tried "auth" = true
"username" = (user)
"password" = (password)
and it still says: Sender address rejected: not logged in
what am I doing wrong?
I set the SMTP to aol
port 25
"sendfrom" = myemail
 
Does some of you guys know if PHP 6.0 will ever be released?
 
Long time ago a classmate of mine talked about it being fully made for OOP
 
@Zundrium , you are a troll
how many "fully made for OOP" language do you know ?
 
7:49 PM
@tereško Not a troll sorry man, only one I know of is Java
 
but it isn't
it has primitive types .. for example int
 
@tereško do you ever write procedural code?
 
sure , when i need a script which does something simple
 
@tereško not talking about testing or something, I mean when your making something more than parsing 1 input.
 
i have a background as sysadmin , i write lot of scripts which are procedural in nature
 
00:00 - 20:0020:00 - 00:00

« first day (484 days earlier)      last day (4461 days later) »