« first day (853 days earlier)      last day (4110 days later) » 

4:00 PM
@NullPointer Nice work :)
 
HTML FTW
:P
 
none of those worked
 
@ConnorMiles you doing like... $link = new PDO("
 
@ConnorMiles unset($pdo);
 
4:01 PM
Nayan cat unit testing? lol
@ircmaxell certainly a 'different' approach :P
 
@hakre anyway to check if a connection is still open?
 
@ConnorMiles pdo/mysqli/mysql_* ?
 
@NullPointer pdo
 
there's a joke to be had there but i wont ; )
 
4:05 PM
@hakre eval.in/10070 :P
 
@ircmaxell So simple, yet so cool :)
 
@MarkH good
 
@ConnorMiles bleh
 
@Gordon first line must work, not second :)
 
it runs too fast on my box (I'd like it to step at half frequency), but it's awesome
 
4:07 PM
but the idea is somewhat stupid anyway.
it does not work really well.
 
@MikeMurko what this syntax actually introduces are untraceable magic methods
 
Someone can help me in a matter of pl sql and php?
 
@MikeMurko I don't agree with that
 
Yes, the instance operator (!) ^^ eval.in/10079
 
@hakre the first line does work. it creates a DateTime object
 
4:08 PM
Can anyone help me with PDO?
 
@Gordon no, not the way I meant it: eval.in/10080 <- this is in the first line.
 
@tereško how do you mean?
 
@hakre yeah, that doesnt work
 
no, i am not mean .. not today
 
@hakre you deserve a swift and brutal punishment for that
 
4:09 PM
@tereško lol no, "what do you mean by untraceable magic methods"
 
Can anyone give me a hint, about changing
list($this->_id) = @array_values(mysql_fetch_assoc($data));
to pdo
 
WTF?
 
@MikeMurko what they introduce are another kind of magical method , but in this case they are not tied to a specific searchable name
no real benefit , excessive amount of ways to abuse
 
@tereško it's not a "magic" method because it's not a function that is called and based on it's parameters does affects other parts of the class. a property accessor is very clearly connected to the property
 
@sw0o0sh DAFUQ
 
4:12 PM
If I want to make it so that checking a radio button makes a change in the database would I need to use AJAX? I don't want to have any submit buttons or anything
 
@MikeMurko it is called based on a "comment"
 
@AlexCastro You'd have to use XHR, EventListerner, and some JS logic.
 
@webarto thanks
 
@tereško just so we're both talking the same thing. I'm saying somethign like this: ```public final $Hours {
get { return $this->Seconds / 3600; }
set { $this->Seconds = $value * 3600; }
}```
 
@sw0o0sh what language is that?
 
4:13 PM
sry, don't know how to use code
in chat
 
@MikeMurko ctrl + k
 
ah k thanks
 
Read the room description...
 
that's not the proposal that was made for introducing accessors in php5.5
in this case it only looks like crap
 
@sw0o0sh maybe first fix the code? list($this->_id) = mysql_fetch_row($data);
 
4:14 PM
@tereško and used like this: $object->Hours = 12, or echo $object->Hours
 
how exactly is this not "magic" ?
 
@tereško if you'd just followed the link in my original question it clearly displays the C# property syntax
sorry, how do you define magic
is any language construct magic?
 
you assign a value to a public variable that is not there and objects internal state changes
 
how is it "not there"?
 
4:15 PM
Hours is an actual property
lol
 
@sw0o0sh And after the fix you just read about the PDO alternative in the PHP manual page: php.net/mysql_fetch_row <- see the red box?
 
why have even been wasting time
you would not know a bad idea if you steped in it (as seen from your activity with codeigniter and cakephp)
 
A better property syntax would ease up on the actual class definition side ... keeping getters+setters along with their properties with less clutter than actual get*() and set*() methods. also accessing properties is much cleaner
 
off to the ignore .. i actually need to work
 
4:18 PM
@tereško alright. you can keep using __get()
lol you're such a tool
 
i have loads of functions like this

function select_one_row($query, $link)
{
$result = mysql_query($query, $link) or die(' Query failed: ' . mysql_error($link));
$line = mysql_fetch_array($result, MYSQL_ASSOC);
mysql_free_result($result);
return $line;
}



how would i covert this to PDO?
 
codepad.org/7DI9UDef need help with that. Old one and the new one is how far I've got.
 
@MikeMurko the collected thoughts are available at the internals mailinglist.
 
@gordon link?
 
4:20 PM
@MikeMurko i am sure you can find it without me
 
phew, fun crowd here
 
lol ... since when Phil Sturgeon has become an authority of "good design decisions" ?
 
@MikeMurko yes, lots of people do
 
@MikeMurko sorry. am just busy atm
 
Hello members , i know this isnt JS related , but im in some deep trouble and dont know where else to ask , i have windows xp (sp3)installed in my D drive and xp sp2 in C , i want to remove sp3 drom D , will formating my D remove the OS and do no harm to my system ?
 
4:22 PM
whaaa?
@ircmaxell by that do you mean lots of people here disagree with that syntax?
 
@user1537158 try serverfault or superuser
@MikeMurko not necessarily...
 
iam currently logged as admin , my Q is will formatting the D , remove SP3 and do no harm to my PC ? @ircmaxell
 
@user1537158 this is the wrong channel and site for that sort of question. Try superuser or serverfault. More likely superuser
 
@user1537158 are you aware that we do not care if it is JS related or not. This is PHP chat room! We care that it is not PHP related.
 
alright thanks @ircmaxell :)
 
