« first day (1075 days earlier)      last day (3864 days later) » 

12:02 AM
I'd go with session, or you could use reCaptcha and help digitize books
 
12:22 AM
mornin'
 
12:34 AM
I am leaving, not because of you xD
 
m59
1:02 AM
with a rest api, let's say I have this:
api/users
api/articles
etc
should I have a directory with users.php and articles.php
and whichever collection is requested, include that file to deal with getting it?
 
1:15 AM
@m59 No - you should almost certainly have one entry point (i.e. file) to your application, that can route requests to where they need to go.
Considering teaming up with @eparillon to criticize people's dumb startup ideas for a fee. It's Realism As A Service™!
 
1:43 AM
hi
anyone know how to convert .bmp to .png in PHP?
 
1:54 AM
@ShimaMdz do you have wither GD or ImageMagick extension installed ?
 
2:05 AM
@joschua011 thank you
 
2:20 AM
@tereško : everyone stores passwords in MD5 so why not SHA1 ... some bcrypt shiat is not used by anyone in real life. — Flash Thunder 13 mins ago
that's quite a retarded thing to say .. even if he's trying to sound "funny"
 
I thought he was being serious... O_0
 
@tereško you'd be surprised reddit.com/r/explainlikeimfive/comments/1f869t/… (posted 3 months ago)
 
.. reddit .. /r/PHP ... I'm sad before even clicking it
 
2:37 AM
How would I create something that you see on top of the page here: bleacherreport.com/nba
 
step 1: learn javascript
 
3:10 AM
> There's no other word or combination of words[1] that will result in that same hash.
^ isn't that absolutely false? re: any hashing algorithm
 
^ to their knowledge.
 
It seems to me key collisions if a finitely sized hash is a mathematical certainty
 
Yes, 1e-20 is still bigger than 0 :)
 
internet makes me sad
 
@teresko You just need to use if for more pictures of kittens... that will make you happy :)
Correct me if I'm wrong but mathematically speaking ANY hashing algorithm theoretically will produce an infinite number of collisions.
^ cure for internet sadness
 
3:20 AM
that just makes me want to start owning a cat and not interact with humans
 
so what you meant was "humans make you sad"
 
essentially, yeah
 
I can't argue with that
 
Just like /r/PHP makes people sad.
 
3:33 AM
@Orangepill but what about quantum hashing? O_O
 
@crypticツ So far there hasn't been any reports of a quantum key collisions afaik :p
 
Damn, everyone sees our country as drugs lol
 
@crypticツ You bike 60+ miles in one go and throw around terms like quantum hashing .... you are my new hero.
 
But of course, quantum hashing can be undone by quantum rainbows.
 
3:43 AM
You need to do some heavy drugs to effectively use quantum rainbows.
 
@Orangepill nope .. all-natural shrooms
 
someone is squatting on fuck.it ... if I owned that domain I would have to put something there.
 
You could also try to take fuckth.at :)
Something is going on with Github; it does odd things with Chrome.
Session regeneration on IP changes ... never thought of that :)
 
4:15 AM
that sounds more like something you should do for cache
 
In what way?
 
emm ... @LeviMorrison , did you do something to the php.net page, because the "new design" in uk.php.net is missing the css for "intro block"
also ... what is the relation between electricity and downloads ? =P
 
@tereško I haven't touched it in at least a week.
@tereško None, but that symbol is infinitely better than what was there before :)
I'm very improvement oriented. I'm not a radical redesigner.
I find something better than what is there and make it happen.
 
My brother-in-law's talents will never cease to amaze me.
 
ok ... so , tried to reproduce the problem in IE
Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/6.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E)
Timestamp: Wed, 25 Sep 2013 04:19:37 UTC


Message: 'jQuery' is undefined
Line: 395
Char: 1
Code: 0
URI: uk.php.net
this is what I got
 
4:21 AM
Your browser doesn't ship with jQuery?
 
and yes, the "new design" seems to be broken on uk.php.net
also, you will probably need to move feedback button to the right side, @LeviMorrison , because of how IE10+ implements scrollbar
 
4:51 AM
@tereško Should this be closed ?
 
m59
I feel so trolled.
If index.php includes x.php
and x.php includes y/z.php
structure should be root/index.php
 
@YogeshSuthar imho, yes
 
m59
root/x.php
root/y/z.php
 
@tereško Voted. :)
 
m59
wait that isn't right.
index.php includes foo/x.php
x.php includes foo/bar/y.php
oh my
it's worse
 
