« first day (615 days earlier)      last day (4333 days later) » 

12:09 AM
Word
 
re
looks like there was some larger internet outtake in de
 
12:31 AM
hi! I was wondering whats the difference between the functions "mysqli_select_db" and "mysql_select_db." I know mysql_select_db is depreceated, but what makes them seperate from one another?
 
I've found something named "memsql" while surfing, i'm newbie with these things but maybe someone here wants to read, web site says it is 30x faster then mysql, here is link: memsql.com
 
@NikiC @tereško @Gordon @salathe @rdlowrey I just had an hour conversation with a UX designer regarding prototype.php.net She thinks that killing the mega-menu altogether is a good idea. We'd then create pages that present the information currently in the menus.. What do you guys think about that idea?
 
user895378
@LeviMorrison I'm on board with that ... I've never been crazy about the mega-menu myself.
 
yeah , that menu at top must go
 
12:38 AM
@rdlowrey I'd never use it. I come for releases of PHP, occasionally download it, and mainly use the documentation reference.
 
i would actually put it at the bottom , as a long footer
 
I think, whoever came up with prototype.php.net needs to hit the drawing board again... 'cause can we say eww?
 
user895378
@LeviMorrison same. I never use it.
 
@Justin Well, I have a UI/UX designer helping with it now. Things will get better.
 
@Justin , true
 
12:39 AM
prototype is getting much better
 
Lets hope so -- 'cause right now -- it's pretty much garbage... My roommate who can't even figure out how to turn my laptop on -- could come up with something better afaik..
 
still not quite sold on it yet, and it still has issues, but getting much better
 
@ircmaxell I'm glad someone thinks so.
 
prototype.php.net/manual/en/language.operators.comparison.php <-- for example, those tables make my eyes hurt
literally
 
@ircmaxell They are really bad, aren't they?
 
12:40 AM
I don't know if it's the font, or the background color, or what
but when I look at it, there's some dissonance in my eyes that literally causes them to hurt after a few seconds
 
I think it's the header color which prototype doesn't have -- which includes font color.. and it's not completely white.. There's a little contrast involved on the original site
 
could be...
 
Also, the sidebar (Quick TOC) in the documentation pages will be replaced with a sticky header that has links for editing the page, reporting an issue with it, and changing the language.
 
perhaps it just needs to soften a little bit (drop the contrast slightly
 
That way when you do side-by-side comparison with a code editor you have enough room for the content.
 
12:43 AM
@LeviMorrison I think great strides have been made on the docs side
I still don't care for the home page. Then again, I don't care for the current home page either
 
user895378
For the record, I hate have bitter, deep-seeded ill-will for this menu box:
 
Sweet only an hour left (more or less) on my 13 hour day..
 
user895378
 
not bad
compiling PHP again
./buildconf && ./configure --enable-debug && make -j4 && make test
^^ 30 minutes later...
it also all but locks up the computer for those 30 minutes
 
user895378
@ircmaxell Sounds like dinner time to me :)
 
12:58 AM
yeah
 
user895378
Compiling is how the computer gods let us know it's time to take a break.
 
lol
 
user895378
I had never considered it before, but in terms of the HTTP spec the $_GET superglobal is really badly misnamed. Since query parameters are perfectly valid in the URI regardless of the HTTP method used, $_GET would be much more appropriately called`$_QUERY_PARAMETERS` (or something like that). Accessing $_GET parameters in the context of an HTTP PUT request, for example, makes no sense.
 
user895378
And if you're going to have a $_POST superglobal, it really should've been something like $_ENTITY_BODY_PARAMETERS since the same process can apply for PUT requests and also because the HTTP OPTIONS method supports a request entity body in the same way as POST/PUT
 
user895378
I'm going to have to put together a gist on this topic.
 
1:13 AM
yeah...
especially since the body can be a multi-part string, meaning post variables in one, and files or other content in others
 
There are no parameters in the query, there is only the query string. The query string syntax is not generically defined,
The common syntax results in $_GET
Hence no misnaming. But it's late. cu tomorrow.
 
1:29 AM
@rdlowrey It's going away.
 
eih
 
1:48 AM
hello experts..
 
I hate PDO
with a FUC#*#$% passion
 
lol why is that?
 
why?
the tests don't run by default, so nobody runs them
maybe an issue with my test
hang on a tick
 
