« first day (2180 days earlier)      last day (2764 days later) » 

12:21 AM
!!reminder book the flights, now in 10 hours
 
Reminder set.
 
 
1 hour later…
Wes
1:33 AM
!!reminder you suck in 8 hours
 
Reminder set.
 
 
2 hours later…
3:27 AM
o/ from Bangkok (again)
 
\o Fabor
 
o/
 
4:10 AM
Morning
 
5:09 AM
hi all, i am new to php, please help me choose best one in these 6 links : [link1](http://www.codingcage.com/2015/01/user-registration-and-login-script-using-php-mysql.html)

[link2](http://www.9lessons.info/2016/04/php-login-system-with-pdo-connection.html)

[link3](http://thisinterestsme.com/php-user-registration-form/)

[link4](http://www.allaboutphp.com/php-login-and-registration-script-with-pdo-and-oop/)

[link5](http://www.itechempires.com/2016/06/php-login-registration-system-with-php-data-object-pdo/)
 
posted on October 04, 2016

New Cyanide and Happiness Comic

 
@nsdlfefinedieicbe all of that is mostly... old code, using either the deprecated mysql_* extension, or superglobals all over the place, or improperly sanitizing their inputs, or creating a new connection object for each query.
> // this will avoid mysql_connect() deprecation error.
error_reporting( ~E_DEPRECATED & ~E_NOTICE );
^ this is ridiculous
 
lol..
 
please burn with fire
 
@FélixGagnon-Grenier thanks for reply.... your reply means "i got water in desert"..... those links are writtenc code with pdo...... can you please look one more time and help me to choose best one.....
 
5:15 AM
!!rebecca
 
@SagarNaliyapara Only 2 days, 18 hours and 43 minutes left until Rebeccaday, OMG!
 
Two satellites decided to get married The wedding wasn't much, but the reception was incredible
 
@nsdlfefinedieicbe avoid like pest any of those
seriously. these are dangerous advice, at best (the ones in the links you posted)
 
@FélixGagnon-Grenier i completely respect your advice..... thnaks for that, but as i am in pressure that i need to finish the project soon, is there any chances to check those links and help me to choose better one
 
5:25 AM
I am sorry @nsdlfefinedieicbe. I can't under any angle recommend you to follow the steps described in these tutorials. I feel you when you say you need to finish something quickly, so please ask a question about where in your code you are stuck, maybe one of us can help you.
 
thanks for your support @FélixGagnon-Grenier
 
!!rebecca
 
@Gordon Only 2 days, 18 hours and 28 minutes left until Rebeccaday, OMG!
 
@nsdlfefinedieicbe ... but since you seem to want to follow one of those anyway, I'll still try. do not, under any circumstances, follow the first one, the fifth and fourth at least might produce not overly unmaintanable spaghetti code.
 
@Jeeves that countdown did confuse me for a minute
but thats because it was a holiday yesterday
 
5:33 AM
@Gordon it actually still confuses me
why do holidays have something to do with that?
I mean. it's monday. -ish.
 
@FélixGagnon-Grenier but its correct. today is tuesday. plus two days is thursday and then 18 hours til Rebeccaday
 
@FélixGagnon-Grenier first one is done with mysqli , please check this link once : codingcage.com/2015/04/…
 
@FélixGagnon-Grenier well, when you think its a monday it makes no sense whatsoever and is more confusing ;)
 
^ :p
@nsdlfefinedieicbe the first one of the six links you posted (please read your message again if you doubt it) is this, and it uses mysql (not mysqli).
 
@FélixGagnon-Grenier ya right, sorry , same author wrote this link with pdo : codingcage.com/2015/04/… please check this
 
5:38 AM
yeah I just did
it is totally less horrible
 
thanks again @FélixGagnon-Grenier
 
There are some things to be improved, but at the very least they are using the built in password api for authentification
@nsdlfefinedieicbe that is okay-ish
 
Can anyone help in this filddle pls?

http://jsfiddle.net/RhnvU/5828/
I cant make it
 
okay, than i will try to fix all the issues in that link, thanks...... @FélixGagnon-Grenier
 
I want to show using $("#ifPrint").show(); but not working can anyone check?

http://jsfiddle.net/RhnvU/5828/
 
5:45 AM
moin
 
mornin @Joe
 
mornin joe
 
morning
 
'nin
 
@MohammedShannaq Hi
 
5:54 AM
Hi Every One !
Can you help me regarding to Youtube data API ?
 
$('#myForm input[name=newopt]').change(function() {
//$('#myForm input[type=radio][name=equip]').change(function() {
$("#ifPrint").show();
});

change this one to

$('#myForm input[name=equip]').change(function() {
//$('#myForm input[type=radio][name=equip]').change(function() {
$("#ifPrint").show();
});
@MazharIqbalRana
name of the input is not correct check it properly.. @MazharIqbalRana
 
@SagarNaliyapara this equip is name of hardcoded radios I want to show div on new created radio which name is newopt
@SagarNaliyapara updated fiddle jsfiddle.net/RhnvU/5839
 
@MazharIqbalRana i haven't find any radio button with name newopt in fiddle
 
@Sorry this is new link jsfiddle.net/engr1111/RhnvU/5842
@SagarNaliyapara there is newopt created in javascript pls see

http://jsfiddle.net/engr1111/RhnvU/5842/
 
6:14 AM
@MazharIqbalRana stackoverflow.com/a/2475535/4670278 follow this one
 
Good morning
 
@SagarNaliyapara he used the same except this:

input.onclick = function(){ alert('this is test'); };

But this is not working
@SagarNaliyapara it appends input and works till page refresh
@SagarNaliyapara then it gives no impact on page refresh
 
6:40 AM
thanks @SagarNaliyapara. it use for me. but i am confuse in how to manage user php and openfire
 
6:52 AM
moin
 
mornin
 
moin Dave,Ekin
 
Anonymous
7:33 AM
mogerrg
 
meurning
 
moin
 
Can anyone help in http://stackoverflow.com/questions/39844070/show-div-on-dynamically-created-radiobutton-selection-php-ajax/39844509#39844509

Fiddle for this question is: http://jsfiddle.net/engr1111/RhnvU/5842/
 
monin
 
7:53 AM
Huh, what are the usual causes for a segfault in php?
One of our devs has just run into one on his VM running 5.4 iirc
Nvm, fixed it. Mornin' 11
 
@Sean That's like asking where are the sandgrains on a beach usually?
 
:p Point taken
 
moin
 
hello every one
can file_get_contents used to get file from a directory without knowing the name ?!
and we know there is just a jpg file in a direcory
 
@mehdi what? without knowing the name of the directory or file? and how would you read a file without knowing its origin...?
 
8:07 AM
@ErikLandvall without knowing the name of file , I know directory name
 
You'd definitely need to know the full file path, including the file name. You can use something like scandirto list out what is in the directory.
!!docs scandir
 
[ scandir() ] List files and directories inside the specified path
 
Just be sure to handle . and .. correctly when using it
 
great , ty , i was thinking about glob() but scandir() in better
 
8:13 AM
good mornings
 
@mehdi I'd favor glob if you just want to get jpgs. with scandir you'd also need fnmatch to limit it to jpgs, which glob basically includes.
the OO alternative would be a regexiterator over a filesystemiterator
 
@Gordon thanks dear gordon , I use another way to catch file name not using glob or scandir
 
8:30 AM
Funny, SoapClient accesses private variables if you pass it objects when forming a request.
 
I'd like to announce that today will be my last day at @Grovo. It was an amazing ride, but all good things must end... Going to miss you!
@ircmaxell
 
Predicting Germany based company next
 
nah, he's looking for CTO, VPE, etc in NYC according to followup tweet
and what will happen to @rdlowrey?
 
turfed out into the gutter I would imagine :p
 
He's too photogenic to be left alone
I bet he's probably having a cigar made of 100$ bills
 
8:36 AM
@PeeHaa oh, you've really put that bounty on my question… o_O
 
can anybody tell me how can i secure my magento live website which is periodically hacked twice and deleted some imp images and cofig files
 
@VishnuSBabu hire someone who knows about security
 
@NikiC Uh … 3v4l.org/IC1su … Am I missing anything? I thought explicit by-ref passing would still work???
 
hi guys
how to store in database a multiple records of checkboxes? I change the name of the checkboxes from "hobby" to "hobby[]" but unfortunately I'm not finding the problem in the INSERT statement
 
8:53 AM
@JohnyNassar what... ?
 
$sql="INSERT INTO profileform (fname, lname, age, gender, email, phone, hobby, comment)
VALUES('$Fname', '$Lname', '$Age', '$Gender', '$Email', '$Phone', '$Hobby', '$Comment');";
that's my insert statement
 
argggh, today's annoyance. A guy who puts use stdClass at the top of his files to save a single \
 
it is vulnerable to SQL injections
 
@JohnyNassar please go read about sql injections before you continue...
 
I want to store a multiple records of checkboxes in mysql
 
8:55 AM
@JohnyNassar that won't matter much when someone deletes all your data because you ignored sql injections
 
Hello my internet dwelling friends!
 
Does anyone here happen to use PhpStorm?
 
@Rawrskyes many do, just ask the question
 
8:58 AM
@Duikboot now you only need an application ^^
 
I currently have an application for registrations but I should extend it.
the gray-zone in my head is .. how to interact with the barcode scanner and the app :D
 
Does anyone know if there's an easy way to get some sort of 'try a random piece of php' functionality in Phpstorm without creating a new file and whatnot?
 
@Rawrskyes On your computer, not on a website?
 
Like phpfiddle!
Using phpstorm.
 
Oh.
 
9:00 AM
@Rawrskyes You could use a scratch file (Tools -> New Scratch File)
 
I tought you were looking for running php scripts in therminal or something
 
@Duikboot You can scan barcodes from a website with js and a webcam/phone camera
 
@Leigh Now I remember why I pay you. That's exactly what I was looking for!!!
Now I'm sad I don't have an insert key on my keyboard :(
 
@Patrick I know :) but I don't want to buy 4 phones for 'just' scanning.
 
@Duikboot what you mean by grey area? a scanner is kinda the same like an input device, so basically what it does is you focus an input field and scan a barcode and it outputs it into the inputfield
 
9:04 AM
@bwoebi I may have misunderstood your point but what you're passing is an array of references, not a reference?
 
Gray-area: ==> 'How to get the scanned 'data' to my app.' ( To handle the print job )
 
@pmmaga note the splat operator… (on cuf())
For some reason foo(...[$o]); does not emit any warning \cc @NikiC
 
@bwoebi this?
 
@Gordon E_YT
 
9:07 AM
@bwoebi E_MIMIMI
 
@Duikboot i think most barcode scanners just work like a keyboard, sending the text to the computer just like you would when you paste something?
 
@bwoebi (approximately safe for work)
also not rebecca
 
@Patrick I would like to start a print job basd on the scanned value. ( User credentails ) Some batch/label should roll-out the printer.
 
@DaveRandom It still wasn't worth being seen…
 
spoil sport
 
9:10 AM
@bwoebi the fact that I remember a jingle from 1992 when someone says splat makes it relevant
 
@Duikboot as a webapp?
I mean you could do it with some onchange and ajax I guess on the scanning side of things
 
[desk] [scanner /scanning the paper ticket from the user with barcode/qr-code] ..-> ...[/user/{3434}/checked-in] -> get user credentials from user 3434 -> print label.
 
guys, when I insert into the table the multiple checkbox values it display the word "Array" in my column
it should display the value of the checkbox
 
@JohnyNassar go a level deeper ;) to read the array... means you select the ARRAY not the element in it :) do var_dump of the checkbox
 
@Duikboot so where is the problem?
 
9:13 AM
how can I insert the value?
 
@Patrick I don't get it how to do the connection between the scanner to my application if its not a phone.
 
@Duikboot the scanner is just a device... like a mouse or a keyboard... connect it with bluetooth or whatever, or even a usb port
 
Where do I connect it to.. where does it 'posts' it's data to?
 
to the field you are focussing at that time
 
@Duikboot Just use a normal form like you would with a keyboard. Scan = submit (depending on the scanner it will submit an enter or you can do it with some js magic)
 
9:16 AM
So... a scanner has a behaviour to 'read' the qr code an goto the url behind it? ( where other functionality will be handled by the back-end of my application )
 
Mooin
 
@duiboot no, a scanner just reads the code, outputs the value of the code into an input or something else and just submits the form based on how the scanner is configured
 
QR: dev.webapp.com/post/user/323/attending/ if that route is being called on the device it will start a printjob or something
Omg, why am I not able to understand it :D
 
@Duikboot the scanner is just a keyboard... the rest is up to your app
 
just make a form with an inputfield and a button, and try it
 
9:18 AM
its the same as if you type the numbers yourself
 
let's say you have a barcode with value 123456 behind it
 
yes.
Then the machine will read it as 123456 ... end of story.
 
you focus the inputfield, you use the scanner, the scanner will output 123456 in the inputfield and based on its settings it will also generate an enter, meaning it will submit your form
that's all there is to it
 
That's what I don't understand/ now understrand/ "it will also generate an enter"
 
what does an enter do in a web form?
 
9:20 AM
@Duikboot just an additional keystroke in addition to the barcode numbers
 
It submits the form :)
 
it's just settings of the scanner...
 
Ok :)
That part is now clear :D
 