4:26 PM
Since when has SO chat been infected with help vampires?
 
@user1537158 depends on luck ..
 
@Greg aproximetly since december 2010th
4
 
2010th :)
 
Hello! I've got a quick question about PHP caching of sources, anybody with knowledge about this topic?
 
Can anyone help me with PHP PDO, please?
http://codepad.org/myvYhuQ1
 
4:27 PM
@ircmaxell you voted yes in the RFC. oh were you saying you didn't agree with my magic method slight?
 
Excuse me please you can help me enterprise code for forum wordpress? thank you kind honourable Sir
 
Hi how do I build a forum?
4
 
@MikeMurko you asked if anyone has opinions on the RFC, and I said yes, lots of people do
 
was talking about earlier, nm
 
4:28 PM
I hereby rename to
 
@Daniel what's your specific question?
 
Hi i want to build a social netwrok what framework to use
 
Hi i want to build facebook what should i do ?
 
@webarto facebook
 
@Gordon one vote: ay
 
4:29 PM
@webarto I recommend Smarty
 
@MikeMurko Is there a way to "hook" the renewal of the code cache? I want to detect if a change has been made to a file source automatically. As I understand PHP automatically caches the compiled code.
 
best framework besides wordpress
 
is there wordprees pluggin, pls help its urgent
 
@webarto damn you are supposed to be a vampire ..
 
4:30 PM
@Daniel out of my depth, sry man. are you using apc or wincache?
 
@webarto sorry are you really asking ?
 
lol .. "wincache"
 
Anonymous
If OOP was a person, I would be putting a gun to his head and be saying
" who is polymorphism? "
 
LOL
 
@MikeMurko I'm not utilizing anything yet, I'm in the concept stage. I want to detect if a class has changed properties since the last cache and use this to update table schema in my database
 
4:31 PM
My wife is pregnant. Can PHP help?
4
 
what would require one to actually be stupid enough to host PHP-stack box on a windows
 
is teresko a frequent troll on here, or just occasionally?
 
@MikeMurko regular
 
@MikeMurko There might even be existing solutions for this? I haven't been able to find similar solutions yet
 
Anonymous
@MikeMurko frequent
 
4:32 PM
ok thanks
 
@Daniel , what is the scope of your system
 
@Gordon HAHA
Jul 16 '12 at 18:14, by webarto
@Neal @Bracketworks @NikiC @ircmaxell @MikeB can you help me?
 
@webarto lol
 
are you talking about single-box cache or something for a cluster ?
 
@tereško In what context?
 
4:33 PM
@tereško Okey, will try. Thanks though.
 