2:19 AM
I hate PDO...
1 message moved to bin
=====================================================================
Number of tests :  166               157
Tests skipped   :    9 (  5.4%) --------
Tests warned    :    2 (  1.2%) (  1.3%)
Tests failed    :    6 (  3.6%) (  3.8%)
Expected fail   :    1 (  0.6%) (  0.6%)
Tests passed    :  148 ( 89.2%) ( 94.3%)
---------------------------------------------------------------------
Time taken      :   43 seconds
=====================================================================
that's the correct one
 
 
1 hour later…
3:48 AM
i might be having a similar problem
trying to nest a do while in PDO and not having much success
 
4:43 AM
read all replies :D
 
5:13 AM
hi
 
greetings
@Krish if ($num == null) {$num = 0}
:)
 
anyone using redis?
 
 
1 hour later…
6:33 AM
@LeviMorrison i never liked the mega menu. it always felt like Code Igniter to me. then again, i dont like much about the prototype at all.
 
Sem
Good morning
 
7:12 AM
happy new day everybody.
tip of the day: If you delete your profile in google chrome, the settings are gone. Straight and clean incl. Apps, Extensions and Cookies.
 
Hello everyone
 
Hi, I have been looking at some php code and came across a statement I don't understand, can someone explain this to me please:
p1 ? p2 -> p3 : p4;
 
morning
 
@Stuyvenstein it's a conditional statement which implies : if p1 is true then p2->p3 will happen else p4 will happen.
 
@PeeHaa good morning PeeHaa
 
@AnujJain Ahhh I see, thanx, so it's basically a mini if statement
 
9 hours ago, by PeeHaa
http://stackoverflow.com/questions/6078684/css-overflow-issue (my own question too localized question with link rot)
 
@Stuyvenstein Please specify about which symbol you wonder by it's name: stackoverflow.com/questions/3737139/…
 
@Stuyvenstein mini if-else..
 
@AnujJain Of-course... Lol, thanx
 
7:40 AM
@Stuyvenstein no prob..
 
Hi
can anybody tell how can i get cakephp helpers from internet for download?
 
wow two sites fixed and not yet 10. looks like this day will be kewl.
 
> Fatal error: Call to undefined method mysqli::connect_errno() ....
The code looks like: $db->connect_errno()
According to the PHP docs, that method should exist.
Never mind. Apparently that's a property not a method.
Still the example in the docs are wrong.
 
7:58 AM
hey all
has the google geocoding api become paid?
cos I was getting a { "results" : [], "status" : "REQUEST_DENIED" } from them when I tried
:(
 
8:18 AM
hello fellow slackoverflowers
 
8:36 AM
hello , anyone know how to destroy twitter Oath
i just use
setcookie ('oauth_token', "", time() - 3600);
setcookie ('oauth_token_secret', "", time() - 3600);
but its not working . there is other code ... thanks in adv.
 
could it be that it's httponly cookie or you are trying to delete cookie from other domain, inspect headers and see what it returns...
 
@Sparkx download .. what .. any file or something else
 
@YogeshSaroya Not working is not an error message nor a problem description
 
@PeeHaa i m just log out form my tw a/c and in my web app when i using login with tw . then its logoin .. so how to destroy tw Aouth data
 
"php team leader" from my previous company just discovered this code snippet pokit.org/get/img/810ab2c22cf514ccc8fb467d6f7efa4a.png and decided to share with everyone :)
 
8:44 AM
^ enjoy :)
 
@webarto looks fine, good job.
 
lol he doesn't that {} is for code blocks
 
Sem
@webarto I think it's best to focus on readability rather than making things shorter.
 
^ personally this is more readable (to me at least)
although this IF without ELSE is redundant
 
Sem
@webarto What if I want to add a couple of lines in the foreach?
 
8:54 AM
@Sem You really had to ask that?..
 
Sem
@salathe Of course, it's best to preserve a uniformity in your code to keep it simple. So use the {} everywhere, please.
 
@YogeshSaroya i mean how can i get helpers files
 
@Sparkx you means u want to download helper for something ??? you can search and copy all data now save this on view-> helper folder ...
 
@YogeshSaroya give me the link please.
 
can i make call to oauth2 from my localhost without installing oauth module in local xampp server?

please help
Please help me on oauth2 issue stackoverflow.com/questions/11143745/…
 
