« first day (926 days earlier)      last day (4247 days later) » 

17:00
@PHPfan Did somebody already told you the lynda isn't really the best resource if you are learning PHP?
user895378
@NikiC Any action on your AST RFC or is that essentially hanging out in NeverNeverLand as wishful thinking?
user895378
@PeeHaa埽 jo
no action
me too lazy
or too busy
depends on interpretation :P
Anonymous
@PeeHaa埽 I am noob, so lynda won't do me no harm :)
17:01
@NikiC yes
user895378
Well, like you mention in the RFC, that would be a lot of work ...
Anonymous
I just need the attribute in PDO, which saves the page from crating a new connection, every a page time it loads/refreshes. I think there is a function, that passes the connection from page to page... i'm lost
@PHPfan What's wrong with opening a new connection each time the page is opened?
a lot of work, given that it may not even be accepted
/me wants to propose moving to rpython for the engine... :-P
Can we move to JS as an implementation engine please?
17:04
my plan of becoming a troll is succeeding really slowly but succeeding
/me shoots @LeviMorrison
Anonymous
@MadaraUchiha I am just trying to save some time, My page has loads of new PDO(...) and I just need to load everything faster
@PHPfan Have you considered creating the connection once per request?
BTW that lynda sample is really really crap
17:06
@PHPfan do you you mean a persistent connection?
@Baba Interesting project!
Anonymous
@Gordon Yes.
@PeeHaa埽 hehehe
Anonymous
@PeeHaa埽 yes
@PeeHaa埽 Self defense, I'll allow it
17:09
:D
"functions.php" -> "shitty_hacks.php". Big respect WordPress.
Anonymous
@Gordon YEP, that is what I was looking for
@ircmaxell is it github.com/WordPress/WordPress/blob/master/wp-includes/… ? I could faint twice on it ._.
lol
> // if it isn't a string, it isn't a serialized string
17:13
@PHPfan you don't need to care about that.
@Baba very useful
@Ocramius I think you have found that infamous PHP hammer everybody kept talking about
That and that drupal thing I saw a week or so ago
Have you guys heard of 1st of May, international workers day? :)
@webarto Queensday FTW!
@Gordon yeah .. it would be nice to try it out
17:15
@PeeHaa埽 I'm still laughing at github.com/WordPress/WordPress/commit/…
(or crying, but it depends on the mood)
@PeeHaa埽 ERMAGHERD, that day has so much holidays.
@Ocramius Only twice? you're getting better!
@PeeHaa埽 which...?
Once, I haven't worked on 1st of May, when I got back home, I had dozen of emails, only to find that workers day in US and A is celebrated on 3rd of September.
@PeeHaa埽: if you want to contribute, change tabs to spaces. Not spaces to tabs... github.com/ircmaxell/password_compat/pull/25/files
:-D
@ircmaxell hey hey I 100% agreed. It's just that the entire thing was tabbed :|
:P
Uby
Uby
17:19
@webarto lol
@ircmaxell 1 moment let me get it
> Class structure in PHP is very similar to other languages, whilst you shouldn't feel bad about not liking them (because its possible to get away with not using them) you will find it hard to progress as a developer without coming to the conclusion that classes are the future/past/present of any language really reddit.com/r/PHP/comments/1dcgwz/…
@ircmaxell ow lulz. It was from january and you were the one who posted it :P
Jan 31 at 16:46, by ircmaxell
https://github.com/blackice2999/drupal-devel/blob/master/krumo/class.krumo.php
Time flies :P
wait
that's not it
codinghorror.com/.a/6a0120a85dcdae970b017742d249d5970d-800wi Phunder Dome! Two devs enter, One dev leaves!
17:26
Wow searching in chat is very painful
yes, yes it is
user895378
very painful.
you payn you ruse
@ircmaxell lol. Yeah better recover from that
17:31
I just found out that the app I am migrating is not using any output sanitizing whatsoever
I need one more upvote today
days represented 977
rep cap was reached via rep from upvotes *only* on 39 days
earned at least 200 reputation on 49 days
earned 0 reputation from suggested edits
gratz ;)
Ok, one more day of hitting rep-cap :-D
thanks!
@Gordon Yay! Don't you love that?
@LeviMorrison the more I look at it, the more I am fascinated that no one exploited it
I'll put this on top of every page now:
array_walk_recursive($qData, function(&$val) {
    $val = htmlentities($val, ENT_COMPAT, 'utf-8', false);
});
17:35
better than nothing, but still eiw
and replace htmlentities with htmlspecialchars
@ircmaxell I always confuse the two. which one is the better one and why?
array_walk_recursive(get_defined_vars(), function(&$val) {
    $val = htmlentities($val, ENT_COMPAT, 'utf-8', false);
});
:D
@Gordon htmlentities is the one that makes your documents heavy like crap ;)
@webarto not all of them are arrays though
Yeah, just kidding.
HTML special chars, because it only replaces what really needs to be replaced.
Chars used for HTML tags.
17:39
right. thanks.
If it's internal app, I wouldn't bother (unless you are told to do so).
@webarto its not.
@Gordon Link? :]
Give us a link so we can play a bit :P
no :)
17:40
dam
@webarto exactly
1:36:28 PM tables: how do i change my string to all lowercase?
1:36:33 PM tables: $string
1:37:48 PM spikku: duckduckgo.com/?q=php+lowercase
1:37:48 PM introspectr3: tolower()
1:37:49 PM scriptraptor: $string = strtolower($string);
1:38:32 PM raymond: spikku: I think lmgtfy.com would be more appropriate. 
1:38:45 PM spikku: raymond: Yeah I forgot the URL for that lol
1:41:04 PM ircmaxell: *sighs*
$string|' '
dont use uppercase CONSTANTs. Fight Capitalism!
back <beer> new avatar
@Baba how 'bout now?
@kaᵠ hehe ... not bad
user895378
@Gordon Why do we hate caps CONSTANTS again?
17:47
use fUnKyCaSe / bADcASE / StrAngECasE
@rdlowrey because they promote Capitalism when they are written in capitals, which includes writing in cities that meet that criteria.
CONSTANTS_ARE_COOL
OH From @go_oh "dont use uppercase CONSTANTs. Fight Capitalism!"
:-D
@ircmaxell :D
@ircmaxell you might want to add "dont use the global keyword. Fight Globalization"
user895378
Support the NY Rangers. Don't use capitalized CONSTANTs.
user895378
17:49
</badHockeyPlayoffJokes>
Let's open RFC to change $ to ☭.
@Gordon I like that one slightly less
@rdlowrey Oh hell no you didn't just use the rangers in a positive light. Thems be fighting words...
☭foo = 'bar';
user895378
lol
@ircmaxell it's the truer one of the two though :) I dont mind uppercase constants actually. I mind constants in general
17:50
@Gordon I know...
user895378
@ircmaxell meh, Chicago's going to smoke everyone anyway
Go Red Bulls.
@rdlowrey Sure... Let's see how that works out for them
@webarto yes 1st of May is a holiday in all (post)[communist | socialist] countries
My money's on Pittsburg. as much as it pains me to say so
17:54
0
Q: How to create an array ordered by an alternated priority using php?

