« first day (1823 days earlier)      last day (3110 days later) » 

12:00 AM
@marcio in particular see Zend/tests/nested_method_and_function.phpt
 
@bwoebi turns out it's informative enough but it was reported as a bug bugs.php.net/bug.php?id=70376
 
Hey guys...trying to get information about best practices...what's the deal with keeping php files above the webroot? Trying to find a detailed explanation and advice related to that
 
@brcolow usually in case of wrong server configuration you won't leak your .php files as plain text
 
@marcio Thanks, put a NaB on it.
 
@bwoebi you could also say it's been like this since 5.4
ty
 
12:04 AM
(bug database tidying ftw)
@marcio well no… historical reasons are just a cheap excuse, except when there's a very real BC break.
 
I'm actually tempted to propose this bugs.php.net/bug.php?id=70236 :>
 
@marcio and do you do that practice?
 
@marcio really?
 
@marcio
+1
 
Don't plus one that crap.
 
12:07 AM
@marcio There's a nice laser gun in my head… firing blue and red pulses… strong enough to fuse targeted atoms…
 
@Sherif just imagine how the mailing list thread would be
 
@marcio I'd rather not.
 
@Sherif well, it'd be a nice honeypot…
just like that ingenious exists() discussion was…
 
@bwoebi just that is enough reason to propose, it's a one char and we would still get 10 alternative syntax ideas.
 
On account of the lack of honeypots we have already?
 
12:09 AM
@Sherif well, yeah… currently there's none.
 
that looks very horrible
 
@marcio we really should reduce it to zero chars…
 
@bwoebi Since when does the well ever run dry in php-internals?
 
like $a + ->b;
 
@marcio Just do proper scope chaining like other languages and you don't need $this at all. You just do $prop and if it doesn't exist in the local scope it checks the parent, and then its parent, and so on.
 
12:10 AM
^^ is what I would expect
 
@LeviMorrison Yes, we definitely need more ambiguous magic like that in PHP.
 
for some reason, I also don't like "function" within classes...
 
@LeviMorrison oh, god no. No, please, no scope chaining.
 
Might as well call it javascript.
 
right… that's really one of the big annoyances of JS.
It's okayish in C as you really only have two scopes, local and global… but… JS…………
 
12:14 AM
this never bothered me in JS
 
Don't you also have a file scope in C?
 
@Sherif you mean static? meh, I barely use it.
 
@bwoebi Yea, just saying.
I don't think anyone really ever uses static in C.
It's really more of the linker making something internal/external anyway.
 
Well, generally, the root of all evil is anyway variable shadowing.
 
We need an axis of evil for code, but Perl told me they will surrender willingly.
 
12:22 AM
Is there something easy I could be missing for why netbeans won't hit any of my breakpoints? I have xdebug installed/enabled. It'll work until the first page finishes rendering, but then nothing after that.
 
Avg. Score: 2.9 ± 1.7
Reproduced: 9 of 13 (69.2%)
^ are the votes in the bug database guaranteed to be unique?
 
@marcio Nope
Because we don't verify accounts
php.net doesn't require you submit any identifying information anywhere
I struggled a lot with this problem when I was writing the user contributed notes voting stuff, unfortunately :/
No one seemed to take a liking to the idea of allowing people to use their Google/Facebook/Twitter accounts to verify.
 
those don't exactly identify people either though.
 
@bwoebi JavaScript is a popular language but it by no means pioneered this concept.
 
@Porlune Well, sure, there's no fool-proof way to uniquely identify a person on the Internet. Anonymity is inherent. But at the very least it allows us to uniquely identify a verified account, which is better than the current method (which is nothing).
 
12:35 AM
And for the record I think it's actually something JavaScript got mostly right - they just have other issues like inherent global scope and don't have lexical scopes.
And this is pretty much what C++ does as well...
 
Block scoping is even worse in my opinion. Keep it simple. local/global you're good.
No need to scope the heck out of every block.
 
@Sherif Very true, which is why I think voting systems should be based on a users "merit". I.e. you should weight votes based on a users site activity.
 