Jul 16 '12 at 18:19, by webarto
$res = mysql_query('SELECT * FROM users');
while($row = mysql_fetch_array($res))
{
    $last_user = $row;
}
print_r($last_user);
 
@Gordon "PHP" also stands for "Parents Helping Parents" (it's in the wikipedia, so it must be true)
 
@PHPNooB it allow a single name/operator to be associated with different operations depending upon the type of data passed to it
 
@UZUMAKI Why not try asking again???
 
@tereško I'm talking about simply detecting changes to source code. I want my database schema to be updated automatically by changing objects in code.
 
4:35 PM
 
@webarto ironic Y YO NO ORDER BY ? ...lol
 
@Greg why? I've asked twice and no one answered me
2
 
@Daniel please don't
 
hi guys
 
@tereško +1 :D
 
4:36 PM
@NullPointer I actually ran into code like this, nothing, just trolling :) "not sure if serious"
 
i am using xampp on windows server 2003....how to send mails from my php page
 
@Daniel linux has a file monitoring daemon
 
@tereško No no, I think I'm not able to explain my self :P
 
@webarto just kidding i know that ...:D
 
@webarto i think i could find it in this codebase, if i bothered to write the regexp for the search
 
4:37 PM
@PHPNooB is that tough ?
 
:7744529 If you help more floors instead of sending al mouths was better;)
 
45 secs ago, by Peter Jennings
i am using xampp on windows server 2003....how to send mails from my php page
trollus maximus :D
 
@UZUMAKI To get help here you need a certain level of sarcasm.
 
@tereško Yes, mate, if you gave example I could help :P
 
Anonymous
@NullPointer Thanks for the effort, but I will show you something in private so I won't get laughed at here
 
4:38 PM
NDA
 
@webarto that is really ... hilarious ....
 
2 mins ago, by UZUMAKI
@Greg why? I've asked twice and no one answered me
muahahhhahahaha
 
I think he should ask again.
 
@UZUMAKI ask just 3 more times, I think then someone will understand you.
 
God save you 'merica.
 
4:42 PM
 
Anonymous
@hakre ma man, ma main man
 
Anonymous
sup
 
are you all going crzay cause it's youtube.com/watch?v=kfVsfOSbJY0 ?
 
@hakre I am now.
 
Anonymous
4:46 PM
why God, whyyyyyyyyyy
 
damn ... firefox is killing me
i keep trying to use opera's mouse geastures .. and ofcourse there is no spellchecker
 
@hakre I don't think it's worth deletion this early.
 
I was amazed to see Opera taking up Webkit. Now only Mozilla and IE to go before world peace!
 
take `while($row = mysql_fetch_array($res)) $last_user = $row;` :)
and you need to check the condition if 0 rows are returned.
 
@Greg you mean before no more Web Standards
 
4:51 PM
@hakre omg thank u soooooo much!!11
 
Anonymous
I need to send a bug report to SE, because my reps are stuck in 1,214
 
Quick one guys
Valid HTML - which one comes first? Font color, or a href?
 
@Gordon yes but mostly peace.
 
@PHPNooB Stuck?
 
@Jimbo what? just ... what?
 
4:52 PM
I'm pulling for colour
 
@Jimbo Chicken in kitchen?
 
can someone explain this better that php.net? array(PDO::ATTR_PERSISTENT => true));
 
@ConnorMiles what don't you understand with it?
 
@PHPNooB Doesn't look stuck to me...
 
@tereško FF has a spellchecker
 
4:53 PM
I'm telling a work colleague that it's deprecated, but he still thinks that a comes first
 
Anonymous
It was a joke, and ya'll fell for it :) thanks for the upvote though.
 
<font color="red"><a href=""></a></font> would be correct for HTML4, right? That's what I think...
 
@hakre well i know it like caches the connection but do i add this in every connection, is there anything different i have to do while using this?
 
@PHPNooB What upvote?
You should be thankful I didn't try it with a downvote, and kept it.
 
Anonymous
@MadaraUchiha LOL
 
4:54 PM
@Jimbo the font tag is deprecated in HTML 4.01
 
Anonymous
You got me
 