Rafael WilliansI've got an array with almost 50K+ sub_arrays. Put all of that in order by priority wasn't the problem, so I've managed to make it look like this: $SendQueue = array( array('3', '+553400000001', 'My text messege here'), array('3', '+553400000002', 'My text messege here'), array('3', ...

^^^^ can usort really work here
&#x270A;
18:11
@ircmaxell @go_oh Gordon rocks :D
Anonymous
Does anyone know why echo var_dump($_SERVER['QUERY_STRING']); on a file.php outputs string '' (length=0) I mean, if length is zero? then where does the string come from?
@PHPfan what do you mean? it's an empty string. The type is string, the length of the string is 0.
it has a length because it is of type string
Anonymous
@igorw But if it is 0, then shouldn't it be NULL
@PHPfan No. No. no.
Anonymous
y y y
18:26
@PHPfan no. an empty string is not the same as null. they are distinct types.
@PHPfan lol. null means unassigned, or assigned to no value which is null...
(quite paradoxical but it works) XD
@PHPfan from the webserver.
> Null References: The Billion Dollar Mistake
Nowadays you have to see how microsoft code bends it mouth extremely to say null pointer assignment.
Anonymous
18:29
Let me get it this way, if I am checking $_SERVER['QUERY_STRING'] from index.php for query string, then it can only start after the letter p which in this case, would evaluate to nothing, because nothing exists after that. so, I don't get that reference for string is comming from
The object requested is not found on the bla bla bla...
Anonymous
@hakre You think this is from a server mistake
mistake? No not at all. It's just from the webserver interface because it *works properly*. That is clearly the opposite of what is normally understood by the term *mistake*.
So you ask where it comes from, I tell you exactly where it comes from and all you can do is say *mistake*?
Anonymous
wait... I did not read that removed part.
@PHPfan those are the 'rules' if you will, the defined boundaries, the way it works, 42
Anonymous
18:31
what was in it :)
@PHPfan you did. I put it into the part that still exists (see the history of it)
Anonymous
hmmm I remain a bit confused. this was the post, that brought the question to my mind btw
@PHPfan If you want to learn where that server variable originates from, take a look into the CGI specs: rfc3875 - tools.ietf.org/html/rfc3875#section-4.1.7
so much WAT in that question
What stands WAT for? Weird Absolute Tukkibukki?
Anonymous
18:36
I second that ^
@igorw ah, that WAT. yeeeeeeh.
But that user is asking stupid questions anyway for this website. Please flag all his question for moderator attention. I suggest the VLQ reason.
@PHPfan the code in your answer can be simplified to this
good evening
Anonymous
18:46
@igorw thanks. Nice catch
user895378
Everyone keeps talking to himself. Not sure why, but it's been happening all day.
I should stop talking to myself
@Ocramius yes, do this instead
I should have expected it. Damn, I am talking to myself again...
user895378
18:55
@igorw lol so much rofl
Hi people
@Ocramius Billy Idol is seriously cool
@Gordon oh, nothing to say about that =D
I need help please my javascript evenif i cancel it still proceeds to Delete
<script type="text/javascript">
            function deleteRecord()
            {
                if (confirm("Do you wanto delete the player?")) {
                    alert("player Deleted");
                }
                else {
                    alert("Record not deleted");
                }
            }
        </script>
