« first day (720 days earlier)      last day (4222 days later) » 

4:00 AM
Anyone ?
 
@ChrisClower @tereško has given at least some references.
 
@chx101 sorry, not my area
 
@Stephane thanks.
 
@Kanth Like what? he answered a simple question with links to buy books. While that might be useful in the longrun, it doesn't answer the question
 
4:02 AM
Is this even for PHP help?
 
Someone asks a question, answers like "here's a 'for dummies' book, go learn the language" aren't acceptable imo, sorry
 
@ChrisClower this is like .... imgur.com/BSjOJ
 
@ChrisClower Then of course it's his answer. You are no exception to answer, I will be glad, if you give an answer in your way.
 
@Database_Query OMG! You're about to jump?! I understand why, but don't do it man!
 
@rlemon yeah very true
 
4:03 AM
@Kanth I've noticed that it's difficult to get answers that seem simple from people who are really deep in PHP because they see a million ways to accomplish a task. So, to ask how you could learn, you got two paths: read a book, follow a tutorial or start a project, get stuck and come back and post. Maybe you could start with a simple form, posting and retrieving to a DB?
 
I've provided a few answers here in the rare case that there is actually a question
at least one of them said the answer worked and said thanks, so
whatever
what question to you have, @kanth, I'll gladly try my best
 
if i failed to answer your question, i apologize
 
well I'll be danmed
 
It says "Gordon"
that's weird
that wasn't who originally said that, but in any case, what's your point?
 
4:07 AM
this place sucks. No help. I'm evaporating out of here.
 
user50049
So someone posts an odd problem about perl's Tie::File, some spammer answers with linky details on how to tie a tie, it gets up-voted several times. I don't want to live on this planet anymore.
 
chx101, what is your question? i'll help
 
0
A: PHP zip download bug

chx101@Alix This is the weirdest bug I've ever seen. I don't seriously see any logical errors here. For the script to initiate a download, there actually has to be files added to the zip. Now on my phone, it says no files are added but there's a zip file in the temp folder. Moreover if there are no fil...

 
some people here are too focused on arguing and trolling
@chx101 post your question and i'll do my best to help
 
user50049
@chx101 Unfortunately ... I need to delete that, as it's not an answer to the question
 
user50049
4:08 AM
@chx101 Just ask a question linking to the one you replied on for context and then explain where you're stuck
 
ok let me read it
 
