« first day (2169 days earlier)      last day (2776 days later) » 

11:01 AM
hi all , i am working on Login/Register/My account features in php-mysql in google, i downloaded lot of codes in zip format, also lot of sites are explaining with code , i am confused with which code/link to follow as i am worrying about code standard & performance, can anyone give me the right link to follow
 
probably - none
 
@PeeHaa smoking when you have cold taste is very bad..
 
thanks for suggestion @tereško
expecting reply from others.....
 
@Linus neh it's fine
 
I hear that amsterdam has some nice weeds...
 
11:05 AM
I'm from rotterdam so I won't know
 
K
 
@nsdlfefinedieicbe I am actually quite serious. Most of the code you can download, that shows login/registration id complete shit, filled with injection and xss vulnerabilier .. and just badly written
 
also does anybody have any preferences for a nice wrapper for getopt()?
 
you would probably be better of, if you write your own and then submit here for someone to review
 
sou ka
 
11:09 AM
@tereško Thanks , sounds good for me......
 
to start out, I would recommend for you to look at "prepared statements" for SQL, @nsdlfefinedieicbe
if you understand how to use those, it will already make your code better than 99% of shit you can find on internet
and see this page for password hashing: php.net/manual/en/faq.passwords.php
 
@tereško than i will follow this link : w3schools.com/php/php_mysql_prepared_statements.asp
 
no, dont
 
^
 
avoid w3schools
 
11:12 AM
oh, until now i studied bit html , css & liitlle bit php from there only :-) @tereško
okay @tereško than i will check other sites.....
 
nettuts or sitpoint should be ok (for a newbie)
 
than i will refer the same @tereško
 
@tereško s/sitpoint/sitepoint
 
yeah, sorry
 
has anybody pre-ordered fifa 17?
 
11:34 AM
@NikiC did you expect them to be equally fast?
 
@bwoebi Yeah
I also chose the 3rd btw
I'm a sheeple
 
@NikiC same
 
Anonymous
@Saitama Already got it
 
Anonymous
It's called Fifa 16
 
hi all , in php-mysql projects when you want to create , alter, modify tables/columns you will create through phpmyadmin or through script [.php file] , which is better ?
 
11:38 AM
Can anyone help me in chase payment implementation?
 
@NikiC "Not the first or last that's too obvious. Choosing the second then is too. Thus let's choose the third."
 
@JayIsTooCommon ???
 
@nsdlfefinedieicbe you should do it using mysql client (phpmyadmin is one of the options, yes)
 
Anonymous
@Saitama they're all the same :P
 
@tereško pma is a mysql client interface, not a client #pedantic
 
11:39 AM
nah, apparently 17 got some dope ass features!
 
thanks @tereško got it....
 
@nsdlfefinedieicbe in "professional sites" you will have multiple mysql users, and the user, that will be used by PHP script to insert and update should not have persmission to create and drop
(that sentence came out a bit confusing)
 
okay, than through script, there is no option to create & drop ?
 
you CAN do it through script
but you really really shouldnt
 
thanks , thats what i wanted.....
 
11:41 AM
@bwoebi But this should be followed by "But everyone else is going to think that too, so instead I'll chose the first after all"
 
@NikiC Well, that's what I thought about the second, thus the third :-D
 
@nsdlfefinedieicbe what I am referring to is a principle in security, that user should never have more permissions, than required. You dont need to run windows with Admin account to browse funny cat gifs on the internet.
 
I need some little help: I have a registration website. Now I want to built an external service where I create a 'checkin' barcode/QR-code where it encrypts the user's email. When this is valid I want to start a printjob to a printer in the network.
 
very nice information @tereško
 
/user/{23}/checking or /user/checking/{23} ( something like that )
Has anyone an idea how I can send a printjob from my web app or should I generate som button for it to create a print thing
Am I thinking too far or should I just add a simple button to print via a network printer on a mobile device?
 
11:49 AM
@Duikboot is that some internal company project?
 
yes.. just an idea of me to stop creating manually all those badges before an event
 