a scanner standard submits an enter
 
OK :D
 
9:20 AM
you can also make it a tab or whatever..
 
I want do 'set user to attending = 1' and > print badge
 
well that's easy right?
based on the code you just scanned, you can do everything else?
 
Exactly except selecting the right printer?
 
no idea, never tried that before
 
user6619012
can anyone review this code here : codereview.stackexchange.com/questions/143177/…
 
9:23 AM
moin 2
 
\o
 
\o/
 
:D
@Naruto Would you use let's say 1 computer with 5 wireless barcodescanner, or for every desk a notebook with a scanner? >> Asumming every desk will also have a label printer.
 
I would use 5 computers with 5 scanner and 5 printers, just because I can ^^
 
9:27 AM
:P
 
$$$$$$$$ :D
 
but srsly, it all depends, you said the setup was pretty small, so why not jsut take 2 pc's and 2 scanners with 2 printers (maybe even 3, so you have a backup)
 
$$$$$$$$$$$$$$$$
 
ker-ching
 
:D
Ok
should find some cheap scanner to test with :D
 
9:29 AM
@DaveRandom youtube.com/watch?v=iEe3hBXZEyI does this count? Ka-ching!
 
google.be/… should be so nice if I can 'create custom labels' with the logo of the company on it
 
l0l
 