9:17 AM
@Sparkx its on local host ....
$Twitter = new EpiTwitter($consumerKey,$consumerSecret);
if(isset($_GET['oauth_token']) || (isset($_COOKIE['oauth_token']) && isset($_COOKIE['oauth_token_secret'])))
{ // user accepted access
if( !isset($_COOKIE['oauth_token']) || !isset($_COOKIE['oauth_token_secret']) )
{
 
morning
This is still not closed/deleted: stackoverflow.com/questions/11123141/…
 
@NikiC neither are these: cvbacklog.gordon-oheim.biz ;)
 
@NikiC i will vote for reopen but will closevote again if the OP doesnt accept an answer within a week
 
@Sem No thanks.
 
j0k
9:31 AM
Interesting topic (off from php btw) banane.com/2012/06/20/…
but related to SO
 
Sem
@salathe Any valid reason why you should make your code harder to understand?
 
@Sem Not a single one.
 
@Gordon I voted, too, but I find the description of the algorithm far from really clear.
I tried to make that more promintent now by changing the questions title slightly and highlight the different parts.
 
Sem
@salathe Just giving my opinion :)
 
@Sem Great.
 
9:42 AM
reopened
 
Paste this address into the browser and I get the required JSON.. but I can't get a proper output when I curl to this address http://maps.googleapis.com/maps/api/geocode/json?address=19 Quaker Ridge Rd. Bethel, CT 06801, USA&sensor=false
 
10:58 AM
curl "http://maps.googleapis.com/maps/api/geocode/json?address=19+Quaker+Ridge+Rd.+Be‌​thel,+CT+06801,+USA&sensor=false" works fine (the query string needed URL encoding)
Look at your browser address bar, see the %20 instead of spaces?
 
@salathe , ain't + and %20 interchangeable in URL ?
 
11:17 AM
@tereško got one already, in a year working with previous team I think I just got dumber...
 
@tereško sure
 
11:32 AM
@salathe But then when I type London or `New York' it works
??
 
Listening to internet radio sometimes makes you discover crazy stuff:
 
$venue_address = "New York"
$url = "http://maps.googleapis.com/maps/api/geocode/json?address=".$venue_address."&sensor=false";
ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
$response = curl_exec($ch);
$httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
print($response);`

This gives an output.
Yes.. What you said is right.. it works when I put the pluses instead of the spaces... I wonder why ???
 
@ShyamK Because an URI should "always' be encoded
3
Q: why do you need to encode urls?

BrianWhy do you need to encode urls? Is there a good reason why you have to change every space in the GET data to %20?

 
11:48 AM
@hakre lol
 
aired by some frisco radio station.
 
Jon
Hey all :)
I am sad to bring to you... the PHP #fail for today: stackoverflow.com/questions/11155553/…
 
12:12 PM
Thanks @salathe
@PeeHaa Thanks for that info
 
yw
 
12:28 PM
my 2 cents ^^
One could argue that according to ASCII the space character might be a control character. To make things safe for transport, you should encode all control characters, including those that are on the borderline, namely ASCII hex 20 / dec 32 / SP / Space. — hakre 15 secs ago
 
12:47 PM
I'm off now for some time, even though the weather is not really good. cu laters
 
later @hakre
 
later @hakre hello everyone else
 
hiya @Paul
How's life?
 
@hakre: no, it's because the Space character is a delimiter in HTTP headers. If you don't encode them, then a URL like foo.com/bar.php?foo=1&bar=something HTTP/1.1 would be bad... Since the header would then become GET /bar.php?foo=1&bar=something HTTP/1.1 HTTP/1.1...
contrast that with
GET /bar.php?foo=1&bar=something+HTTP%2F1.1 HTTP/1.1...
 
@PeeHaa Life is good, I just finished 5k lines of documentation changes moving from Doxygen to phpDocumentor2. How is life for you?
 
12:52 PM
Pretty good. 2 hours till the weekend. After that going to get something to drink with some coworkers
 
That sounds like a good way to start it.
 
@Paul It sure is :)
 
how to get a value from an xml?
I want to convert the xml/ json into an array.
which will be quicker and easier
:D
 
just answer the second question.. 4gt the first one :D
 
1:06 PM
Juts learn to use DOMDOcument...
 
but what about json? it's not part of the DOMDocument is it?
 
json_decode()
 
yes.. that returns an object.. array of objects in my case.. (google geocode api call)
was stuck on converting that too an array..hence I went after the xml way :D
 
Sem
@ircmaxell, if you have time could you explain in example code how you would initialize your object?
 