@Greg Yep, already pointed that out. But in HTML 4.01, was it color or a first?
 
@ConnorMiles Okay, who has told you that you need to use persistent connections?
Because it's highly likely you don't need them.
Based on the questions you ask.
I have no problem to explain it to you how you get that running, but you should really need them.
 
-.-
 
4:56 PM
@jimbo Either way would be correct.
 
HTML4 tells you to **not use** the `<font>` tag.
So it's more like: `<a href="" style="color: red;"></a>` (also not really good HTML but better).
 
<a><b>text</b></a> and <b><a>text</a></b> are both fine
If I understood you correctly....
 
Guys, I know what about deprecated HTML tags - I know valid HTML5. It's a simple question for arguments sake about how it used to be :D
 
wait, are we discussing authoring valid HTML4?
 
No
-.-
 
4:57 PM
@hakre why, isnt it sposed to make your app faster?
 
@jimbo: Greg already gave you the link to the validation service.
That's pretty much who you need to ask.
 
Anonymous
reps are cracks
 
@WesleyMurch Already tried that, but tell you what, forget the question it had no point really anyway
 
@Jimbo Did you run into an issue?
Let's just say they're both wrong and call it a day ;)
 
@Jimbo The <a> tag can not contain <font> tags in HTML 4.01
 
5:00 PM
@WesleyMurch No, a work colleague who is much older than I mentioned how he used to program and then in passing said about font tags and a tags from a long time ago, and I said that to be valid, it'd be font and THEN a
@hakre Thanks! That's all I wanted lol
 
@ConnorMiles No, not specifically. Ironically it often makes it slowlier.
@Jimbo Problems looking that up in the DTD?
 
@hakre ok
 
@ConnorMiles especially when you've got many connections, it can happen that slow means: connection refused from the database server. Then slow = failure.
 
@hakre Is funny you should mention that, I've never actually even looked at the DTD :P
 
@hakre They both validate for me using Transitional DTD
 
hello
 
@hakre Something tells me I should have looked at this when I was a kid
 
Is it actually a valid use case to put a question on stackoverflow to just answer it? I'm pondering the idea to start writing some custom "FAQ" questions myself just to avoid repeating myself :\
 
@Ocramius that depends on who you ask
6
A: Posting and answering questions you have already found the answer to

GordonNote: This answer is also in response to http://blog.stackoverflow.com/2012/05/encyclopedia-stack-exchange and the short exchange I had with @spolsky on Twitter about it (which is too limited as a channel to discuss this topic). I disagree with answering your own questions or using StackOverfl...

 
@Gordon mainly a question of commonly asked questions that probably are on SO and are not targeted correctly (google's stuff) and are asked over and over again. Not saying that I'd accept my own answer btw
 
5:12 PM
@Ocramius no canonical will prevent questions from getting asked over and over again. proof: html parsing, datetime uses, operator meaning.
 
that personally removes a lot of Q&A work on IRC
yeah, I guess that's right
"Human being" was enough as a proof :P
 
@Ocramius yeah :)
its not forbidden though to post self-answered questions. its even endorsed. I just think it sends the wrong signal, breaks the process and hurts the site.
 
hrm hrm... ok :)
 
@Ocramius Personally I think it's a great idea but it's rarely done well.
 
@WesleyMurch I spend way too much time replying the same stuff =)
 
5:24 PM
For example?
I ask because a great answer probably already exists, you can just close as dupe instead.
 
mainly questions about doctrine2 ORM specific use cases of internal APIs
known issues/limitations, etc
@WesleyMurch not yet able to close BTW :)
 
You can flag dupes @Ocramius
 
Well if you decide to post a self-answered, just make sure it conforms to the Q&A format. It should look like a real question but be general enough that it's useful to a wide audience.
And of course, your answer should be really good.
 
@PeeHaa aha! Is there some dwell of features? :P I feel kinda illiterate now about SO
@WesleyMurch that's not a problem :)
 
If your motive is helping people and posting a canonical answer to a common or interesting problem, that's great. If you're just bored thinking of a cool way to gain a little rep then I'd say don't bother.
 