Ooo boy :( guess I'm back to work before everyone starts acting like dave ^^
 
(j/k)
> No company politics - they are an agile & exciting consultancy!
 
9:33 AM
@Wes you suck
 
lol
 
since when does jeevees callout people?
 
Strangely he asked the bot to do that...
 
!!reminder have some nutella in 30 minutes
 
9:37 AM
from Bulgaria!
 
Reminder set.
 
@Jimbo \o
 
I just met the person who built the codeception framework, really nice guy
 
cool
also moin
 
@JoeWatkins moin
 
9:39 AM
yo bob
 
@JoeWatkins you def need to find some time to work on phpdbg docs with me :-)
 
@bwoebi are you mistaking call_user_func and call_user_func_array?
 
if you make me collab, I'll start editing what we have online (can do that nearly anywhere, and may not be home much for next day or two)
 
@NikiC no
@JoeWatkins you are collab
 
because call_user_func simply cannot pass by reference, not matter how you try to turn it
 
9:44 AM
@NikiC oh, why?
 
Just forget the vm opcode and think about the real function instead
It gets only the derefd value
 
oh, true, it's no prefer_ref
39 mins ago, by bwoebi
For some reason foo(...[$o]); does not emit any warning \cc @NikiC
^ but that's still weird @NikiC
 