@Porlune How would that work, exactly? What constitutes meritorious user activity?
heh
Voting is a system of consensus, not reputation.
 
@Sherif I think that depends on your own interpretation of what constitutes a valid user interaction with the site that is not likely to be forged.

Consensus cannot be reached when you factor in anonymous use.
 
Yes, but what does merit have to do with identity?
All you're looking to do is verify (to some reasonable extent) that there's a human on the other end. Mostly because you don't want bots spamming your votes.
 
12:45 AM
I say "merit" because merit in this case can be whatever the developer thinks best represents legitimate site use. So if the site were Amazon you could use number of completed purchases to determine a users "merit".
 
What the hell does that accomplish?
I have to buy something to be part of a sensus?
 
Okay, well this isn't productive. It was just one example of many that you could use to measure a users activity.
As for what this accomplishes, it allows the voting logic to apply a weight to each users votes. Fake accounts can be weeded out this way.
 
Over engineering at its finest.
 
so using a weight in a sample is now over engineering? I thought that was basic statistics.
 
I think you're missing the point here. The problem of preventing people from casting duplicate votes is trivially solved by verifying the account. The problem of weeding out spam accounts is another thing entirely. Trying to monitor the user's activity on the site and say that you can derive from that data how worthy their vote should be taken into account of a consensus is just plain over-thinking the problem and is not likely to yield any meaningful results.
That is to say ... doing something like that algorithmically is a waste of time since the benefits do not outweigh the costs. There are much better and simpler solutions for weeding out spam.
You're basically trying to solve two different problems, but because you're focusing the domain on the wrong problem the solution is not as effective as you think it is.
Separation of concerns should definitely be taken into account here.
 
12:56 AM
Funny, because this very site uses that same type of metric to give it's users voting rights... and it didn't require a verification of my account.
stackoverflow measures your activity as a point based system, and gives you permissions to do more things, like cast votes.
So I am having trouble seeing why this system is so flawed..
It seems to work well here, and encourages users to be more active on the site.
 
It's not. What you said is what's flawed. You're conflating two different problems into one.
 
I don't think I've conflated any problems, but rather offered examples where this type of voting system works.
 
@Jimbo I hope I get something ready the same time Aerys will be made public (15th), but I can't promise, busy week.
 
@Porlune The example you gave me was about depicting the weight of a vote based on user activity on the site. Where on StackOverflow does your vote have any more or less of a weight based on your activity? Preventing you from doing something until you have met some predetermined requirement (like verifying your email or something) is not weighing votes differently. It's preventing the action until you've met certain requirements.
conflation
 
.. I think you just want to argue about whether weighting a sample is a worthy cause, while I'm simply offering examples of how a voting system might function without user verification.
 
1:03 AM
Morning's
 
If you think that weight should reach a certain threshold before giving the user different permissions, I think I've made it pretty clear that I agree with that tactic.
 
What you're describing isn't a voting system. You're describing parts of a system that are designed to prevent and mitigate spam.
These are two different things.
 
Again, I'm just offering solutions that help mitigate fake user accounts bent on stuffing the ballot box.
Much in the same way an electoral system works.
 
Right, that's not a voting system. That's an anti-spam system. They aren't the same thing.
 
Where each state (user) has a particular electoral count (weight).
 
1:05 AM
Yes, but that weight is constant. When you drop your ballot in the box they don't say you get 0.5 votes and the guy next to you gets 1.2 votes.
Do they?
 
I'm not here to debate the definition of what constitutes a voting system or a fraud prevention system. Both are necessary for what you are talking about.
 
Fraud?
How'd we get into fraud?
 
And while you see that as conflating two problems, I see it as necessary for a legitimate voting system.
 
It being necessary doesn't change the fact that they are two separate entities appointed different responsibilities. Systems are always depending on each other in any normative programming system.
 
spam votes in this context is fraud. okay this is boring.. I'm going to drop it now.
"In law, fraud is deliberate deception to secure unfair or unlawful gain."
 
