« first day (1779 days earlier)      last day (3166 days later) » 

9:00 AM
That person/framework is crazy
 
@RonniSkansing We should install it while removing Laravel in the uninstaller :P
 
=] heh yea
 
if you do
 
I def need that alphanumeric file system stuff
 
@Orangepill posting a link to some "IFs are bad" page
 
9:02 AM
you must leave the merge conflict in the readme
 
it might be you
 
He could benefit from a society that took mental illness seriously.
 
yeah
he's in Texas though
FL is probably worse though
 
9:11 AM
FL just redefines all the symptoms as perfectly normal behavior, so there's no problem anymore.
 
pretty much
 
github.com/rodeone2/EssenceOne/find/master is way better suited to explore that repo
 
my home town actually had a christian science center
I thought about showing up in chemistry lab attire (with a video camera) to go "okay, show me where the science is being conducted"
what grand experiments are being conducted here?
etc
if Fort Myers slid into the ocean and killed everyone who lived there, I wouldn't shed a single tear :P
 
@tereško feeling awake and better?
 
not entirely and maybe
 
9:16 AM
I think it is a general symptom of programmers. What do you say?
 
@ScottArciszewski Dunning–Kruger is strong in that one
 
By the way guys, what do I need to know in order to call myself a novice php scripter / programmer? Im trying to find where the line between nooblet / novice and intermediate is
 
it's completely arbitrary
more frustrating: what's the line between intermediate and expert?
 
indeed
 
9:19 AM
that question has caused more impostor syndrome in the industry than I care to think about
 
I think an intermediate individual knows that he can drive a car but an expert knows how the car functions and can optimize and tune it
 
are you driving the car or building it?
does me being generally knowledgeable of PHP and application security mean my expertise applies to, say, Magento?
(I've never used Magento, to clarify)
 
Magento what was that? this shopping system right?
 
what you'll quickly realize is that there are domain specializations within domain specializations and it becomes a fractalline clusterfuck of complexity
yeah an ecommerce framework thingy
 
I think it does since it all builds up on the fundamentals
 
9:21 AM
bingo
at least
the fundamentals part
 
if you know javascript then learning jquery will be a breeze
 
people who hire specialists, however, don't hire people simply for fundamentals
 
@Demorus novice is a noob that can google
 
i liked it better with the typo
 
replace magento with libsodium, same question applies :P
 
9:23 AM
if I know the basics (conditionals, loops, etc) and basic mysql queries...like being able to build a simple social network with basic security measures then what level am I?
 
do you know what a prepared statement is? :)
 
yes
 
... I don't remember ever caring about "levels"
 
lol
me neither
 
I am a noob to OOP though
lol
 
9:24 AM
you're a level 4 paladin
 
of LAWFUL EVIL ALIGNMENT!
 
Well there are a lot of books out there that say "...for beginners" "for....intermediate" "for...experts" etc
 
that is why im asking
 
Demorus: Ignore that, it's marketing speak
"you don't feel confident about your knowledge in $area, buy this book to obtain the feeling of confidence"
 
9:25 AM
 
lol
 
there is literally nothing in any of those books you couldn't learn online
 
basically online is more up to date
no idea what books are for if we have the documentation + good examples
 
don't buy into the "for beginners" crap
 
although 80% of tutorials are rubbish
 
9:26 AM
lol
 
for beginners crap as for`?
 
being too hard or too simple`?
 
it's meaningless
if I say something is "for beginners", I'm literally just trying to target a subset of the market
if I leave it out, I'm going to explain things in approximately the same level of clarity
 
Is it true that programming with php and javascript is for "less intelligent" programmers because it is a scripting language? I feel like web development together with web design gives me so much freedom for creativity and gets the job done faster. As for someone with a weak mathematical skill level it is much easier for me to understand and handle than using trigonometry and other crazy but of course useful concepts.
 