Why should that emit a warning?
 
@Leigh because it passes a non-ref/variable to a parameter requiring a ref?
or is splat operator doing &$tmp[0] ?
 
@bwoebi It would be if it weren't a temporary
 
9:48 AM
@NikiC how is that related?
 
I mean that unpacking unlike cufa acquires references instead of using existing ones
 
@bwoebi $o is an object?
 
@NikiC … oh.
I've expected it to be like cufa…
 
nope, unpacking is more powerful, which is why you can use it for things like mysqli parameter binding without jumping through hoops
 
@NikiC okay, so there's really no reason anymore to ever use cuf or cufa?
 
9:53 AM
Yes ... there has been no reason to ever use them since PHP 5.6
 
And there's me who thought I'd still need it for refs :'-P
 
...
 
ThW
Morning
 
\o
 
Which 11ers are the back middle and the far right again? In the photo
I'm terrible with names ._.;
 
Anonymous
10:06 AM
yesterday, by JayIsTooCommon
@FlorianMargaine from left to right - Bob, Thomas, Chris, Danack, Jimbo, Leigh, Joe, Sean, Pieter, Most Handsome Man of the Year 2016, can't remember the username
 
Anonymous
far right is pmmaga tho :)
 
Ahh gotcha, cheers!
 
@Archer have some nutella
 
Wat. Oh reminder
 
Anonymous
reminder :)
 
10:07 AM
@Jeeves \o/
 
@bwoebi ah was looking for edit button, I see it ...
 
...
 
@Duikboot It's great, hooked it up to my old chat bot once
 
:D ha nice
 
10:18 AM
Though I wouldn;t recommend for Jeeves haha.
There's also a lot more endpoints now
 
@Duikboot loveaas.com
 
@Ekin book the flights, now
 
ping @kelunik?
 