1:08 AM
@Porlune Yes, but this is programming. And in the context of programming a fraud-prevention-system means something to a programmer.
Learning to use appropriate names is important for effective communication.
So there's nothing wrong with learning names :)
 
Jargon can mean many things, you simply want to argue about what definitions you'll accept. Can we move on now?
 
I don't want to argue about anything really. I'm merely providing information I felt would benefit your cause. If anything I'm trying to strengthen your argument.
You'd be wise to recognize the difference.
 
I'm frustrated I suppose. If you're being earnest then I apologize.
 
@Porlune I have a theory that frustration within highly technical discussion is ultimately the result of a lack of applied technical knowledge and curiosity.
 
You might very well be right. But I think in this case I'm just very tired and grumpy.
 
1:16 AM
If you aren't curios enough about a particular topic you're not likely to spend a lot of time learning about it and if you don't have enough technical knowledge to apply to that topic you aren't likely to get very far. So the key to avoiding frustration is likely increased technical knowledge and lots of experimentation :)
 
As for technical knowledge, you're accurate. I've only built one voting system before, and it was in perl.
 
Building something doesn't give you much knowledge. Knowledge is passive.
You can learn even when you aren't doing anything.
 
That's fair, to maintain your skill you have to keep practicing.
 
Application just jogs the brain to draw links between what you already know and what you're currently experiencing.
Then new knowledge is formed, but that's deceptive, because people often think that's where they get their knowledge about the thing they're learning.
 
Eh, I learn everything from reruns of the simpsons.
 
1:19 AM
@Porlune They do have a lot of mathematical secrets ;)
 
That's interesting, the humor has always been fairly distinct from other shows.
 
There was a guy that used to write a crazy blog about embedded messages in TV and Movies. Now for some reason I can't find the link.
A lot of it was just conspiracy theorist jumbo babble bullshit, but every now and then he found a really intriguing gem.
They do say the best fiction is based on some fact so...
 
There really are a lot of weird things in tv shows that don't make much sense. In one episode of 30 rock they show the office number Liz has, and it's 666.
I think it's just set designers and writers geeking out though, which is fun.
 
 
3 hours later…
4:42 AM
watching someone try to unfuck their answer by pasting in bits from yours without understanding them, and leaving it butchered in the process anyway, is kinda amusing
 
what happened Paul??
 
so ....
 
moin Joe
 
Just some dude gave an awful answer to a question I'd answered. Code was an absolute mess. Then he started replacing bits of his with bits from mine, leaving it still screwy in the process.
 
yesterday a non-techy friend contacts me on facebook, says he has a guy working with him who is writing his own AI ... obviously I'm interested so I tell him to give him my facebook ...
I can't figure the guy out, he can't seem to string together a sentence I can understand properly, maybe that's because he's much smarter than I am ... so I keep talking to him, he hasn't started writing code for this "AI" project (which sounds more like autonomous robotics), and he says he wrote an operating system years ago ...
I ask if he has the code for that and he says no, then a few hours later he says he found it on a laptop and sends me a zip file
 
4:54 AM
oh god, is this going where i think it's going?
 
I open it, and sure enough it contains what looks like a bare metal kernel implementation with some utilities ... there's a folder named ref in the zip file and it contains HTML ... the code was copied off a tutorial site, the tutorial site is still online
then really late last night, he messages me and says he put it on github ...
 
fwew - I thought it was gonna be that guy who wrote an OS for god
 
not sure if I should say something or not ... should I ?
 
well year ago i also "tried" to make an OS :P i follwed this tutorial brokenthorn.com/Resources/OSDevIndex.html
 
@JoeWatkins what would you say and to who?
 
5:01 AM
the code is taken from a book, not an open source book, and the origin is never mentioned ... that makes me uneasy ...
 
I mean I guess dropping the tutorial author a line pointing out that someone is distributing his code wholesale as their own under the gpl might be a nice heads-up
 
not sure and not sure, just uncomfortable ...
 
but it'd be up to him to decide whether he cares to enforce any copyright complaint
 
@AnmolRaghuvanshi I think quite a lot of people have had a go, I've done OS ones, VM ones, and many others ...
 