4:55 AM
index.php, foo/x.php and foo/foo/bar/y.php
 
m59
Dooohh I figured it out
nm, what the heck!!!
 
also, don't put your code in document root
 
m59
both work??
include "modes/rest/{$this->collection}.php"; and include "rest/{$this->collection}.php";
how can both be accessing the same file?
 
is modes in include path?
 
m59
it ought to be the first one
yet, it's still finding the file with the second one
 
4:59 AM
maybe because file really IS there
 
m59
oh
that's trolly
include actually does search
I never knew that
and it's also pretty lame
 
yep... include respect the include_path ...
 
m59
If someone can't use the correct path, it should fail, not search
 
If someone can't use the correct path, they shouldn't add so many paths in the include_path setting :)
 
m59
oh so I can turn that off
 
5:05 AM
Or use absolute paths.
 
can you guess what happens when you do preg_replace( '#foo\\bar#' , '--' , 'foo\\bar' )?
completely nothing
 
probably nothing? Oh, right ... what you said :)
 
You didn't know that `\` needs a double escape? :)
Perhaps you could propose that PHP adopts a // syntax for regular expressions :)
 
yes , I do know, but the whole situation seems like PHP is taking a piss
in the string 'test\\test\\test' I want to replace the first 'test'
 
5:15 AM
Same thing for JavaScript if you use the new RegExp().
 
to do that I cannot use srt_replace
wait .. no ... actually can
 
So '/^[^\\\\]+/'?
 
no, I will just do str_replace( $token . 'test' , $replacement , $token . 'test\\test\\test')'
 
That doesn't sound like the problem you described earlier, but whatever.
 
don't bother to follow .. i was trying to apply broken fix to misdefined problem
 
5:25 AM
What do people talk about here on chat?
Like when will php 5.5 come out?
 
well .. it did, like 3 month ago
 
lolzzz
 
You mean when it declares to be gay?
 
damn, well when will php 5S come out...
lol that was supposed to be an apple joke
 
uses sony
 
5:27 AM
google it, OR ask Steve Jobs.
 
You must be a professional comedian, I was literally on the floor laughing.
 
@YogeshSuthar there are more polite ways to tell other to "kill yourself"
 
I hope you aren't being sarcastic, you just made me feel really good about myself
 
hahaha
 
anyways .. has anyone stumbled upon a good abstraction for uploaded files ?
 
5:29 AM
Are the form history saved... or is what we typed here deleted?
chat history*
 
I would really like to steal the API, because thinking is hard and I cannot find the pencil sharpener
@Arian it is deleted only if you delete it before edit-window closes ... and yes, there is a time-window in which you can edit your previous messages here
 
There are other answers? — sunysen 1 min ago
lolol
 
@tereško otherwise stack overflow keeps a history of all these convo's?
 
yes
 
5:32 AM
For all eternity.
 
also, there are no "private rooms" in this chat , all (almost) 40k rooms are readable for anyone
 
damn, my joke will forever be here for eternity... kind of makes me regret my first words I said in chat... lol but I guess it's security through obscurity, overwhelming amounts of data.
 
no, there is search available
 
It could be worse, it could be starred.
 
@tereško I swear there is a search bar in the top right of the screen.
@Jack what does starring someones chat post do?
 
5:36 AM
it's for higlighting message that might be useful or interesting to others
 
That description isn't entirely accurate judging from what's on the right side -->
 
room-owners can also "pin" stars (the white stars), which then stay up for up to 2 weeks on the top of that panel on the right
well .. people star all sorts of crap and on my laptop I can see only the upper 3
 
lol what is localhost is starred
Star this for no reason!
 
It reminds us of the foot in mouth remarks people make.
 
5:43 AM
that really should have been handled by JS room
 
Meh
Do they even know what cv-pls is?
 
I really want a gold badge... But I can't think of any popular questions to ask, that everyone wants answers too...
 
Hi @tereško, I am a zendframework newbe and I have a question in my mind. Will you please tell me that if it is good to use Doctrine or not? If so, do you know any special good basic toturials ? thanks
 
and I am not fast enough to type the answer to get a accepted answer
 
@Arian Do a thousand reviews.
 
5:45 AM
what is a review?
I dont think I have the rep to do that
 
OR thousand CV.
 
I think last time I answered question that was less then 3 hours old was in 2011th .. you do not need to be the first, just don't try to answer all the "hello world" crap
 
2011th?
 
what does the tag delv-pls mean... does that mean it wants people to review it?
 