9:33 AM
Phpstorm 1 month trial over :P
Back to NetBeans
 
@AnmolRaghuvanshi You jest, of course.
 
I am still waiting for Atom to fix line-endings, and then I am migrating
 
9:45 AM
@Jimbo which editor do you use I used phpstorm for first time it's pretty good
 
9:59 AM
mhmmm
 
hi all
somebody please help me
0
Q: Where and what changes do I need to make in order to access the PHPMyAdmin home page and MySQL database in following scenario?

user2839497The server is using Ubuntu linux. I've received following information from the system administrator in order to access the MySQL database through PHPMyAdmin : URL: xyzappdb.c83qtqdoejp4.us-east-1.rds.amazonaws.com username: dbuser password: VRQabk DB name: new_db (The above data contains dumm...

 
@JoeWatkins are you here?
 
@AnmolRaghuvanshi PHPstorm. And it's not just an editor. It's an IDE. Notepad++ or Sublime are text editors.
 
what do you think about komodoide.com
 
10:15 AM
@Jimbo what's your idea about Dreamweaver???
 
@Mr.NaViD Dreamweaver is the best one you can get.
 
@Jimbo ok i got it. I think editor and IDE are same just diif name
 
@AnmolRaghuvanshi Nope. Editor != Integrated Development Environment.
 
@Jimbo that was sarcasm right? (dreamweaver)
 
@MarcelBurkhard The sentence you responded to was not sarcasm. The one you intended to (I think) was, of course ;)
 
10:19 AM
guys, is there an efficient way to prevent a user to spam post by setting a timeout via php? lets say once he clicked on a button / submit he has to wait an hour until he can re-submit
 
I could do this with javascript but with php would be far more effective
 
You couldn't do this with javascript
 
@Demorus Store last submitted time in DB, check against that next time post submitted. If < 1 hour, ignore. Also pass result of this check to JavaScript to disable button if so
 
"prevent a user to spam post"
 
10:20 AM
Im thinking of storing the date in my database and then calculating the difference
 
Doesn't stop them from overriding button "disabled" attribute and clicking POST though, it'll still hit your server. You can only not display the button to avoid POST spam, although they could just GET spam, so that would be pointless.
 
cant I disable the php function and remove the button from my dom / replacing it with a dummy?
 
How would you disable the php function?
You either call it or you don't call it
 
I got a voting system in a function. So lets say if hour < 1 then never call the function. Then I could also remove that button
 
You can replace with dummy button sure, but I could just see what the button was beforehand and where it posted to and then cURL a POST request. I don't see what you're trying to achieve is worth your time. Just add a disabled attribute, do your check server side, and that's it
 
10:24 AM
disabled attribute?
 
<input type="button" value="Vote" <?php if (!$allowVote) { ?>disabled="disabled"<?php } ?> />
...and $allowVote would be the result of your calculation
 
The changes you make in the UI (e.g. disabling or removing the button) are only for the user experience - you avoid creating the expectation that the act of submitting the form would do anything. It doesn't actually prevent anyone from submitting anything they like through other means or by modifying the form you gave them. You still need to check the input you receive on the server side.
 
I am actually thinking of really setting the date, then check if the difference between that date and the current one is less than 1 hour. If true then disable my vote function, if false then enable vote function. Then I dynamically replace the method="post" in my form with an empty string if < 1 hour.
might not be the best method but it works for normal users
 
11:08 AM
what is wrong with my code? $present = new DateTime("d");
$row_time['cooldown']->diff($present)->d;
Call to a member function diff() on string weird
 
anybody has any idea about this photo ?
 
which photo?
 
 
Hi, I have a query that selects every entry from a table and then uses mysql_fetch_assoc to print out the id of each of them entries, theres about 73,000 entries, but it is only displaying about 50,000 of them. No errors are shown it just stops processing, can someone help?
 
hey
did you try a foreach loop? or even better maybe a for loop?
you could say until it fetched < 73.000 entires continue fetching
a for loop might force it to fetch all
 