@Ocramius the VH-1 Storytellers is great. He is making so much fun of himself in that
19:04
@humphrey you are sure you posted this in the right room? I mean yesterday or the day before yesterday we had someone who wanted to learn Java in the PHP room, now you come with Javascript. I wonder if that happens by accident ^^
@Hakre Not by accident am desperate
urgent? :)
user895378
need kodz pls hlp urgent!!!11
@humphrey fyi, I don't see anything wrong with that particular piece of code.
@HamZaDzCyberDeV We are on strike! Didn't you get it!?
@bwoebi No, I wasn't here for the whole day :(
@HamZaDzCyberDeV It's starred and shown on the right, first entry.
21 hours ago, by cryptic ツ
The Daily @cryptic: BREAKING NEWS goes on strike, demands more votes! Bad questions getting out of control. SO declares state of emergency.
ah but why ?
Because in the last days some people thought they had to flood this chat with cv-pls spam
19:27
Is it possible to change the headers on the mail function, well when i send a email, it shows my username of my hosting account, just wondering if this is possible ill post a image now
actually, the system is flawed, the cv-que has ~50k questions
@kaᵠ do you know any good ERP system in PHP
@bwoebi the reason is that we are tired of seeing so many stupid questions being asked again everyday...casting close-votes seem useless...
6
@Baba nope, you have one in mind?
19:30
@Jocelyn Both, I thought...?
Still Looking
@kaᵠ we should ask to have 500 reviews/day...
Can anyone help?
@bwoebi posting cv-pls links is encouraged, there are many starred comments about the cv-backlog on the right of the chat window
@bwoebi that is REALLY bad idea , especially since there is a gold badge of 1000 reviews
19:31
@bwoebi i still think this is a XY problem, fast fix would be to allow more cv-s to people, but it's not the best sollution
need to find a way to stop/teach new users
@tereško I mean, only for cleaning up once the review queue
@tereško Woah, badges are SO important...
I'm on strike too, and not just for today. I'll use my time breeding unicorns and ponies instead of trying to clean the mess with questions.
people tend to collect them (badges)
also , who would you trust with 500 review grant? And from those trusted people, how many would have tome to spend 4 hours reviewing questions?
but @Jocelyn if YOU keep on striking the que will go up to 100k in a matter of weeks !!!!!
50 is enough anyway, you need to chill after some time, it's not like you're payd/review or /hour
@kaᵠ the official cv-queue has grown bigger since I started casting close-votes :-(
19:34
@Jocelyn now imagine it grow without you...
you're like the most active cv-er
and not 'like' you are (there should be a badge for that :P)
@kaᵠ That's right. I'm not sure having more daily close votes is the best option. What I am sure of is that there are way too many duplicates and low-quality questions in
@Jocelyn what about reviewing instead of casting new votes only?
need to announce the cv's anyway
@bwoebi it takes too much time for so few good results
@Jocelyn right, better just flag the questions, moderators can better deal with users asking silly questions than we can.
19:38
@Jocelyn Just say that reviewing doesn't make fun. When you cast a cv, this is going fast as you only do it after having read the post; when you review you first have to read the post...
However I'll be interested to get more daily up/down votes. I can easily spend all of them very quickly everyday
@hakre any opensource erp you can recommend ?
guys I had an idea, creating a spider with PHP, using cURL with cookie jar, and maybe using the stackoverflow API to get all -really- downvoted questions.
The idea is searching for questions that have already 3 or 4 close votes, when it's found, we just have to save it in a file and maybe even setting it online to accelerate the process.
Has anyone tried cvbotnet.herokuapp.com ?
(this is a plug-in for Chrome browser)
19:41
whoa
:O
does it pay in bitcoins?
sounds awesome, but kinda skews any accountability.
@Jocelyn make it available for ff... nightly at least...
@HamZaDzCyberDeV data.stackexchange.com
@bwoebi it was programmed by another user
19:42
@Baba no, none personally. This might be list that helps you: en.wikipedia.org/wiki/List_of_ERP_software_packages
@hakre see that ERPNEXT looks good but its python ... not my strength ... al lthe PHP ones are ugly
Btw cv-pls.com is up, right now just mirroring the cv-pls addon, but changes will be made over the next few weeks. Open to ideas/suggestions.
damn FF, i see the cache
@hakre the perl ones look like cartoon characters
@kaᵠ Yeah but it doesn't display n- Closevote
19:46
@HamZaDzCyberDeV it's a start, you can download csv
@crypticツ i see 'Welcome! This domain was recently registered at namecheap.com. The domain owner may currently be creating a great site for this domain. Please check back later!'
@kaᵠ wow, the DNS has not updated for you yet, it's been up for me since last night
Are you using Chrome?
it caches the DNS if I recall
FireBlocks
@Baba Yes there is not much PHP in ERP. But you should not be afraid of a second language.
19:49
@crypticツ it needs more unicorns and more jQuery :-p
@hakre am not .... looking at time of proficiency .. 1 month or 2 wasted
@Jocelyn it will support IE5, use nothing but jQuery, full CodeIgniter, only use mysql_*() =oP
@crypticツ Great! I can't wait to see it then! (don't forget to add a huge "marquee" tag on top)
@crypticツ These hosts all should install some mod_proxy there, so that the user won't notice anything at the first dns change...
@crypticツ don't forget to use globals and parse HTML with RegEx
19:53
@kaᵠ and use goto instead of while and functions
@crypticツ dunno if you did, but put one of the big signs cv-pls on strike
@kaᵠ and also add use_sql_injection=true to the config file
:)
don't ident code at all, and if you do, use tabs :P
or eval($_GET['page']);
19:54
@kaᵠ but with eregi
perfect !
?
/me eating tasty mushrooms + cheese yumyum
I'm going to use Dreamweaver too, and upload all the files into a single directory chmod to 777
hope nobody is reading this
today, i decided that work doesnt pay me enough for what i do, so i wrote a small CLI php script that lists each directory in the vhost directory (over 6000 dirs), and a progress bar displays 0 - 100% 3 times with three difference explainations next to it which describes what its doing, each dir takes 3 - 5 seconds depending on a rand usleep, and i ran it via ssh and just started reading up on various new things i havnt done anything with before. when ever i was questioned...
just showed the ssh window "running a huge security and vulnrability scan on the server", and i was left to do what i was doing
@crypticツ Wrong. Not all the files. Put the whole code into one file with images inline as base64.
2
19:59
@crypticツ any other way i can access the page (live)?
@bizzehdee awesome xD
wow, the breaking news has 18*, much more than anything for some while
@kaᵠ nope =o( the IP is shared by some other domains I host so cant access it that way or by directory.
np.. i'll just wait max 50h
@HamZaDzCyberDeV: tomorrow, i change what the "scans" are called. and run it again :D
20:02
add some colors to it xD
@bizzehdee does the script help you?
@kaᵠ 24hrs should suffice I did it about 12hrs ago.
no colors, distracting
i think it is 72h max propagation time
@kaᵠ: it does absolutely fuck all except for show pretty information and moving spinners on screen so what when management come round, it looks like im doing something when im actually doing fuck all
@kaᵠ download lynx and browse to it. Should work.
20:03
you mean run lynx :D
(after having cleared your dns cache)
@kaᵠ both^^
@kaᵠ what DNS servers do you use? I use Google's
provider's dns
who pinned the strike news ticker? O_o
i used cisco's for a while
an owner :)
20:05
@kaᵠ eeeew
@crypticツ ew? y?
@kaᵠ Cisco, bad company
yeah.. bad, half the world runs on them...
my d-link router is such a piece of crap. :-( you had one job...
eweek.com/c/a/Security/… I lost faith in them when they did this. They got put on my blacklist.
20:08
@igorw why? what dlink model?
Use a fritzbox and be quiet :o
DIR-855
@bwoebi my next one will be a fritzbox. definitely.
@hakre nice ... but their search system is crap
i searched for erp and CentOS was listed
FreeBSD
and some ugly names
20:12
search is usually crap everywhere, look at SE, if it were good, no big cv-que...
@kaᵠ this is worse
lol
@hakre thanks
It reminds me of those day where the best graphics on web is animated gif
@Baba you can't believe how fine that is compared to what people still use (DOS+FOXpro) !!
@kaᵠ not am having headache
The PHP best have seen so far is github.com/Dolibarr/dolibarr
are you telling me python developers have more sense of graphics than PHP developers
Or let me call it sense of good UI & UX
20:19
@Baba and to be fair, i kinda like it, KISS, you don't need fancy for accounting (imo) you need it to do stuff correctly
and php devs don't have to do it all, if projkect is OS, a webdesign guy should pop in
@kaᵠ not fancy .. User Experience
in this present age .. without UI your application is Crap
UX is important, that doesn't mean fancy (most of the time)
yeah
It does not have to
still ugly but functional and complex
functionality was always 20% and design 80%, but if the func. was flawed, design is worth nothing...
@kaᵠ tell me if this is complex demo.erpnext.com/login.html
Simple and easy
you don't need the manual to know what to do next
20:23
another ncie one
nice
Compare both Manufacturing
Click on Manufacturing on both application
one you are lost
the other you know exactly what to do
that is UX
i'm kinda lost in dolibarr
lol
I told you it was complex yet the most functional
i have applications like that
simple , easy yet functional and productive
Can you see the difference between the 3 the 2 PHP version fail as far as my review goes
If erpnext was in PHP if i work on it for 1 month .. even erpnext would exchange their official version for mine
It has poor access control
but at least the customer can get started within a day or 2
@Gordon how do I find a list of mods for codereview.stackexchange.com ?
/elections maybe @crypticツ
20:30
It's under Users > Moderators
or that
ah ok thanks @MadaraUchiha
@MadaraUchiha what SE site is appropriate for asking questions like "What programming language would be best for 'this problem' and why?"
@crypticツ sepp2k, Winston Ewert, codesparkle
@kaᵠ None that I know of. Try chat with some multipurpose experts.
@Gordon ... You're telling me this?
20:33
codereview/codegolf ?
@kaᵠ same way @MadaraUchiha explained for any site
@kaᵠ None. Everyone will have a different answer to this kind of very open-ended question
exaclty, it's NC here, but programmers.SE ?
can't believe it
is there a place where it 'might' fit, modified somehow?
I don't think it would
@kaᵠ To prevent your question from being flagged and possibly removed, avoid asking subjective questions where …every answer is equally valid: “What’s your favorite ______?” ( stackoverflow.com/faq#dontask )
As long as the question will be like "What is the best ____ to do ___ ?", every use will have a different and subjective opinion
20:43
most likely...
thankx guys
We want to run a fun HTML/CSS contest. We provide the HTML to use and the people participating use that HTML in conjunction with CSS and maybe native JS to make the best page they can. Entries will be scored on beauty (main) , accessibility, browser compatibility, etc. The top 10 upvoted answers based on beauty will be judged by the HTML/CSS room for the other categories. Anyone can add additional bounty to question as prize. We just don't know where if anywhere such a thing would fit on SE.
Might have to run it off-site but then no way of giving prize =oP
20:59
Let's make it compatible with Phoenix 0.1 and IE3

« first day (926 days earlier)      last day (4247 days later) »