5:47 AM
nor everyone here is a professional rep-whore, @Jack
that covered in "meaning" link
 
delv means post may need to be deleted
wow, now I am curious if any of my questions have been posted on here...
 
m59
What's a good status code if someone tries to delete a collection that can't be deleted?
 
^oops I saw @hakre already commented
why isn't stackoverflow a subdomain to stackexchange... it seems every other site that stack exchange makes is just subdomained
 
m59
doh 403 I think
 
5:55 AM
@tereško I think that remark was quite unnecessary.
 
=P
@Arian because stackoverflow existed before stackexchange
same goes for serverfault and superuser sites
 
> if you want secure communication, don't use the internet.
haa
 
if you want secure communication, kill the one you passed the message to, it will guarantee there will be no leaks.... :/
 
or use dual channel quantum-entanglement for data transfer
 
Yeah, that will do it.
 
damn @hakre how do you find all these questions that need review so quickly... you're amazing at this!
 
@hakre , do you thing you will get 1 or 2 revenge votes ?
 
@tereško for what? you mean downvotes?
 
yes
and if you too smart, write a good answer to this question... we are learning, and if you do not going to help other to learn, your not doing nothing good... just provide a good explain. — bruno.karklis 1 min ago
you can actually hear England bleeding
 
6:17 AM
yeah, it's hardly hard.
but learning is always hard.
it's doing real work.
 
user652649
 
user652649
morning xD
 
Any idea how to fix 500 internal server error? I just added 1 more rewriting rule to my htaccess file and this came up
now, when I uploaded the same file after reversing the changes, this shit says the same thing, cleared the cache, cleared cookies, reverted the file to the previous state, uploaded htaccess using ascii from ftp
 
Stop using rewrite rules.
 
user652649
@Mr.Alien error_log
 
6:23 AM
no error log, @Jack works if I get rid of htaccess, but I need to get rid of php extension for seo purpose
 
There are better ways to get "nice" url's
 
wtf, even this simple thing doesn't work

DirectoryIndex index.php

IndexIgnore *
I have these 2 rules in htaccess, still, 500, but if I delete htaccess, the site homepage loads fine
 
@Mr.Alien Check the AllowOverride settings.
 
@Jack cool, wait
@Jack that needs change in the ini or can I override the setting using htaccess?
 
What ini?
The setting is controlled by httpd.conf itself.
 
6:28 AM
but I didn't got 1 thing, how it worked first, and not now, if there's some issue, it shouldn't work at first place
@Jack sorry, I meant the config file and not php ini
 
Simple, most likely someone changed the web server configuration.
Is it your own server?
 
@Jack no, i downloaded, changed, uploaded, bam, 500
and when I reverted back, again, same error, and nope, it's client
 
Better make some phone calls then, and not having an error_log is just plain absurd.
 
Morning.
 
@Jack yea, am not getting any error log, now more funny thing is, I commented each and every line in htaccess, using #, and than too I am getting the same error
 
6:34 AM
"your not doing nothing good" double negation (or whatever it's called) really hurts my brain sometimes.
 
@Leri heya, m,o,r,n,i,n
 
Good morning! :-)
 
@Leri It's bad practice in code too .... if (!$notEmpty) { ... }
 
@Leri funnily enough, that sentence translated directly to latvian sounds perfectly fine to me, but in english it makes me cringe
 
Hy everybody
anybody knows about farecompare.com
 
6:37 AM
@Mr.Alien It's in German? :)
 
Are there people here working with an arduino?
 
@Jack yes, but did you see, url rules are just perfect, commenting doesn't work, but the moment I just place an empty htaccess, it fails, see, just go to that website in a minute
done, you can checl
check
 
It's a thing of beauty.
 
I don't even know what Arduino is .. sound like a name for some fashion designer
 
Robotics baby!
 
6:39 AM
@tereško I set everything up. It's working now :)
 
@tereško hardware
 
@CvetomirLazarov I hope you know, that I have no idea what you are talking about oÕ
 
I guess I don't need to worry, this is the mistake of hosting service and not mine
 
@tereško Yeah, I guessed so :D
I am talking about the nginx <-> netbeans shit that was failing to work
 
oh .. that thing
 
6:41 AM
yeah
 
anybody knows about flight/hotel reservation system in php
 
I moved the html folder and made it per site
it's no longer in /usr/share/nginx/html
it's not per site and it's not in that directory
it's now in /srv/www/sitename.domain/public_html
 
sounds reasonable
 