the printing should be done from the serverside code, not the mobile device
 
What is the good thing about doing it from the back end?
So a PrintJobController should handle it in an application
 
@Duikboot because not every mobile device will ahve printer set up
 
What if I can exclude that part/ Where we setup a wireless network for checking in
For the people who should do it.
 
11:52 AM
this should give you some direction:
3
Q: PHP Server Side Printing Ubuntu Server

ZeroGI have been all over stack looking at what is required to do this and have wound up being slightly confused. Lets get one thing straight this is a local based intra-net and I do understand that PHP is server side. I am running a company management solution on a web based PHP,JAVA,Jquery Idea. a...

 
LOOOL < sorry :D lpr DA160fr.pdf > print starts printing <3
 
@Duikboot I assume I solved your problem
 
yes
Thanks a lot teresko
so handling it via a PHP is ways better then handling it via the browser 'print' method :D
 
Wes
php event sourcing talk part 1 part 2
3
 
12:09 PM
@tereško cups.org
Not sure I'll need it for doing some print jobs
 
TRS
@Wes
 
Wes
y u always ping me :'(
 
... :P
 
@Wes You're his bitch
 
Wes
only when i get paid
 
Anonymous
12:17 PM
pooter, I should be on tonight if you're game
 
when did @PeeHee turn into a game?
 
TRS
@Wes
Sorry just ping for timepass
 
Anonymous
!!urban are you game?
 
[ are you game ] When someone ask if you're game, it means that someone asks if you are ready to do a certain action. Simultaneous it also implies that a challenge is included.
 
Anonymous
@Saitama ^ :)
 
12:20 PM
oh
 
TRS
@Saitama is big
 
@TRS umm... wat?
 
TRS
@Saitama is big
 
12:26 PM
Hi
 
@Saitama this game requires a dead plugin to run
 
Where would a question regarding ngninx go? serverfault?
 
@Schoening yes
 
Thank you @Gordon :)
 
@Schoening depending on what it is, someone here may be able to help
 
12:29 PM
I have rewroted the entire class for a login/regiser script. I have followed your hints and now it looks nice except the construct function.
here's the code pastebin.com/nqktzzQF
I have to manage three different pages but I'm not sure that I'm doing it well. What's your thoughts?
 
Wes
12:51 PM
bastard cannons @Saitama
 
@Wes <3
 
TRS
@Wes looking good
 
i can't even run
 
@bwoebi Will do.
 
wait what, the symtable functions do the opposite of what I thought
 
1:04 PM
@Epodax Just saying, it will be helpful for people who want to look back why the(ir) topic has been deleted etc.
 
so symtable does numeric handling, normal hash functions don't, okay
 
exactly
HashTable API is just a bare hashtable, symtable API is arrays in user context
 
@bwoebi Yea, I got rather short-headed when I had to deal with the topic multiple times ^^
 
@Epodax Just C&P your last reason ^^
 
!!canon fire
1 message moved to Orphan GIFs
 
1:09 PM
@bwoebi right. hmm. what would you suggest calling a function which converts a symtable to a hash with only string keys, and its inverse function? this is what I'm trying to figure out
 
@Andrea you mean converts all integer keys to string?
Are we talking about (array) casts of objects? and the inverse?
 
@bwoebi yeah.
seemed best to make it its own function, especially since it would end up being used in multiple places
 
Don't have a good idea right now…
 
Wes
@Linus nobody can
 
:P
 
1:15 PM
@Andrea I'd propose convert_ht_to_symtable … but symtable_to_ht makes no sense
 
Wes
mine goes backwards even
 
@bwoebi zend_hash_to_symtable, zend_symtable_to_hash? Slightly confusing names, but…
 
@Andrea the problem is that symtable is a subset of hash
symtable_to_hash is technically a no-op
 
mornin
 
Wes
1:22 PM
 
@bwoebi yeah :/
 
Anonymous
hot
 
First run of first command on windows bash:
> tail: unrecognized file system type 0x53464846
...
 