user50049
@ChrisClower Let me know when you have it up so I can remove it (it's also been flagged)
 
@TimPost I can't answer it
 
@Stephane Yeah. I understand. That was why I mentioned in the very beginning of my conversation like I stopped in to have some casual chat. But then again I rolled a question just like that. As a developer I understand that. @ChrisClower Nothing like that, my question is simple as stephane said. BTW Why you are on fire with Teresko?
 
Unfortunately I haven't done anything mobile yet except for CSS/JS rendering of mobile pages
 
user50049
4:11 AM
Oh wait a minute sorry @chx101 I'll just convert that to an edit
 
nothing on the server side
 
user50049
I didn't realize you were also the OP
 
ok
 
@chx101 Sorry man :\
Wish I could help
 
Can't help?
 
4:12 AM
@chx101 Well, maybe, but it's not guaranteed
 
Any suggestion please
 
user50049
@chx101 I'll give it a whack if I can reproduce it, I have to go collect and feed small people first
 
I can provide maybe a suggestion, but I know nothing about android OS
 
user50049
@chx101 Curious, do you get the same thing in Dolphin?
 
@ChrisClower to who you are saying about the android?
 
4:13 AM
@chx101 I've had issues with webkit and downloads. Have you tested it with Chrome?
 
It looks like Android is probably considering the zip file invalid
How is the file being created?
 
@Stephane All computer brwosers work 100%
 
@chx101 damn
 
Is it being created via PHP, or have you created it in Windows or Mac OS or Linux and uploaded it to the server?
 
It's only on Android that it doesn't work, except for Opera the mobile version
 
4:15 AM
@chx101 Seems like the browser is rejecting it as an invalid or possibly insecure file....
how are you creating it?
It doesn't look like you're creating it with PHP, or are you?
 
yes I am
 
I see you are trying to read it with PHP...?
Ok, do you have a more complete version of the code?
Because I don't see where it's being created
I see you are calling an object
$leads
What does it do?
 
It's a class that just adds the given files to a temporary zip file and then downloads it.
If it works on Computer browsers and does not work on mobile browsers then the problem is not the code.
 
Does it call a PHP function somewhere that creates the file?
 
Yes.
 
4:20 AM
Can you put that in pastebin?
The class that creates the zip, i mean
 
It has nothing to do with it. I suggest you read my question again.
But I'll still pastebin it for you.
 
It could have something to do with it if it's creating corrupt files
I already said I know nothing about android, so anyone else is free to chime in and help me lol
I'm kinda at a loss and reaching here
Why does the chatroom here die when someone asks a question?
let's help the guy
We get a question and suddenly the crowd parts
Ok fine, let's figure this out. Paste the code and when I'm satisfied it's ok we'll move on
 
here you go.
BTW, do you have any handheld devices that support HTML5 ?
I might give you a link to test it for yourself.
 
i have a galaxy s2 so i could
 
ok
here: learlite.com
 
4:28 AM
it's still so hard to tell what's going on in the code because it's all calling stuff that's not present in what's known
so it's creating a zip and it works on a desktop in presumably every browser
does it work in every browser?
How is it sending the file on the front end?
 
LOL, trust me you don't want to see the other part. Well if you insist
here: http://pastebin.com/G3fbqHG6

YES
YES
 
@chx101 Your decode method does a lot more than just decoding. You should really try to keep your methods specific.
 
Thanks Paul
 
What do you mean front end ?
 
I'm sweating here trying to do this myself haha
How are you sending the file to the client
 
4:32 AM
the function purge() is what servers the zip file from a temporary folder via header()
 
does it just link to the file on the server directly, or...?
through the header... hmmm
have you tried just linking to the file directly, or is that not an option?
just have them click a link to the zip on the server with an absolute path...?
 
Not an option. All folders are restricted by .htaccess
 
or button, or whatever?
 
@chx101 purge is not a good name for something that serves the file. It becomes a mess of misleading method calls if you don't name things appropriately.
 
yeah that's true, paul. purge is a keyword
 
4:35 AM
@Paul lol. Ok. Can we try to solve the problem here first.
 
@Paul Thanks for jumping in. I felt like i was alone in this for a while lol
 
@ChrisClower No, it isn't a keyword.
 
anyway.... all of you with android phones..
user: user
pass: user123
 
lol you're not going to hack our phones are you? :P
 
@chx101 What I am trying to say to you is this: You will have lots of problems if you keep naming things so misleadingly. It will also be much harder for anyone to help you.
 
4:37 AM
@ChrisClower Unless you are of interest then I will.
 
@chx101 Haha, good to know. Then I guess I'm safe because I am far from interesting :P
 
I know most of you come here for social interactions, but please. I'm a developer and this is slowing down my time.
 
I'm just some dude who makes webpages for a living and has no life outside of that
 
@chx101 Your purge method takes in a parameter for $zip_name, but then uses $this->zip_name which is not the same thing.
 
@Paul $this->zip_name and $zip_name are different things in PHP.
 
4:41 AM
@chx101 exactly, did you want them to be different or the same?
 
ah an argument with a call to a an instance var, but then again we don't know all the code, so it could be calling an instance var that's valid
this is what i was talking about - not enough code is given
it's impossible to tell what's going on here
 
Then how does it constitute to the fact that it only works on Desktop browsers?
how much code do you need that's connected to the problem?
 
because a mobile browser isn't a desktop browser
 
@chx101 I would check the response you get from the server on each browser.
 
for all we know, and this is possibly a bad example, but you could be checking user agents or something and there's no way to know either way
 
4:44 AM
Ok, guys. for the last time. Plese read the question again here: stackoverflow.com/questions/12735532/php-zip-download-bug
In fact, read everything there
 
please don't get belligerant
 
@ChrisClower lol. Then I wouldn't be here.
 
we're trying to help here and trying to eliminate basic issues and you're being condescending, and that's not a good way to help people help you
so please, help us help you
no matter how stupid a question sounds when we're asking how it works
 
I presented a problem that has nothing to do with what's going on in the background.

The problem is not the zip file class.
 
Night all.
For the purists: Is it right to say that AOP !== AOSD and instead say that AOP is a subtype/specialization of AOSD? I.E.: Some Java programmers [citation needed] argues that in order to have a proper AOP you need a proper library, like AspectJ. But I've always thought that I were already working with AOP in PHP using the `Intercepting Filters Pattern`, since it catches the cross-cutting concerns without any problem on small to medium applications. I nowadays I would reword it and say that Intercepting Filters fits well on AOSD (not AOP) and that AOP is more specific since it name
 
4:47 AM
let me clear it for you then
 
you don't come back with things like "read wall of text", please, with all due respect, just answer the question
 
user50049
@chx101 How do I initiate the download? Press the export button under any of the leads?
 
we can't help you if you are insulting about it
 
@chx101 Why can't you just rush in some android discussion rooms, if you are sure that the problem is not with your code, but with android. Because there are some issues in android with the zip folders.
 
@TimPost click this button gyazo.com/4c89ee9c56e545762efcb3fc17d500e1.png then the one on top.
 
user50049
4:49 AM
so the problem is on gyazo.com , not learlite?
 
@Kanth Opera browser for android works correctly
 
user50049
I strongly suspect dolphin works properly too
 
@TimPost lol. That's a link to a picture
 
ok here's deal and why you're starting to get crappy answers....
you're not being very helpful
 
user50049
The image 404's .. where do I click in the learlite app to initiate a download?
 
4:51 AM
Yes, it does. But the question is, why does the PHP change its output?

Please, read this thread I explained everything there: http://stackoverflow.com/questions/12735532/php-zip-download-bug
 
@chx101 It seems like you are setting the headers to zip file. Your count doesn't seem to be incrementing and you are exiting with exit('<h1>Nothing to export</h1>'); That would be why you get your invalid zipfile containing that.
 
EVERYONE, READ THIS FUCKING THREAD HERE: stackoverflow.com/questions/12735532/php-zip-download-bug
 
we're not going to read your wall of code without being able to understand what's going on without asking questions, and you're being rude to people who are taking time to help you
 
Because you are not listening to the person who needs hep first then how the fuck do you expect them to help you help them ?
I came with a problem not you.
 
because every time someone asks you a question, you say "it's not that"
 
4:53 AM
Because you haven't fully read the thread:::::::
 
we're trying to read the thread dude, but we have some questions as we go along
and you keep answering with "no it can't be that, move on"
instead of answering the question
 
@chx101 Though I work on Android, I can't be of much helping you as I never dealt with zip files in android till now.
 
What did you ask that I didn't answer?
 
so we have no clue what you're doing
i'm not going to go through and reiterate it
 
@ChrisClower See. That's the problem. Your question was already answered on the thread which you rea refusing to read.
 
4:55 AM
@chx101 POST[$export] isn't what you expected, deal with it.
 
my questions were not answered, and neither was @paul's
 
@Paul Then how does it work on Desktop Browsers and not on mobile browsers.
after its client side code
 
they were answered with "well it's not that because it works on other platforms"
 
@chx101 this link might give you idea I guess and observe even comments in that link. pocketnow.com/2012/06/04/…
 
Then Opera browser is superior on android....
 
4:57 AM
there you go, case in point
 
user50049
@chx101 Try reversing your logic. Call purge() only if count is non zero, otherwise call die('<h1>Nothing here</h1>). I know that sounds silly, but I have run into 'this type' of bug before.
 
stop saying "then how does it work on X", and start answering questions so we can figure out why "it DOESN'T work on Y"
 

« first day (720 days earlier)      last day (4222 days later) »