as for the ai dude, I'd unfriend him and move on
I need a burrito. back in a bit.
 
5:10 AM
you done your OS and VM by following some tutorials or by yourself
i am curious at that time how OS works and bit C learning.
 
tutorials, or books ...
 
Hi All , can you help me with my JS problem i wanted to have a dynamic scripts that converts like this {youtube,123} but the 123 is dynamic so the return on this is an iframe
 
book or tutorial anything which you prefer
 
is there a lot of work for a ZEND certified developer, or is it just a boilerplate thee days?
 
mornin
 
5:23 AM
you're right, it is after midnight
 
@AnmolRaghuvanshi prefer books actually, there's a billion books on language design ...
 
kk Joe thnks: will give some kick to C again after i learn some PHP
morning teresko
 
@JoeWatkins You know books are so out dated these days, it's hard to know which book is worth buying anymore. I remember when I was trying to write my own kernel and came across all kinds of interesting hardware interrupt problems so I finally forked out a few hundred dollars on some x86 books and about half of them were just useless and/or outdated.
What's that site that supports publishing online for tech
I've come across a few gems there
 
I was asked what I used, some of it was long ago, before online tutorials were really a thing ...
 
5:38 AM
Yea, I'm just saying for most things these days books don't catch up quickly enough. The problem is when you need information that is hard to come by online and you don't know which book to trust.
 
any ideas about earning your zend?
 
Once you get into deep systems level programming online doesn't seem to cut it anymore.
@3.14159265358... Depends. How much PHP code have you written in the last 3 years?
 
I don't know, I'm guessing, but probably 80% of the books I've ever bought were recommended ... like you said I've spent 50 bucks on a book for it to turn out to be useless ... I never take em back though, it might come in handy one day ...
 
i'm getting back into it after a hiatis in the service
 
@3.14159265358... How long of a hiatis?
 
5:41 AM
don't have much of a library any more actually ... I did have, before last year happened ...
 
5 years
looking for a new career in php
 
@JoeWatkins I actually discovered that you can get a lot of those books real cheap on amazon. Lots of college students tend to sell their used books after they're done with them or donate them to shops that sell them on amazon for $1
@3.14159265358... Then I'd say you definitely have a lot of work cut out for you.
ZCE covers every spectrum of PHP. So it's safe to say that if you haven't written any real PHP in the last 5 years, that you'll have a lot of studying and practicing to do.
 
i'm pretty good at PHP though
 
yeah, there's also comparison sites for books, I used to work on one ...
 
It's not hard to pass, it's just fairly comprehensive. So unless you're already very well versed in all parts of PHP it's not trivial to pass.
 
5:43 AM
is there a zend fundimentals test?
is there a sample test out there?
 
Their site has a list of topics covered by the exam.
It's basically 40 multiple choice questions and the test is pass/fail.
There are no grades. You just need to get at least 35 out of 40 questions right, I think.
 
aww
35 should be easy, on a HP basics test at a meetup I got all of them correct
 
am I being trolled here?
 
It's not just basics. They cover 10 very broad topics ranging from basic syntax to functions, to security and i/o features, to database and SQL and OOP.
 
the stars and votes make me think I'm being trolled
 
5:46 AM
lol
 
@3.14159265358... Trust me, if you haven't written any PHP in 5 years rest assured you're wasting your money taking the ZCE without studying first.
 
Hi all. I've identified my competition. But how do I know/figure out their weaknesses? I do lots of research on them, and all I see is great stuff. Yeah sure, there might be a few validation issues with their code but business wise there's nothing i can find. customer service skills all good, clear message in advertising and on theri website, big clients, many clients, etc. I have no idea how to identify weaknesses. :-/ Any ideas?
 
morning
@popshuvit I've identified my competition?
 
If video games have taught me anything, you should be able to spot their weakness by looking for the bright flashing areas.
 
@PaulCrovella I'm not sure I understand.
 
5:54 AM
If you want to be able to spot weakness start with identifying your own weaknesses first.
 
Like the purple globs on Crawmerax
 