11:24 AM
My current code is.
while ($row = mysql_fetch_assoc($query))
{
    echo 'Username: ' . $row['username'] . ' [ID ' . $row['id'] . '/'.$count.']<br>Password: ' . $row['password'] . '<br>IP Addr:     ' . $row['ip_last'] . '<br><br>';
}
 
do a for loop like:
 
@LiamHardy a for loop is probably not going to solve your problem
 
$row = mysqli_fetch_array($query) then for ($row = 0; $row < $entries; $row++) { your echo }
 
It is always loading 55213/77307
 
use mysqli instead of mysql as the latter stops working next years when php 7 is released
 
11:27 AM
@Demorus stop giving shitty advice please.
 
the for loop?
 
So this can't be solved?
 
and mysqli "because mysql stops working"
@LiamHardy have you run the same statement in workbench/phpmyadmin or the like and retrieved all rows?
 
@Demorus I am aware MySQL id deprecated.
 
11:28 AM
if mysql somehow adds a limit then he could enforce the fetching of all entires with a for loop
 
@Demorus has that ever happened to you? I have never heard of such thing
 
well if he upgrades to php 7 then I guess since they said they will remove mysql
 
@Demorus yeah but WHY did they remove it? !
 
@LiamHardy always exactly the same number is weird...I was going to say that maybe it's running out of memory or time. But if it's always exactly the same number.....both of those sound unlikely. I'm trying to think what MySQL settings would affect it.
 
user1804599
11:30 AM
Is there some PHP library that sets up an ErrorException-throwing error handler, and makes sure uncaught exceptions result in 500 instead of 200 status codes, and perhaps more good practices?
 
here the link and so many other links
This doesn't mean you will no longer be able to use the MySQL database with PHP (from source)
 
@Demorus you should use parameterized queries for security reasons, mysql_* doesn't allow that, hence it was removed in php 7
 
ya, that is what I read. Im glad they do remove it
 
user1804599
Maybe filp.github.io/whoops is good.
 
So anyone got a solution for Liam Hardy?
 
11:33 AM
I asked him something and I haven't received an answer yet
 
I thought a for loop would work to enforce the fetching of all rows
oh
 
Is there a quick query for re-organising id's? I noticed it was my auto_increment messing up...
my ids basically jump from 60, to 190
 
@Demorus pls... stop
 
I never used it though, still gathering experience XD
 
@Demorus he wants to reassign ids, not order the ouput of his query
 
11:34 AM
I guess a quick php script could do this.
 
ya just re-read
 
but was hoping their was a mysql query before hand :P
 
would like to know this as well
 
@LiamHardy copy the table (structure only) and then use insert .. select dev.mysql.com/doc/refman/5.1/en/insert-select.html
 
would come in handly :D
 
11:35 AM
@elyse I don't know of a standalone good library, there probably is one - but you could also steal this: setting up the 3 functions which are defined here.
 
Is PHP a good language to create web applications?(Just a random question, pls no offense)
 
@LiamHardy after that you can rename the old table or delete it and rename the new one to the old name
@HugoCornel yes
 
I worked out this code fixed my issue :P
ALTER TABLE tablename DROP id

ALTER TABLE tablename ADD id INT NOT NULL AUTO_INCREMENT FIRST, ADD PRIMARY KEY (id), AUTO_INCREMENT=1
 
thanks I might learn it later :)
 
@HugoCornel as good as any other major language.
 
user1804599
11:37 AM
Also, is there some recommended way to install PHP on Windows for development? I downloaded the PHP binaries and put them in PATH but I can't find out how to install the OpenSSL extension.
 
@LiamHardy "Is there a quick query for re-organising id's?" don't ever do that. It is correct for there to be 'missing' IDs when transactions fail and are rollbock. Manually altering primary keys is just a terrible idea.
 
