« first day (951 days earlier)      last day (4222 days later) » 

00:01
fb clone [closed]
@rdlowrey nice. I need to go to bed now, will ping you tomorrow. and I will do it with libevent because it's more cool.
user895378
@hakre Still no rush. Whenever you have a chance is fine :)
nah, I'm over time :)
00:21
Hmmm I'm create a todo list application using OOPHP and PDO to connect to a MySQL database. I'm having a severe duplication issue. When I go to update or remove a task and there is an exact duplicate of it in my list then it updates or removes both from the database?... The WHERE clause is being satisfied in both statements are being satisfied to match all. Anyway around this?
Anonymous
00:40
today's weirdest question
Anonymous
-1
Q: SEO - Unreachable pages

Sandara KwonI'm trying to make a personal web analyzer site using PHP.. I bought a script to get other seo data... Now I want to have the "Unreachable Pages" evaluation like the one shown at the bottom of this page http://free-website-analysis.net/website-analysis/website-analysis-seo-free/... The problem is...

LIMIT 1
but also you need to have an identifier column per each row, a so called primary key.
each row must be uniquely identifyable in a table for a proper relational database system
I hope this gives you some pointers, over and out & good night!
@W3Geek ^ check what hakre said
Yes sir, I will do it right now — php NoOb 25 mins ago
lol
xD
I was coding a solution and then thought No xD
Anonymous
00:48
Actually, the answer is wrong, I am modified it.
@Happyninja did you check the vid ?
@sectus NOOOOOOOOOOOOOOOOOO
@Jack What's the css trick :o ?
text-overflow: ellipses I believe. @HamZaDzCyberDeV
@Jack awesome, I'll check it out
01:07
@php_nub_qq re-enter the chatroom you should be able to chat
also please change that picture
01:37
How to stack DIC?
01:50
Can i use service locator for it?
Anonymous
who is php_nub_qq @HamZaDzCyberDeV
02:04
@sectus "stack DIC"? What does that mean?
02:21
I have one Di container.
I need another one.
... i am still thinking about...
Why would you need 2 DIC?
@cspray , i want to avoid god DIC
and to separate domains
But if you provide some mechanism to "stack" both of them together and, from my interpretation, you can use them from the same place you still effectively have a "god DIC"
02:39
hello
i'm a miserable iOS developer
i've been asked to send a JSON file to a server
and then have the server store that file
i know how to send it
but i dont know how to program the server so that it can receive and store it
...
tried googling
@Eric , what do you know about PHP?
don't know where to start
@sec
@sectus basics
@Eric , Why do you need send file instead of it contents directly in POST?
@sectus i need to send a JSON file
a whole JSON file
to a server
@Eric , why you cannot send just JSON?
@Eric , about file uploading you can read there: Handling file uploads
02:49
thanks @sectus
@Mr.Alien grrr ... 20k rep limit sucks
04:19
if i have a prepared statement like $stmt = $mysqli->prepare("SELECT id FROM books");
then do i need to write the bind_param() there is nothing to bind though
@blackbee nahh
04:47
bye
@blackbee bby
@blackbee , do not bind anything
: )
@NullPoiиteя Muhahahahaha
The Perl girl is in the room
yiz
yiz
05:04
<-?
I am a C++ lady
@yiz i am a PHP boy :P
LOL : [For Gordon , Nickc, Hakre ](9gag.com/gag/aBRqZ4x)
yiz
yiz
Okay now, how do I parse Json passed in from PHP command line?
I saw a similar question here: stackoverflow.com/questions/5938804/…
Good morning! :)
05:20
gd mrng :)
@Duikboot Don't tell me you are stuck for something today...
No..
Im just looking for a good book to traing my sql skills. What do you think of this one?
http://www.amazon.com/SQL-Antipatterns-Programming-Pragmatic-Programmers/dp/1934356557/ref=sr_1_22?ie=UTF8&qid=1369372854&sr=8-22&keywords=sql
@Duikboot That's a book which you should refer when you are already good with databases :)
Oh, ok :) Im looking for a OOP PHP book and a SQL book.
For example this one I found
I would like to write more 'clean' code too, and have more structure in my applications.
So I maybe should read the 'clean code book too'.
@Duikboot There are many OOP tutorials online, also I suggested you complete ref book, download it, if you like it than buy
yiz
yiz
05:43
yes yes yes yes yes ... seems to be able to finally parsing Json from command line now
05:53
@Duikboot yes, Clean Code by Robert Martin is an essential one. It's quite eye opening.
@NullPoiиteя LUSTIG!!!
@yiz out of curiosity, what's yiz supposed to mean?
@Gordon Do you ever understand meaning of chinese names? :?
yiz
yiz
@Gordon abbreviation of my name
06:05
@yiz No offense but do chinese names have meanings
Or they are just names?
@yiz ah, ok. Hmm, damn. Why can't you be Ziyiz?
yiz
yiz
@Mr.Alien yes, the chinese character Yi in Chinese contains my mother's surname. It means (life is) beautiful
@Gordon there are almost 325349854398 combination of y i & z you failed to mention there :p
@yiz Pretty short word for a big meaning :)
@yiz yeah, but I am referring to that particular one. The other possible combinations I dont care for. I didnt have a crush on them 13 years ago :)
yiz
yiz
06:14
45 yo 200kg remember :p
I need to get my car insurance and dental bill sorted with my health insurer ...bbl
06:26
Allricht I buy the Clean code one. But now Im looking for a good OOP one too :)
@Duikboot IMO you are a better off buying books about software engineering than about PHP. its much more valuable to try to understand OOP on a language agnostic level than on a PHP level
@Duikboot Have you learnt C++
I never learned C++.
Currently I am working as a front-end developer but I would like to digg deeper into PHP.
@Duikboot Do you know procedural php?
I have installed a pear package called Horde/Diff
now when I to use to it gives me include error
this is my include_path = ".;c:\php\includes;c:\wamp\bin\php\php5.3.13\pear"
any idea
what i am doing worng
Morning Folks!
I have a table with some fields, I want the primary key of the record while inserting into the table
$sql1 = "insert into users VALUES (null,'$username', '$firstname', '$lastname', '$emailid', '$phone', '$address', '$password','$role')";
i want to get the primary key while inserting records, how can i get that?
here is how i created table-
$sql="create table if not exists users (id INT NOT NULL AUTO_INCREMENT, PRIMARY KEY(id), username VARCHAR(20), firstname VARCHAR(20), lastname VARCHAR(20), emailid VARCHAR(20), phone VARCHAR(20), address VARCHAR(20), password VARCHAR(20) NOT NULL, role VARCHAR(20) NOT NULL)";
@rdlowrey A nap? What are you?!?! PUSSY!
monring yo all
morning @PeeHaa埽
anybody know any good keyloger ?
@PeeHaa埽 morning
Is there a way to fetch non-associative array in PDO? I am trying to use basic PDO::fetch(), but it returns associative.
07:23
@NullPoiиteя Steel Key Logger ;)
1
Q: DataTable - TableTools integration with Charisma Theme