10:34 AM
Maslow's hierarchy of dev needs https://t.co/pEXqRNn6zM
 
@Leigh misses wifi
 
hi all , for login-sign up live project do you guys suggest pain php-mysql code or frameworks ?
 
@nsdlfefinedieicbe you still didnt solve that?
 
@Leigh in fact you may know this: does .well-known (for acme) need to be accessible via https?
 
@DaveRandom AFAIK no
 
10:43 AM
@Gordon i am still working on that.....
 
k cool, ty
 
@DaveRandom I've actually not used it yet, I paid for 5 years expiry on my certs
because it wasn't expensive
 
hmm @JoeWatkins github.com/bwoebi/phpdbg-docs/commit/… … any reason you removed the ev $a example? It's a central part of the premise of phpdbg to inspect also code (i.e. that it's like eval inside currently running code)
 
@Gordon do you suggest pain php-mysql code or frameworks ?
 
@nsdlfefinedieicbe it doesn't matter what I suggest.
 
10:57 AM
no @Gordon you are expert in this field, i iwll follow what you suggest.....
 
@Leigh no worries :-)
 
@nsdlfefinedieicbe I know. And that's exactly why it doesn't matter.
get your stuff working… either way. That's all you'll get from me as a suggestion.
 
@Gordon can you please review code of below 4 links and suggest me good one for me : 1) http://www.w3programmers.com/build-a-full-featured-login-and-registration-system-with-codeigniter/

2) https://www.formget.com/form-login-codeigniter/

3)https://github.com/hedii/Codeigniter-login-logout-register

4) a http://www.kodingmadesimple.com/2015/08/create-simple-registration-form-codeigniter-email-verification.html

4) b http://www.kodingmadesimple.com/2014/08/how-to-create-login-form-codeigniter-mysql-twitter-bootstrap.html
 
@nsdlfefinedieicbe no. I am busy and cannot be bothered with that.
 
@nsdlfefinedieicbe well .... your first link has this beauty:
function encryptUserPwd($pwd, $salt) {
    return sha1(md5($pwd) . $salt);
}
 
11:05 AM
@Gordon thanks for your precious time.....
 
3rd is an entire project .. so .. fuck-no
 
@tereško look like you are criticizing first link, than you can check 2nd , 3rd & 4th links.....
 
@bwoebi I'm mid thought on a few things, going to build them all up a little bit ...
I'll probably edit them all a few times
 
@nsdlfefinedieicbe 2nd example stores plain-text passwords
 
@JoeWatkins okay, fine; I'll get to write a bit of text later the afternoon or this evening too :-)
 
cool, feel free to remove anything I done and replace it with something better ...
 
@JoeWatkins That's not going to be an easy task :-P
At least I'm sure your contributions will be pretty great :-P
 
@Gordon can you come to my garden and rake leaves for a few hours ?
 
@nsdlfefinedieicbe His time is very likely precious.
 
also, when finished, can you pick the best leaf ...
I'm keeping that one ...
 
11:09 AM
@nsdlfefinedieicbe and the 4th links use unsalted md5
basically, all of your links are shit
you will be better off if you learn to write the registration/login system yourself
@joe, is it "better of" or "better off"
.. I always get confused
 
off
 
why?
 
thanks a lot @tereško for guiding me in right path....
as it will take more time to write framework, i will try plain php code only......
 
you dont have to write a framework
 
Hello everyone.. I am using fckeditor for content in my project. but the fckeditor.html is directly accessed if typed in the url. How could I prevent the direct access to the fckeditor.html file while It can be included in the php file.
 
11:13 AM
/me goes back to actual work
 
@tereško of is a preposition, while off may also be an adverb
 
sure @tereško i will try that......
 
it's more technically correct just to say "you would be better to ..." ...
 
hello @JoeWatkins, can u help me
 
Don't ping random people.
 
11:16 AM
that
 
@littlepootis "I haven't picked him randomly, but purposefully the last one to talk here in order to increase my chances to get noticed timely."
 
Has anybody worked with fckeditor ?
 
also know as "failure at how to internet"
 
11:25 AM
@JoeWatkins all power to the procedural code!
 
11:36 AM
@bwoebi all power
 
11:48 AM
Hello I just changed my password for my bitbucket account
And now im trying to create a new project/repo
so I created the project on bitbucket and tried to clone it
However when i commit and try to push it to the origin, it keeps saying Host does not existfatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists
So I'm guessing that it has something to do with me changing my password, any ideas?
 
Mornings
 

« first day (2180 days earlier)      last day (2764 days later) »