@elyse actually, the recommended way is to use VirtualBox or some other virtualization solution.
 
user1804599
bleh
 
@elyse Through the windows installer, which allows installing extensions....but yeah. Vagrant all the things.
 
do you guys use phpmyadmin or command line?
 
user1804599
11:41 AM
@Demorus Yes.
 
I started noticing how much stronger the command line is.
 
@Stricted am now
I don't do IDE's, I'm a dinosaur ...
 
is there a limit on how much we can fetch from the database when iterating with a loop?
 
@Trowski I am crap at naming function /cc @DanLugg . Seriously though, the original reason was that closures are an implementation detail....which I thought should be abstracted away. However...I now think that the RFC is an easier 'sell' if it is to make things into closures, rather than generic callables.
 
@Demorus well, memory limit, execution time, and the amount of rows returned by the query
 
11:45 AM
But it's weird that it's exactly the same number of rows each time....still waiting to hear if running the query from mysql directly gives the correct number of rows.
 
@Danack that problem is already solved I think, his ids were off, he reassigned id values
@Danack he probably thought MAX(ID) == number of rows
 
@Danack This is one of the cases where I'd prefer a language construct over a function
And get away from the whole "arbitrary magic values acting as callables"
 
@NikiC can you put into words why? (not against it, just have no idea how to sell it to other people. And yeah....I was going to talk to you about that. It seems there could be quite large performance gains by making callable be an actual type as opposed to just 'some random things that could be callable', particular on the return type and parameter type.....as currently it needs to be checked each time a 'callable' is passed, right?
 
user1804599
Guess I won't use PHP then.
 
there is a windows installer ...
don't think there's many windows guys in here ...
 
11:51 AM
I'm on windows. What's the problem?
 
@elyse you can use xampp or wamp
 
@Danack It would still just return a closure
 
@NikiC @elyse having problems running on windows
omg, there is no installer anymore ...
 
Checking for a closure should be fast
@JoeWatkins @elyse What's the issue? You just extract a zip and done?
 
user1804599
@NikiC Can't install Composer because openssl extension is missing.
 
user1804599
11:52 AM
@NikiC Yes!
 
user1804599
So now I'm trying D and vibe.d makes the compiler run out of memory. :D
 
@elyse Create a php.ini with extension=ext\php_openssl.dll in it
 
user1804599
awesome
 
And the php.ini location is ... C:\Windows. Some genius thought that would be a good idea
 
terrible
 
11:53 AM
huh? mine is in C:\php
 
@elyse there is a workaround: stackoverflow.com/a/18638796/982075 it uses https instead of ssh basically
 
@PaulCrovella It is? How did you get it there?
They should have just allowed sticking the php.ini in the directory of the excecutable
 
like normal
 
@NikiC just extracted the php zip there and it works out of the box
 
Does that mean you can use the directory of the executable?
Or is C:\php special?
 
11:57 AM
the former, it's not special
 
bah
Then why the f* is the path not shown in the ini path list?
 
hell if I know
 
I know, I know .... it's because
 
@NikiC where would you put it though?
 
12:14 PM
@bwoebi C:\Program Files\PHP.
 
@kelunik Program Files isn't for pure binaries, rather for applications in my experience?
 
How many pure binaries do you usually use on Windows? I think any program should go there, not just "applications"
 
C:\User\%NAME%\AppData or something like that, right ?
or just have the same rules as php everywhere else ...
 
Wow, Twitter finally reintroduced the scroll to start when I click on "start".
@JoeWatkins That's just for your user configuration.
 
isn't that what php.ini is ?
 
12:23 PM
I think a global and per-user configuration makes sense.
@JoeWatkins wubi.exe?
 
not even surprised ...
sounds quite horrible actually ...
 
Hi,can I ask some help I am confuse in using spl_autoload_register I always get error "Warning: require(myapp\ooemployee\classes\Employee.php): failed to open stream: No such file or directory in C:\wamp\www\ooemployee\init.php on line 13"
 
@jemz With your current file paths, you have to strip myapp\ooemployee before requiring it.
 
@jemz recommendation: always use full path, when including files
 
how can I stripped ?
@tereško, like including the folder classes like this
spl_autoload_register(function ($class) {
echo $class;
include "classes\\".$class. '.php';
});
 
12:33 PM
I means, making sure that include path starts from disk's root
use __DIR__ or some variable
that way you check, whether path, that your code assembles, matches the reality
 
it will include the myapp C:\wamp\www\ooemployeemyapp\ooemployee\classes\Employee.php
spl_autoload_register(function ($class) {
echo __DIR__.$class. '.php';
});
 
12:53 PM
@tereško, how can I stripped this "myapp\ooemployee" ?
 
1:21 PM
Guys how can I say ON NOT in mysql
Trying to filter out blocked user posts
 
1:48 PM
Dropbox are complete bell-ends. Won't let me login because Safari auto-inserted my username and password and dropbox say "it's an automated attempt, contact support". I was rather angry in my email, letting them know that whatever product manager came up with that idea is a complete shit pot.
 
@Jimbo dropbox website is just giving me internal server errors right now, but has never had a problem with chrome automatically filling in my username and password. It's entirely possible you experienced a bug rather than deliberate design decision.
 
Well, whatever. THEY WILL HAVE MY WRATH
goes back to drinking cup of tea
 
2:10 PM
would this work to run a specific function? and what about updating variables via ajax?
url: "php/core/voting_system.php?<?php run(); ?>",
@Jimbo what do you say?
 
2:23 PM
@Demorus wut
 
@Abe Does that the same as github.com/xthexder/wide-github ?
 
Abe
i imagine yes
i didn't try though
 
But the other thing is an extension, there's always some delay until it's wide
github.com/xthexder/wide-github/blob/master/wide-github.user.js Yes, don't know why it's using JS for that..
 
Abe
yeah writing css with js is a bit of a mess :P
 
2:34 PM
what called "the wife of my uncle" in english ? "aunt" ?
 
@Sajad yes, "aunt"
 
@PaulCrovella tnx
 
well ... these days the answer might be "uncle too"
 
@tereško that'd be the uncle's husband
 
@tereško sarcasm ?
 
2:45 PM
For the lulz
That's it. I quit. Tomorrow I'm going to retract all of my RFCs, and wish PHP a good life. I can't deal with this any more... #cya
 
Abe
@Jimbo shhhhhhhh
 
and
Voting is opened on the Random Functions Throwing Exceptions RFC targeting 7.0: https://wiki.php.net/rfc/random-function-exceptions Cast your vote today!
:D
 
Abe
phplove > ragequit
luckily he didn't actually leave :D
 
PHP is like a prostitute. Sucks your soul out yet you can't help but keep going back for more because of the people.
 
Abe
haha
that's accurate
 
2:50 PM
Jimbo haha
 
a prostitute talented enough to suck out your soul would be worth it on her own
 
LOL
that is fun alot
guys are html and json interchangable?
 
Abe
??
depends on your definition of interchangeable
 
for example in json it does not seem to recognize my variable
if I change it to "html" then yes
 
do you know what json is, @Demorus?
 
2:54 PM
I know it is not my nabor Jason
to be honest no and yes. I read that json is somewhat of a new standard instead of using xml and html
 
@Demorus when answer to that type of question is "no", it should be followed by "googling it now"
 
ok one is for data and the other for UI stuff
like direct printing on html
 
you should learn using console.log() in javascript
 
For the sake of consistency I thought I could just use json
I know about it but never used it other than when I did codecademy
 
@Orangepill validation upfront and transaction failure later
 
3:01 PM
for example here they talk about using json reddit.com/r/PHP/comments/1j4dzg/…
it seems for the sake of consistency it is better. Performance might go slightly down
 
3:14 PM
Is there any way to access directly a function that exists on the page instead of linking to an external .php via "url:"?
 
@Demorus wut
 
@PaulCrovella accessing a function that exists on the same page as the ajax that is trying to call it
 
145
Q: What is the difference between client-side and server-side programming?

decezeI have this code: <script type="text/javascript"> var foo = 'bar'; <?php file_put_contents('foo.txt', ' + foo + '); ?> var baz = <?php echo 42; ?>; alert(baz); </script> Why does this not write "bar" into my text file, but alerts "42"?

@Demorus ^
 
thanks!
It is always so hard when you start with this kind of stuff since you never know how or where to search...especially when you are not familiar with all the terminology associated with my issues
 
getting a handle on how things operate is important
 
3:24 PM
indeed
But you know, I am very careful lately as there is a lot of rubbish out there. I noticed when I learned mysql 3 weeks ago only to find out 1 week after that it is a deprecated extension and that mysqli and pdo should be used instead. I had to correct so many mistakes due to bad tutorials articles that im scared and have no idea where to get my information from
The biggest issue is when I post a question in stackoverflow. People really just tend to give me a solution instead of actually teaching or pointing out the core problem so that they can farm points
 
@Jimbo was there an internals announcement at all? (about vote opening)
@ircmaxell you forgot to send an email about vote start to internals ...
 
@tereško one question, we were talking about pdo yesterday, and you told:
yesterday, by tereško
PDOStatement is not an array
and I said: yes it is ...
why you did not tell again no it is not ??
 
what would be the point?
 
@PaulCrovella Starring just so people don't see context :D trololol
 
3:37 PM
@tereško I want to know you had any doubt?
 
"doubt" regarding what exactly?
 
"PDOStatement is not an array"
 
objects are not arrays .. what's there to doubt?
 
Why did not you insist?
look, I have a friend, I asked him a question, and he gave me a answer
and I told him your answer is wrong
(exactly like you)
 
@Sajad tereško has been incredibly patient in helping you. If you don't listen to him it's your problem, not his. Don't insist on an argument to beat through your willful ignorance.
 
3:39 PM
ok, now I am confused
 
and he don't tell me nothing anymore !
ok never mind !
@PaulCrovella tnx for your attention :-)
 