UreshI am Uresh. I have try to integrate DataTable - TableTools in a listing page of tables page http://usman.it/free-responsive-admin-template/. I want to put an export buttons pluggin in the Charisma listing page.I tried with a simple page in .php ext. and it works. But when i tried with Charisma th...

hi!
any one have idea about this issue?
morning!
andbody know how to make custom themes in wordpress
Does a tag like this make any sense? It's too broad for my taste.
Morning btw.
07:40
@udaysagar you have an auto incremented primary key, you do not need to specify it, write query like INSERT INTO users (username, firstname, lastname, emailid, phone, address, password, role) VALUES ('$username', '$firstname', '$lastname', '$emailid', '$phone', '$address', '$password', '$role')
@DanielsPitkevičs try ::fetch(PDO::FETCH_NUM)
user652649
@DaveRandom lol, yes it was... i removed it :( i don't want to offend anyone
user652649
morning
08:02
Yoyo people
How are you all today
but @JoeWatkins I get some error that the fileds doesnt match....So i have given null.
by the way, how can i grab the primary key?
I used
  $id_query = "SELECT LAST_INSERT_ID()";
  return mysql_query($id_query);
It returned
Resource id #4
instead of just 4
Resource #4 and your expected value of "4" are totally different things. It's just a co-incidence that both values match in your case
$id_query = "SELECT LAST_INSERT_ID() AS lastid";
$query = mysql_query($id_query);
if (mysql_num_rows($query) == 1) {
$query = mysql_fetch_assoc($query);
return $query['lastid'];
}
08:08
yes
its coincidence @asprin
i just added on more and thats still Resource #4
:-)
Something like that
ok, i try..
However i'd advice not to use mysql_* methods. But I'm sure you have heard that before
yes, actually i am not yet into real time work, working on basic tasks, i know generally ppl use pdo..
08:13
good mornings
@udaysagar That is the more the reason to shift to pdo or mysqli as later it would become difficult for u to make the switch. Since you're in a learning phase, it's best to do it not itself
@asprin I totally agree.
aha, okay @asprin
If you are learning anyway you might as well learn it correctly from the start.
Is there a way to remove the 'server' when you send mails with the php mail function?
Everything works fine but the sender is something like [email protected] VIA [email protected]
I don't want to see the [email protected] part in my mails. :/
08:17
You can specify the sender yourself with FROM: [email protected] as fourth parameter of mail().
Be careful with that, however...it can easily happen that your mail gets marked as spam if you use a non-existing address or do something else wrong.
I just hate when someone down votes for no good reason
Well I've created a '[email protected] doens't that help?
And its up to the server setup whether it shows the true sender or not.
$headers = 'From: [email protected]' . "\r\n" .
Am I using currently but It always shows the 'via' ... [email protected] too :/
Wich I don't want to see so I can't block that?
@TillHelge So the server decides to show it or not?
i don't want to work
08:22
Go to sleep.
@tereško Any plans for becoming a priest?
@Duikboot I need the full mail headers to truly answer that.
@tereško Me either, but have customers coming in within the hour.
Might just be your mail client that shows this.
08:26
I meant the resulting mail you recieved.
Not the code you use to send the mail.
Exactly.
What client do you use to read mails?
I checked on : Gmail, Outlook 2010, Mail mac,
Well...it looks like the server is set up to send mails as [email protected].
So if you want to avoid that I guess the only solution would be to send mails via SMTP and not use mail().
posted on May 23, 2013