and in public_html I only have my index.php file and the directories with images/css/js
 
6:42 AM
@Burhan those are normally accessed via SOAP / XML REST, so not written in PHP.
 
@hakre yes i know , but can you tell me any api except expedia which is free
 
I yet have to see an airline that uses php for their backend :)
 
GOOOODmorning!
 
@Jack Unless it's javascript - !! :p
 
@Burhan Non I'm personally aware of. From time to time users having a problem with some APIs asks questions on SO, so you can try to dig those up and see which services they are using - probably you spot another free one?
Put SOAP and XML in your search as well as "reservation" as it's often used with those systems.
Many questions are about WSDL, too. Or posting XML with curl.
Let me see if I can spot the last one I was editing / answering of those...
 
6:47 AM
hello gm
dude
 
@hakre i want to create a site like farecompare.com but i dont know where it gets data
 
iwant to need install Authorize.net - CIM Payemnt getway in my x-cart platinum 4.5.5 version sites. i have use BCS - Authorize.net CIM Modules but i can not setup the this modules
 
@Jack lol worked :D
 
Ask Authorize.net @Chetan
 
Can I join this channel via IRC? Or is that not possible?
 
6:49 AM
@Chetan I think you aimed for c# room and accidentally landed here
 
I created a fresh .htaccess, ported all the rules from the old one to the new one, and boom, works works muhahaha
 
@tereško sucks that he missed ..
 
What do you mean by fresh?
 
Morning Folks!
 
but i will perches the modules for BCS - bcsengineering.com sites
 
6:50 AM
we ain't selling
 
@Jack created a new htaccess on my local, I downloaded the htaccess which was on the server, copy pasted the rules from one to another.. and reuploaded the new one, it worked
 
@Chetan You asked that same question about 10x in this room yesterday. People told you they couln't help. You posted your question on stackoverflow, which was closed because it isn't about code, but about support on a commercial project. GIVE IT UP!
 
@Mr.Alien Wasn't that what you had already done before?
 
Hoe to install Authorie.net -CIM Payment getway modules in X-cart Platinum version...?
 
@Jack nope, I downloaded the file, I modified, re uploaded, didnt worked, than I reverted the change, re uploaded, didnt worked, reuploaded a blank htaccess, didn't worked, renamed that to txt.htaccess didnt't worked, made a new file and it worked
 
6:52 AM
i have put the same Question for stackoverflow
 
And another small icon is added to the list.
 
... *prays for a guy with a ban-hammer.."
 
but no ans...
 
@Mr.Alien That's just bizarre.
 
@Jack seriously.. that's insane, I dont understand what was the reason
 
6:53 AM
This guy just leeched authorize.net software from somewhere and can't get it to work, but can't contact their support staff because he didn't actually buy the product .. (atleast, thats my guess..)
 
Authorize is a service, actually. Afaik they don't sell products.
 
@Burhan Well your fishing in rough waters. Either sites have a working system in the backend then they normally don't share it for free because it's their money stream. Sometimes (!) they share an API but only to selected partners for dedicated reasons, e.g. directed search engine content providing (a.k.a. google spamming).
 
What's the best way to debug PHP scripts ?
 
@BharatKhatri The best way is to have tests so that you normally don't need to debug.
 
@BharatKhatri xdebug
 
6:55 AM
Not writing bugs in the first place.
 
And in case you need to debug, it's easier with tests.
 
preg_grep("/(104|106|75)/", array(75));
I want to push 104, 106, 75 to an array(say $match = array(104,106,75)), How to get the above functionality using $match? Thanks.
 
@Jack If you would be so kind to explain me in two minutes how to write bug-free code, that would be interesting :)
 
@Leri I'll try this out. Thanks !
 
@BharatKhatri which IDE are you using?
 
6:56 AM
@Jack this what you shared is used by joomla I guess
 
@hakre I use vim.
 
@hakre So any idea where i start
 
@BharatKhatri There is a plugin that supports it IIRC. But don't know for sure. See as well: github.com/tobyS/toby.vim - schlitt.info/opensource/blog/…
 
@hakre I could tell you, but then I'd have to kill you.
 
moin
 
6:59 AM
Gutentag.
 
@Jack Well, we can negotiate that you have to but I kill you first, so I have no fear. So ... :P
Einen wunderschönen guten Morgen!
 
@hakre I'll look into it.
 
@hakre Mutual destruction sounds like a great plan :)
 

« first day (1075 days earlier)      last day (3864 days later) »