@Sherif I've already done that. My weaknesses are; Inexperienced (in comparison to competition), no staff, lack of finances, no clients...
3
 
@popshuvit nice
 
Does your competition have bright purple globs?
 
@popshuvit So how does someone inexperienced, understaffed, and under financed with no clients, have competition to begin with?
Perhaps your weakness is that you're seeking the wrong thing?
You aren't competing with anyone if you aren't even in the game yet.
 
5:57 AM
@Sherif Simple: We're in the same industry. I'm doing the same job. But instead of people coming to me - they're going to my competition because 1) their website's easier to find on google, 2) they may have been referred and 3) who the fuck am I?
 
@popshuvit You don't compete in an industry. You compete in a market.
The competition is about market share. Not similarity of work.
A butcher in London does not compete with a butcher in New York.
 
@Sherif yeah I'm aware of that :)
 
Doesn't sound like it.
 
Then why did I specifically search for web design agencies in the city I reside in?
 
Sometimes the best way to beat someone is to not play. Rather than trying to compete where you can't win why not create a new market?
 
6:00 AM
Because I'm aware that I don't compete with places from far away
 
@popshuvit You still don't get it.
 
@popshuvit outsourcing bro, outsourcing
 
You aren't in the game. Therefore you aren't competing yet. This is typical cart-before-horse thinking. Trying to get customers is one thing. But two businesses trying to compete for the same customer is a totally different story.
 
@NullPoiиteя Outsourcing should be illegal and punishable by repeating 5th grade 1000 times. Outsourcing is why customer service is failing in every industry.
 
Good morning
 
6:03 AM
sigh
 
@popshuvit you still failing to see how business works :)
 
No. I know how business works. That doesn't mean I have to agree with it. There is more than one way to become successful (as I have done in the past - with different work).
 
@hakre morning
 
"I was successful before at something..." is not an argument for "I know what it takes to be successful at something else" BTW
 
What all a businessman need to do is find client and sell them good product and they wont care how and where you make product
its not like being an artist who sell himself
 
6:07 AM
Another way to look at that is "good products sell themselves".
 
or cheap :)
 
0
A: PHP Mocking Final Class

Joe WatkinsSince you mentioned you don't want to use any other framework, you are only leaving yourself one option: uopz uopz is a black magic extension of the runkit-and-scary-stuff genre, intended to help with QA infrastructure. uopz_flags is a function that can modify the flags of functions, methods an...

 
@JoeWatkins wow, TIL
Clearly I haven't been paying attention to some of your other extensions :)
 
As of about 15 minutes ago I am no longer unemployeed :)
 
congrats
 
6:12 AM
tanks :)
 
@Sherif booo
@Orangepill yay
 
@Orangepill congrats \o/
 
@JoeWatkins Hey man, it's not my fault I just never had any use for all your other extensions :/
 
@Orangepill Congrats :)
 
Aside from phpdbg I honestly had no use for the others so I stopped paying attention after a while.
@Orangepill You landed a job in the last 15 minutes?
Or was this in the works and you just got the offer?
 
6:15 AM
I accepted it 15 minutes ago... took a bit longer to get it
this was in the oven for a couple of weeks
 
@Sherif yeah, I try to avoid using uopz myself... despite uopz existing, I still prefer to refactor tests or code, so they don't have to use it ... but it's just not always practical ... scary stuff is scary ...
 
@Orangepill Well, congrats!
 
@Orangepill can you tell us about it ?
Congrats to @Orangepill on the new job :)
27
 
yeah... the position is as a full stack dev at wheniwork.com ...
100% remote... which is cool because it's about an hour drive away.
 
awesome, so you'll still be joining us here every day then ...
 
6:20 AM
@Orangepill so you are working with html/css/js too cool, atleast they told you
 
boo to people who get office jobs and leave us ...
2
 
hi all
I have a question
 
I'll still be arround
 
good :)
 
@JoeWatkins Funny enough I spend more time on here while I'm in the office than while I'm out of the office.
 
6:21 AM
sounds like a good role, is it all php ?
 
hmmm... maybe that says something about how productive I am at work?
 