The PHP development team announces the availability of the second release candidate of PHP 5.5. This release fixes some bugs against RC1 and improves overall stability. THIS IS A DEVELOPMENT PREVIEW - DO NOT USE IT IN PRODUCTION! You can find an incomplete changelog of PHP 5.5.0RC2 here : Fixed a bug related to segfault on memory exhaust

08:33
It's too late to change that now.
Sending mails is quite the science. There are loads of things you can do wrong, which will result in your mails not reaching the recipient or even your IP getting blacklisted.
Yeah it's a dark-side of the web :p mails
Thanks for your help
@tillHelge You ever read PHP or coding books?
Sure. But never for PHP.
I never worked with PHP professionally.
user2416523
hi
user2416523
-1
Q: Datatables-TableTools Export

UreshI downloaded the new version(DataTables v1.9.4).(https://www.datatables.net/download/) On page Load it gives popup message like.below Warning: TableTools 2 requires DataTables 1.9.0 or newer - www.datatables.net/download Thank You Uresh

08:36
But all that general software engineering knowledge can be helpful with anything.
Oh
I am thinking to start reading the following book:
user2416523
anyone have worked with this theme ? usman.it/free-responsive-admin-template
hey, what's the difference between a normal answer and a community wiki answer?
cause sometimes i flag as community wiki my answers but dunno the difference :D
@Uresh nope it is a shit really :/ use somenthing better ;)
really would like to be a 'pro' programmer in php. So Im looking for the best book to improve my experience.
http://www.amazon.com/Clean-Code-Handbook-Software-Craftsmanship/dp/0132350882/ref=sr_1_1?ie=UTF8&qid=1369376812&sr=8-1&keywords=clean+code
@Duikboot you need to develop somenthing good for your own to improve your experience ;) a book it's ok, but first of all try developing somenthing you think are not good to do ;) IMO
so then ask, fix , and you learned somenthing more ;)
08:42
True, but I want to learn ' coding patterns'.
@Duikboot clean code is a good book to read before writing code because it makes you think about how you write code
@Uresh just for example : ui-cloud.com/?s=admin+template&submit=Search but there are tons of admin templates better than the one you posted :D google.it/…
I would like to know more about, MVC, DI, DIC, OOP, REST, PSR, ...
How does steamgifts.com check if you are entered?
08:45
But I don't think I can directly implement those techniques,.. without knowing what the extactly do that's the reason why I would like to read a book about it.
what's PSR ?
@Duikboot when Einstein discovered relativity he red a book on relativity?
;)
The principle of sufficient reason states that nothing is without a ground or reason why it is. The formulation of the principle is usually attributed to Leibniz, although the idea was conceived and utilized in various philosophers that preceded him, including Anaximander, Parmenides, Archimedes, Thomas Aquinas, Anaximander of Miletus, and Spinoza. Some philosophers have associated the principle of sufficient reason with "ex nihilo nihil fit". Formulation The principle has a variety of expressions, all of which are perhaps best summarized by the following: *For every entity X, if X exist...
08:47
@Duikboot Reading that at the moment myself.
No but when it exists I don't have to reinvent the wheel @okok
:)
@Duikboot yeah :D
@Duikboot Why read a tutorial? Just read the proper PSR stuff on github - explains everything
Rao
Rao
anybody here code wordpress?
i have a question regarding display of menus
@Gordon can you please tell me how can i revert this stackoverflow.com/questions/9667226/… answer from "community wiki" to "normal" answer? :P
Yep :)
mornings, and it's really too early for sufficient reason until I got more coffee
@okok why did you make it CW in the first place?
what's a nice feature for a webiste?
@Gordon i thought i could get rep anyway :P
@okok that doesnt explain why you made it CW. what did you think it was good for?
09:03
@Gordon ok np man, leave it has it is really np ;)
i don't remember sincerily it was time ago :P
@okok I didnt say I won't do it (I just removed the CW). I just want to understand what you think a CW is.
I would like to know that too
Parmenides of Elea (; ; fl. early 5th century BCE) was an ancient Greek philosopher born in Elea, a Greek city on the southern coast of Italy. He was the founder of the Eleatic school of philosophy. The single known work of Parmenides is a poem, On Nature, which has survived only in fragmentary form. In this poem, Parmenides describes two views of reality. In "the way of truth" (a part of the poem), he explains how reality (coined as "what-is") is one, change is impossible, and existence is timeless, uniform, necessary, and unchanging. In "the way of opinion," he explains the world of ap...
Parmenides FTW
@Gordon sorry ok and thanks, can you explain CW in really short words :P ?
@hakre that's the guy who invented Italian Bacon, right?
@okok "Community Wiki posts work by transferring ownership of the post from the original author to the community. They make the post easier to edit and maintain by a wider group of users, but they do not contribute to any user's reputation." See meta.stackoverflow.com/questions/11740/…
@Gordon Italian Bacon? What is it with you with so much Bacon lately?
Are you eager to get the grill on?
@Gordon thank you now it's clear at 100% ;)
@okok it's okay to learn by doing. I did it as well the same way.
@hakre you cant say clit in here.
09:08
Heraclitus of Ephesus (—; c. 535 – c. 475 BCE) was a pre-Socratic Greek philosopher, a native of the Greek city Ephesus, Ionia, on the coast of Asia Minor. He was of distinguished parentage. Little is known about his early life and education, but he regarded himself as self-taught and a pioneer of wisdom. From the lonely life he led, and still more from the riddling nature of his philosophy and his contempt for humankind in general, he was called "The Obscure" and the "Weeping Philosopher". Heraclitus is famous for his insistence on ever-present change in the universe, as stated in ...
@hakre i think it's the best way to learn, but a book it's a great support too ;)
Heracleitus FTW.
@Gordon better?
eheh
@okok protip: when you mark something CW note why in the post. That helps you remembering.
I always prefer video tutorials over books
09:09
@Gordon yeah now i know ;)
@hakre no -.-
@asprin Yes me normally too until I get so fed up watching another video.
I mean try reading a book for hours and try watching videos for hours.
@hakre I don't grill in Winter
Never been a book worm...I'm allergic to them :p
@asprin sure! i personally do not read programming books :P but many people used to do, maybe, via book, you can learn more tips , deeply i mean dunno :P
09:09
@Gordon Yeah the weather is crap this week, really sucky.
but when i see a book i feel it boring can't do anything about it :D
exactly
feels like a dry subject
@okok yes, you can. you can read it and find out you are wrong. depends on the book though.
@hakre weather? You mean the snow out there?
@Gordon yeah i guess that indeed
09:11
@Ocramius I swear, I saw a Mammoth pass by
@Ocramius lol hope not really
@Ocramius and it's not coming. It never really left :(
where you from @Gordon @Ocramius ?
Alaska?
@okok cermani
09:16
sometimes i really feel lucky to being here in Italy, i guess we have the really best weather in thw rold :P Maybe places like San Francisco etc could be better for the weather but damn they has twisters and nature phenomenons , here never happened nothing :P
@Ocramius can't find that on gmaps :P where is it? :P
@Ocramius Slovacchia? Cermany?
Germany ^
People just don't unzerszand cerman english
@asprin it's the dust they collect :)
@Ocramius oh man, and the wind :)
This room's been kinda dead this week - everyone busy?
but right now I have sun and I will jump on the bike soon
09:27
@TillHelge my hosting company replies : U can solve the problem by creating a local connection with the SMTP service instead of the standard mail() function, like you said.
user2416523
@okok : i already have developed almost every pages on this theme
09:44
@Duikboot There are existing PHP libs that do that for you.
@Duikboot did they really start the sentence with U ?
No I translated it.
:P
this week i basically have done nothing
5
Well I followed the next tutorial : youtube.com/watch?v=DxNpqKIcgtk
.. got "talking to" from project manager ... oh the fun
09:46
But where the H#ck should Mail.php refer to
10:07
@tereško What'd you do to deserve that?
@Jimbo mostly "nothing", for whole week
cannot not post it
I'm using PHPPowerpoint to create .pptx files. I was wondering if it possible to increase the font size used in the charts with this library
@tereško have you used @ircmaxell's github.com/ircmaxell/password_compat?
user652649
/me is switching from guns 'n' roses to rebecca black. many people could have an heart attack for this
user652649
morning :P
Got you covered!
Monring @wes
user652649
hey jimbo :P
Liking your van halen avatar
@Jimbo :)
user652649
10:12
@Jimbo the "i'm with stupid" one was better xD
user652649
yesterday, by rdlowrey
user image
@Wes Yeah, the pic of you next to rdlowrey was pretty funny
user652649
:P
@Gordon I need help... I've used github.com/ircmaxell/password_compat ... problem is I'm building the project on my machine at work, I'm trying to copy the project to my laptop... I've moved everything db included, but on my laptop password_verify() keeps returning false even with logins that work normally on the desktop
Doesn't github have a bug tracker system?
Surely using that would be more helpful to the masses.
10:28
@iroegbu What is the PHP version?
Good Morning
jo @Baba
@PeeHaa埽 Morning
@PeeHaa埽 Tell me more about bug #64660
5.3.4 - laptop
5.4.4 - desktop
@iroegbu RTFM :)
@Baba What is this but #64660?
10:32
Saw the 23 May 2013, PHP 5.5.0 Release Candidate 2
Neet to test if it affect 5.4 am using in production
lemme login
@PeeHaa埽 cool
@Baba I don't have enough powahs
@PeeHaa埽 lol
@PeeHaa埽 is it that bad ?
My guess is it is some critical security issue, but my guess is as good as yours
10:35
@PeeHaa埽 oh! I'm not ready to change my php version :(
@PeeHaa埽 who has that kind of juice ?
> Released: 09 December 2010
@iroegbu ^
@Baba @salathe
But if it is indeed something critical is should stay private ;)
@PeeHaa埽 cool .. just want to be sure ... am not affected ...
I think this also has been reported to PHPStorm bugtracker but more for the fun. Looks like someone tried it in real PHP code as well.
@hakre bad guy .... :)
10:41
Valid reason for global state: password_compat for forward compatibility (I'm guessing you just remove the password file and it'll all still work) ?
There is no security through obscurity.
@Jimbo what do you mean. Like conditional include?
@hakre No I mean, if it's designed for forward compatibility, the function names are all the same as 5.5's will be right? So just remove the include and it should still work?
@Jimbo Yes, exactly. That is how it should work :) And I bet it does work exactly like that :)
That's pretty cool
@Jimbo yes it is. and I just promoted it again yesterday :)
10:49
@hakre Out of interest, using this library, the only thing you store in the db then is the $hash. Nothing else, no salt...
@Jimbo yes, the salt is part of the hash string. So you don't need an additional column. Those hashes are called "portable hashes" because of that IIRC.
Also I think because they tell which algo they use.
One thing you need to take care about are the sizes then because mysql does truncation on insert / update.
Yeah, I read VARCHAR(255) just to be safe, right
2
Q: What is the output length of PHP crypt()?