converted the outer object.. and there presented another one.. humph.. guess I'll go home now.. and work on this from there :)
 
1:10 PM
@ShyamK Uhm, can't you convert it to array simply by passing true as the second arg?
 
@NikiC huh? possible..
Maybe, Haven't looked through the json_decode at php.net in a while.. forgetting things.. Damn.. must be the weed...


I'm too bummed out now.. get back to that when I reach home.
@PeeHaa Thanks again.. I'll go through the DOMDocument
@NikiC Thanks though
 
sure
Anybody know why the heck my border-radius doesn't work as expected. I.e. it only does the border radius at the top left: jsfiddle.net/XvbsM
P.S. the border radius has to be on the ul
 
I was just gonna say that @NikiC
beat me to it
 
lol omfg
 
1:19 PM
I usually use border:1px dotted red; when developing to help with edges and padding and borders etc
 
exactly why i usued do that styling with nasty backgroundcolors all over the place :)
 
I use borders, then you can see how it actually looks without burning out your retinas
 
underlying point is the same, avoiding frustration on things like that ;)
 
Fuck me.
Thanks @NikiC
 
Don't worry @PeeHaa we all have those days where our brain acts like a dog who lost his ball.
 
1:27 PM
@Event_Horizon Must be one of those days :( Next (probably stupid) question: jsfiddle.net/XvbsM/6 where the fuck does that space at the bottom come from?? (help vampire alert :P)
 
I'm not sure why, but display:block usually works to get rid of the image space :)
 
sigh ok that's it. I quit for the day
@NikiC ty btw
Now going to do some heavy internetting the last 1 1/2 hours
:P
 
@PeeHaa Don't worry. I'm having a terribly unproductive day too :/
I spent the last four hours or so reading various blog posts...
 
:-)
Have you watched the clean architecture presentation shared yesterday?
 
Hello
 
1:35 PM
Hi
 
hiya
 
@Sem what object?
 
I'm looking for an up to date documentation on doctrine events. Anyone got that? Because the official doc is lacking some details
 
Sem
@ircmaxell yesterday we talked about overloading constructors, which is mostly used to for initializing an object based on new values or based on stored values. You said that you do that in a different way. And I wonder how :)
 
1:42 PM
@Krish "postLoad

This event is called after an entity is constructed by the EntityManager." No parameter list, no example. I like this ORM.
 
posted on June 22, 2012 by blog.phpdeveloper.org » PHP

Fans of PHPDeveloper.org (@phpdeveloper) or the PHPQuickFix (@phpquickfix) news feeds to keep up with some of the latest things in the PHP community, but looking for something a bit more on the Javascript side are in luck. To compliment the PHPQuickFix site/twitter account, I’ve started up a Javascript-centric feed of hand-picked items I find in my reading that look useful/interesting/are more

 
@PeeHaa nope
 
Hi guys, I studied c in College , and now into PHP, how can I get started with php source ?
 
user895378
@LeviMorrison Hooray for the demise of the floating box of awfulness!
 
@Sem $user = new User; $user->setData($data)
something like that
 
user895378
1:52 PM
Also, hooray for Friday!
 
user895378
 
Hi all ^_^
6
A: Is it always necessary to use "is_array()" before a foreach?

NealWell if you know your code well enough, there should be no reason to have to check if it is an array. Otherwise, if the variable changes type that often I would suggest tweaking your code a bit so it does not do that. Other than that, using that if statement is the way to go.

:-P
meanies haha
Whats up ppl?
 
@rdlowrey : thanks..I had checked it earlier,, didn't understand much TBH
 
Sem
@ircmaxell But isn't giving data to an object part of "constructing" it?
 
1:57 PM
@Krish Also wiki.php.net/internals/references. The top four blogs posts are from @ircmaxell and me
 
Why not promote your blog posts @NikiC @ircmaxell
 
@PeeHaa Just did :P
 
@NikiC : thanks,, didn't even knew the existence of that URL :)
 
@Krish join the club :)
but it's one for the bookmarks :)
 
user895378
@Krish Yeah, their blog posts on C for PHP devs are $$$
 
1:58 PM
@Sem No. It's not.
Constructing is getting it into a stable state. Considering an anonymous state is stable, you don't need the user data at that point
 
@Sem also since the constructor doesn't deal very well with errors and stuff, I like to get that one out of the way asap
 

« first day (615 days earlier)      last day (4333 days later) »