@sherif that was the same for me...
 
I have a website with apache server setted up. Mysql & php are used.
I need to check every x minutes if there are records in database and, if so, build a pdf and send it by mail (mailing list in db too)
 
I have a hard time believing that chatting diminishes output ... I spend more time here than anyone ... I'm a pretty productive guy ...
 
@Julo0sS look up cron
 
6:23 AM
@Orangepill I spend too much time rebuilding shitty legacy systems that suddenly need to scale to millions for companies that hired all the wrong people. Sometimes I just need to come here and ignore the stupidity for a while :)
 
@sherif same here... but I was the engineer behind the shitty legacy system...
 
you can chat and do five things at the same time ... I'm usually doing that ... one of those things is usually peanut butter sandwiches ...
 
damn it. now you're just making me hungry
 
so is it just peanut butter or do you throw some jelly on there too?
 
if there's jam, it'll go in ... we buy peanut butter in huge quantities, I love the stuff ... also, some days it's all I eat, because it takes two seconds ....
 
6:28 AM
Plus it's both sweet and salty :)
 
@Orangepill what will you be doing?
 
@tereško hey, got that job?
 
not yes
 
we got distracted by talk of sandwiches ... is it php @Orangepill ?
 
but there is another interview round (tomorrow)
 
6:30 AM
that's the third one?
 
yeah
not sure what I think about it
 
you already know which company is it?
 
php .. kohana app initially but they are porting to their own framework.
 
posted on October 13, 2015 by nlecointre

/* by Brezhoneg */

 
@SergeyTelshevsky this one: mintos.com/en
@Orangepill that sounds like a disaster :D
 
6:32 AM
@tereško interesting, I currently work on a loans project too
 
@JoeWatkins that's the one
 
@Orangepill thx
 
Anyone using Lumen?
 
seems like a pretty well done framework imo
 
6:36 AM
@JoeWatkins I actually cannot find anything to bitch about at the first glance
 
uses a few room 11 components... auryn and fastroute
 
@RahulThakur no
 
The domain interface definition is a little rigid imo but other then that seems like it would be good to work with.
 
I was trying out Lumen, is pretty similar to Laravel only a bit lighter.
But I cannot make it handle OPTIONS. I tried everything written on CORS about the issue.
 
@RahulThakur which is why nobody uses it here. Laravel is a piece of crap .. and so is Lumen
 
6:39 AM
So which framework do you use!
 
@tereško That's high praise coming from you.
 
@RahulThakur none. I use composer.
 
@RahulThakur why do you think you need a framework?
 
I mean for beginners in PHP! I don't know much about web dev
 
6:41 AM
You code everything up in vanilla PHP?
 
more reason not to use a framework.
@RahulThakur no... that would be silly... there are hundreds of awesome libraries out there
 
Laravel is very popular! Is it not?
 
@RahulThakur if you are a beginner, you learn the language and not look for some magical framework.
 
@RahulThakur don't bother; this entire room seems to hate it :p
 