csstdwhat's the output length of PHP crypt()? md5() output is 128 bits and produce a string with 32 chars, so in data base you put that in a char(32) column, what about the crypt()?

but that is for crypt not password_hash specifically (hmm, PHP linker (Manual Linkifier) seems broken on these two)
> Note that the algorithm that we chose is PASSWORD_BCRYPT. That's the current strongest algorithm supported. This is the BCRYPT crypt algorithm. It produces a 60 character hash as the result.
Yeah, he advises varchar 255 because of truncation if using PASSWORD_DEFAULT
CRYPT_BLOWFISH (60) :: 4 ($2y$) + 3 (cost $) + 22 (salt) + 1 ($) + 53 (hash)
10:55
6
Q: Using phar Stream to Write PharData Files

Alix AxelWhen I try this: $phar = new PharData('./phar.tar', 0, null, Phar::TAR); $phar->addEmptyDir('test'); file_put_contents('phar://./phar.tar/test/foo.txt', 'bar'); I get the following error: Warning: file_put_contents(phar://./phar.tar/test/foo.txt): failed to open stream: Cannot create ph...

^^^^ any better answer
@tereško ew, I just looked into AngularJS's DI, it's all service location. It'd be extremely hard to test my current work code had I used it, I'm glad I didn't now.

« first day (951 days earlier)      last day (4222 days later) »