5:29 PM
@WesleyMurch no, I do it solely for D2 FYI
 
@Ocramius Not that I know of. You can scrape all the info spread over all the meta posts ;)
 
@Ocramius announce the dupes in here and we close them
 
good to know @PeeHaa :)
gotcha, thx
 
Right I'm off, I hope you all have a good weekend :)
 
5:34 PM
@Gordon funny you mention that as I'm currently working on the site right now =oP
 
@crypticツ im psychic. its a skill you aquire when answering Qs on SO ;)
2
 
You're psycho? :P
 
@Gordon well apparently you didn't see your wife getting pregnant
 
@Ocramius yes, so you better make sure you write readable code in case I need to maintain it one day
@crypticツ actually she isnt. How could she given than I spent all time with you guys here
 
@Gordon I solved it by not writing code at all
 
5:36 PM
@Ocramius good :) although a bit disappointing
 
See the positive side: I help avoiding entropy growth in the universe
 
@Gordon so it seems PHP is the best contraception
 
delaying its expansion as much as possible
 
@crypticツ out of curiosity, why not just use flickr? or dA? or even picasa?
 
@Gordon sounds cool feature
 
5:39 PM
@Gordon I don't really like using their API and if I used them my site will still end up being neglected.
@Gordon if I get lazy I can just do a directory listing
 
Avoid the Original MySQL Extension Part 1. There is hope! It went all the way to phpnoo … masters!
 
^_^
 
@crypticツ fair enough
 
No, no hope...
 
I know this is a long shot, but has anyone worked with any MLS vendors or APIs? (real estate listings)
If so, ping me. If not - I don't recommend it.
 
5:43 PM
If you are trying to move someone off ext/mysql, please tell tell them to use PDO and not mysqli!
And then...
@nikita_ppv why the hell should someone use plain PDO? use doctrine (or other abstraction) if you need it and mysqli for lightweight tasks
 
@webarto i disagree with both statements
 
@Gordon I'd disagree more with the other one second.
 
mysqlnd anyone? :)
 
@webarto I agree with "if you need it" in any case (PDO, mysqli, ORM)
 
5:46 PM
Good evening folks.
 
@Gordon If you need it and if you are capable of deciding whether you need it
 
Yes, today, tutorials tell you what you need.
 
@NikiC also, by now I think that you shouldn't use any of these directly but adapt them yourself- pick one. adapt it. stick with it.
 
@Gordon PDO can usually be used directly
mysqli obviously can't
 
when I use php GD library is it possible for me to alter the height and width of the font indiually
ie change height alone
or width alone
 
5:48 PM
@NikiC the API of ext/mysqli sucks. that's very true
 
@Gordon This is all I'm saying
The API is the only thing I really care about
 
@NikiC but if you need/want serverside prepared statements that's about your only choice
 
@Gordon same here
 
or async queries
 
@Gordon wtf?
what are serverside prepared statements?
 
5:50 PM
@NikiC real prepared statements
 
is pdo better than mysqli
 
depends on your definition of better
 
@Gordon so?
 
i was told by this smart ass little punk to never use mysqli because its a pain if you ever switch to a new db
 
@NikiC actually. PDO does support them, too. Can be controlled via PDO::ATTR_EMULATE_PREPARES
 
5:53 PM
@Steve how many applications have you worked on where that was a real concern?
 
@Gordon I somehow really can't believe that you didn't know that
 
@ircmaxell thats what i said!
made me so mad
 
We switch DB vendors once or twice a week
 
@Gordon I mean, being in this room and all
 
@NikiC I dont use PDO much
 
5:54 PM
I think @ircmaxell complained about that so many times, that it ain the default ^^
 
@Gordon Not really. It changes the default. But if it runs into a non-preparable query, it'll still do client-side emulation... Which MySQLi will rightfully fail on...
 
@Steve People don't use PDO because they are switching DBs so much, they use it because it's more usable ^^
 
@WesleyMurch cool migration plan :D
 
yeah, like I said, I rarely use PDO. There is usually always something on top of it
 

« first day (853 days earlier)      last day (4110 days later) »