Wordpress is popular too
In argumentation theory, an argumentum ad populum (Latin for "appeal to the people") is a fallacious argument that concludes that a proposition is true because many or most people believe it: "If many believe so, it is so." This type of argument is known by several names, including appeal to the masses, appeal to belief, appeal to the majority, appeal to democracy, appeal to popularity, argument by consensus, consensus fallacy, authority of the many, and bandwagon fallacy (also known as a vox populi), and in Latin as argumentum ad numerum ("appeal to the number"), and consensus gentium ("agreement...
 
6:43 AM
frameworks provide architecture... architecture should reflect the problem you are trying to solve
 
@tereško every time you use wordpress or even consider using it, a puppy dies
 
I was under the impression all big projects use Laravel after CodeIgniter !
 
Hi all
 
wordpress is a better framework than laravol
 
can someone answer my question
0
Q: Reading very large (more than 100MB) Excel files

Mubeen1992I'm trying to read a larger than 100MB Excel file using PHPExcel but it crashes while loading the file. I don't need any styling. I tried using: $objReader->setReadDataOnly(true); but it still crashes. Is there any efficient way to read this size of Excel file in PHP?

 
6:44 AM
@RahulThakur yes. The same people who were using codeigniter are now using laravel. That's not something one would describe as "good thing".
 
@tereško the lesser of two evils
CI makes me feel nauseous
 
Okay, so do you think there's ever a situation when Laravel could be useful?
 
@Mubeen1992 you probably need to throw more ram at it..
 
@RahulThakur if you are in a situation where Laravel is useful, you can use any framework. Write your app as classes and couple it to a framework only via controllers
 
@Orangepill I need to read this using php it is working in my system
 
6:46 AM
maybe eloquent if you really want to
 
@RahulThakur yes, when you have few weeks to make a quick project that you will never have to revisit or maintain. It's a good framework for making projects for marketing campaigns.
 
@Mubeen1992 btw how you got 100mb excel file? isnt it insane
 
@Orangepill or a proper database ...
 
@tereško nobody ever writes anything right anyway
 
@Amelia bullshit
 
6:47 AM
@tereško bite me
:3
 
@NullPoiиteя I am downloading from a site and need to import in MYSQL
 
Right now, I'm wrestling with a garguantuan zf2 application where every god damn class is coupled to the service manager
 
@Mubeen1992 you wrote that it crashes. What error do you actually get?
 
Trying to strip everything out so it can use DI correctly
 
@tereško for now I am getting execution error
 
6:49 AM
is it really an excel file, or is it a csv file ?
 
but if I increase execution time then firefox crashes
 
@mubeen1992 the issue is you have to have enough memory available to php to hold the in memory representation of a 100MB excel file for that to work... which is probably going to be about 1GB.
 
@JoeWatkins I am reading both CSV is working but excel file is not
 
@Mubeen1992 can you actually tell us the error message? Or do you intend to dance around the question?
 
you don't need to work with phpexcel at all if it's a csv file
just import it into a proper database ...
 
6:50 AM
@JoeWatkins I am not using phpexcel for CSV file
 
PHPExcel is a pretty memory hungry beast
 
@mubeen1992 you might want to use an external tool to convert the xls file to something you can read without having the whole thing in memory
 
I am using phpexcel for excel file
 
The only solution is to throw more RAM at it or re-write the lib
Or make it a CSV
 
if you regularly find yourself needing to read 100MB excel files in the context of a web request, you're doing it wrong
 
6:51 AM
where are you finding these xls files in 2015 ?
 
@PaulCrovella or need to tell managers to stop uploading excel spreadsheets
 
@Mubeen1992 also increase max execution time
 
4 mins ago, by tereško
@Mubeen1992 you wrote that it crashes. What error do you actually get?
 
@Amelia they can upload whatever they want, that doesn't mean it has to be read and processed by php in the web request
 
@tereško It takes alot of time and then firefox crashes no error thats it
 
6:53 AM
then run the script from CLI, does it work then?
 
@PaulCrovella I need this regularly so is there any right way to do this?
@tereško So no way in PHP?
 
@PaulCrovella you can always reject it and redirect them to a "This is how you export a CSV" tutorial :p
 
@Mubeen1992 run the PHP script from CLI. Does it still have an error or is the problem caused by firefox? For fuck sake!
 
Morning'
 
@Mubeen1992 it's an xy problem - you're only asking about the problem with your attempted solution, not about the problem you're trying to solve with it
 
6:56 AM
@epodax o/
 
@PaulCrovella you are too focused on your hate of Excel
 
Morning o/
 
normal humans use MS Office
learn to fucking deal with it
 
How to handle OPTIONS request?
 
What is the best way of storing a random string in a DB field but without having it already there? So it must be unique.
 
6:57 AM
nah, i'll pass
 
@PaulCrovella I am working on Bigdata
@PaulCrovella I need to download files from one site and upload those files to my site
and import in my Database
 
@Mubeen1992 excel is a pretty shitty format for transferring data...if you can get away from it then it will eliminate a lot of headaches
 

« first day (1823 days earlier)      last day (3110 days later) »