1 message moved to Orphan GIFs
Now where did that ping go
 
1:26 PM
@bwoebi zend_proptable_to_symtable? I just made up proptable, but…
 
@Andrea Stamp of approval.
… It's at the very least the best name until now.
 
1:38 PM
yeah
 
@Andrea You going to do an RFC?
 
(That's a bugfix, not a feature! :-D)
 
mornings
is it common practice to say half truths on cvs? former employee received that:
> 5 years experience with php5 and php7
 
lol
 
1:54 PM
yeah
 
That's what you get when you split versions up
 
:D
so yeah, just passed around to say that, la'ers
 
No idea why you would even mention them specifically. Then again I only made cv's when there was onyl one true php version
 
2:04 PM
@FélixGagnon-Grenier sounds like unfortunate wording for "5 years experience with php, including familiarity with php7"
 
Anonymous
Is there anyway to get the found needle for the second argument in js replace() ?
 
Anonymous
@JayIsTooCommon $&
 
Anonymous
thanks.
 
...
 
Were there any major changes made to php.ini in PHP7?
 
2:17 PM
@Machavity We migrated over to php.yml
 
@salathe I knew it. Was only a matter of time until YAML took over the world
 
@salathe lol
 
@salathe hahha
 
2:33 PM
@salathe nightmares </3
 
@NikiC I want to, yeah.
Even if it is really a bugfix of sorts, an RFC might be worthwhile.
 
I have two pages: index.php and verify.php. index.php has a form that POSTs to verify.php, which is the primary form. verify.php has a small form for a digital signature (type your name in the text field) which POSTs to itself. I have if/thens for $_POST['submit'] == "value", though I'm thinking of changing it to a switch case. I'm having problems getting the logic right though. Anyone have some time to look at what I'm doing and explain how I should do it?
The code is getting horribly convoluted.
 
Anonymous
Post your stuff and someone will help if they can :)
 
@Wes lol
 
Wes
2:43 PM
@Tiffany that's proper procedural matriciana spaghetti
 
@wes yup, it made me hungry for spaghetti yesterday
 
@Tiffany thanks. You made me feel less annoyed by the legacy code I am currently looking at for work.
 
@tereško rofl. T_T
 
Anonymous
@Tiffany gist.github.com/tiffany-taylor/… just the else will do
 
I keep adding shit to it, and I keep staring at it. I realize it's a fucking mess, but I don't even know where to begin to clean it up >.<
 
2:46 PM
@Tiffany you probably should start by separating out the HTML: chadminick.com/articles/…
read the article - it should help
 
@JayIsTooCommon I kind of like having the explicit else if (other condition) so that if something weird comes up, it won't default to the else condition, if that makes sense.
@tereško thanks
 
Wes
@PeeHaa did you understand how to use babel with webpack? haven't tried yet. will i need beer?
 
Anonymous
@Tiffany nope, because 'something weird' wouldn't come up in that situ. But either way, it's minor. What @tereško said is a good start. to be fair, the php that you've done isn't that insane imo.
 
Wes
every of us began with that :B
 
yay! nostalgia
 
@JayIsTooCommon it's becoming difficult to follow though, and when I try testing the Digital Signature portion, the form verification HTML vanishes, which I expect it too because it's inside of a different conditional.
 
Wes
<3 @FélixGagnon-Grenier
 
:)
  "scripts": {
    "build": "webpack --progress --colors"
  }
add that to your package .json, and enjoy
 
Anonymous
@Tiffany separating php from html will make it a lot easier to follow
 
I'm just not sure how to fix it correctly. I could use the previous form's logic, which is stick the verification form data inside another form that POSTs to itself, but that just seems worse than what I'm doing.
I'm still in the beginning part of the article, but does it explain how to separate the PHP from HTML?
 
2:56 PM
@Tiffany have you been through github.com/PatrickLouys/no-framework-tutorial ?
 
@Danack nope
 
It would be a good idea to.
 
alright
is MVC the norm for PHP web applications/sites?
 
Yeah, I'd say so.
 