@Sajad because you were attempting to use an object as if it was an array (in array_slice() function)
since you did not believe me, I didn't see any point in trying to elaborate
because you would have seen your mistake in few minutes anyway
 
so you was waiting to I found my mistake yes ? ok !
 
learning from your own mistakes is ALWAYS better
 
Actually, learning from other people's mistakes is best.....but he doesn't seem that interested in doing that either..
 
3:43 PM
yes it is, but if I say it is 1, and you tell no, it is 2, (If I be confident that is it 1) I will tell you again: you are wring, it is 1 !!
 
@Sajad you should learn to find things out for yourself and then ask question when you are confused. Stop looking to be spoon-fed, it won't help you. You are very privileged to have gotten Tereško's patience.
 
@iroegbu ok
 
4:01 PM
I think you love this sentence: I give up
 
May 31 '12 at 10:22, by tereško
.. you are a shame for India
LMFAO
 
4:27 PM
o.O
 
well, he's not wrong
 
Hmm, @DaveRandom libdns is sending malformed packets…
 
hmm any idea what is wrong with this? jsfiddle.net/c9bm5qdk
it seems to only store the last case
 
4:47 PM
@bwoebi Probably has something to do with network byte order being wrong?
 
nope
It's not the library which is wrong…
 
What is it then?
 
DNS over TCP needs to specify the length
so, UDP was fine
but as soon as I tried to request via tcp, it all failed
^^
 
Oh wait, which libdns are we talking about here exactly?
 
4:57 PM
ah, makes sense now :)
 
Mornin'!
 

« first day (1779 days earlier)      last day (3166 days later) »