Attempts at "mvc" are the norm
 
3:00 PM
LOL, well yeah that might be more accurate :D
 
@Tiffany There's no such thing as MVC in PHP - en.reddit.com/r/PHP/comments/2gub3p/the_purpose_of_a_framework/…
 
vendor code is written using MVC architecture, and I'm slowly getting used to it, but I feel like MVC isn't appropriate for websites. Structurally, it feels too complex.
 
Although you have models, and views, and controllers, that doesn't make it "MVC".
 
@Tiffany For plain websites, it's overkill. But if you have a web application/more complex website with extensive searching/filtering it might help a lot.
 
:)
 
3:04 PM
Makes sense.
 
If you just want to create a company website that happens to have a contact form, MVC makes no sense. If you want to build a webshop, it becomes another story.
 
our site is more of a web application since it has a CMS back-end, so I can see how using a MVC (MVP) architecture would make the problem more bite-size to consume
I'm frustrated that it's taking me more than two months to write this form, and the point I'm at, it's barely an improvement of the older form. The project could have been outsourced and completed and cost less. Granted, on the other side of it, I wouldn't learn anything either, which is why I argued for them to let me write it. But I'm still frustrated with myself. :/
 
Dat targeting tho:
Want to learn how to quickly extend the value & power of your existing IBM i RPG app portfolio?… https://twitter.com/i/web/status/779266566294675457
shown as an ad to me...
 
3:17 PM
@Wes For just 3 days? What the heck?
 
Go England!
 
Wes
ahahah ^
 
metal makes everything better
 
lol wth
 
Wes
do you know people that managed to continue working and resumed university in their 30ies? :B
 
3:20 PM
I'm going to be one...
I still don't have my associate's degree and I'm about a semester away -_-
I turn 30 in six months
 
you don't fit the requirements
how do i english
 
Wes
wat. why don't you finish it?
 
Untreated ADHD.
I struggled to balance work and school, and school suffered. My ADHD is getting treated now though, so it is something I will look going back to.
 
Does PHP have any problems when running a script which always runs? Such as a RabbitMQ listener
 
@Tiffany I've probably got that!
 
3:23 PM
^ I love that video
Also, I scored like... 500+ points on the test the time I did track my points.
 
@Tiffany Nope, turns out I'm just retarded
 
Wes
@Tiffany shit, that's... me
 
@Tiffany first of all, MVC and MVP as completely different patterns. And what @Danack said is true: nobody actually uses classical MVC in PHP. What you get instead are usually just RubyOnRails clones.
There is a variation, that has been design for web: Model2 MVC, but nobody is using it either.
 
hi
i have big problem
i have a wordpress website with 4 custom post type and Suddenly 3 of them show the other one posts in admin menu
what is the problem
 
we dont do wordpress here
12
 
3:37 PM
you could try wordpress.stackexchange.com
 
some people helped me with wordpress here before
and i don't think stackexchange let me post this question because it's too short
 
there should be a WP development chat room that you could try as well.
 
or use IRC
we dont do wordpress here
15
 
ok tnx
 
Evenin'
 
3:49 PM
evening
 
hey everybody
 
sometimes I can't believe these are a real thing.
why did the same thing get starred?
 
@Ekin we dont do wordpress here
16
 
:D great, it's super emphasized now
 
I just wanted to add: we don't do wordpress here
12
in case anyone missed it
 
3:54 PM
@Wes do you drink tons of coffee?
or some other caffeinated beverage
 
Wes
we don't do wordpress here
16
... yes i do :B
 
Do you feel like you can't function without it?
 
@Sherif learn 2 pattern
 
Not just programming, but any kind of thinking, really
 
Woooooo... BEER O'CLOCK!
 
3:59 PM
all these stars are wrong as "wordpress" is my pet name for @PeeHaa's mom
 
@FélixGagnon-Grenier patterns? What are those? :p
 
yeeeeehaaaaa
:D
 
XANAX O'CLOCK!
I'm weird.
 

« first day (2169 days earlier)      last day (2776 days later) »