« first day (839 days earlier)      last day (4334 days later) » 

09:00
@Korhan In fact can you just var_dump($_FILES) and put the output on a pastebin?
@PeeHaa Sup dawg. I hear you were spinnin' up some mad beatz last night.
@PeeHaa how is your crazy boss
@Korhan a simple trick
 move_uploaded_file($_FILES['images']['tmp_name'][$key], $destination);
 print_r(getimagesize($destination));
@Korhan don't use getimagesize on the temp files directly
@Baba Why not?
user652649
mornin' DaveRandom of midlands
@DaveRandom not figured why ... but have seen the error several times over
user652649
@DaveRandom because sometimes doesn't work.. probably because of the file owner
09:04
@wes Midlands people are weird. I'm a proud Northerner and I'll thank you to remember it!
@Baba Really? You have seen my question and the error that's been haunting my dreams?
user652649
waa where in the north? i like the north
@wes @Baba That is absolute crap. The temp files were create by the same user you are running as. Seriously. There is no way that can ever possibly be the case.
@DaveRandom Why don't we give it a try ?
user652649
@DaveRandom trust me that i fell on that problem... maybe on linux, probably on windows
09:06
@Korhan Make sure the file is uploaded with move_uploaded_file then run getimagesize can't wait to hear the feedback
@DaveRandom @Baba In the meanwhile I am trying to put those two lines what daverandom said.
hello i develop payment getway in authorized.net with AIM method but it whatever payment i do it goes to unsattel transection why? any ideas?
I have never had issues with this, I always resample image uploads and I always do it from the temp location, because if you do that PHP auto-GCs them at the end. Even if it were possible, it would happen with everything - the problem here is only with files >100k
@Baba Not in the office ATM
:)
@Baba No problems. I understand you said you can't spare much time.
09:07
@DaveRandom if you're south of Newcastle, you're no Northerner :P
The only way that could possibly happen is if the FS was set up by a proper bell-end who'd somehow given a user write perms but not read perms.
@DaveRandom Started something new yeah :)
user652649
@DaveRandom i clearly remember that i wasn't able to do even a simple filesize()
Maybe suhosin does something like that
Suhosin is more hassle than its worth
09:08
@PeeHaa Oh cool
Sounds like an insane (pointless) security hack.
@Korhan it would be nice to see this resolved
@DaveRandom really some people are insane in their code or configuration
Blocking read access to the temp file before you've saved it achieves nothing and moves the responsibility for GC to userland.
user652649
i hate suhosin notices in main() on line 0
@Baba True
09:10
@Baba Thanks. I hope it gets resolved.
Apologies for exploding back there, but I just can't see that being the issue here and a colleague has just seriously pissed me off.
@DaveRandom This is what I get when I add var_dump() with that pissing error again.
@Korhan when i are you given it a try
@DaveRandom lol .. sorry about that
@Korhan Have you check your error log
May be a permissions thingy
@Baba Sorry, didn't get you
09:13
@DaveRandom I was referring to "Apologies for exploding back there, but I just can't see that being the issue here and a colleague has just seriously pissed me off."
@PeeHaa No, I am able to upload small images and could save it in server folder.
@Korhan oh wait
You're doing it wrong...
Do you have a max size directive in your form?
@PeeHaa I have already set it in php.ini
no
in
user652649
UPLOAD_ERR_FORM_SIZE
Value: 2; The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form.
09:14
your
form
@wes you combo breaker you
How do you even manage that when uploading from mobile?
user652649
it is possible to upload via mobile?
@Korhan When are you testing your code to see if the error still persist
@Baba Now I am gonna try your advice.
@DaveRandom have a bit of youtube.com/watch?v=kfVsfOSbJY0 :)
09:17
<input type="hidden" name="MAX_FILE_SIZE" value="100000" />
@PeeHaa
...
OMG my OpenSUSE VM is using 4.6GB RAM in my machine with 4GB physical. It's not even really doing anything.
@Korhan Well. What do you think that is doing?
The name is a hint
@Korhan am waiting ... to hear the feedback
And no it doesn't set the minimum allowed size ;)
09:18
@Gordon Why thankyou good sir, good ol' Becca
@Korhan if you want to limit file upload size either set the appropriate PHP ini setting or limit POST size in your webserver config. doing it client side is pointless as it is easily circumvented.
@Korhan make sure you test that the upload is successful
@DaveRandom still expect the PHP Guru contact :)
@Baba Oh sorry, totally forgot about that, let me give some people a kick up the arse
09:23
@DaveRandom thanks :)
09:34
@Baba Looks like nothing doing, everyone's telling me they are too busy, although someone's just given me the name of another guy, going to give him a call in a few minutes. You have you looked at any online agencies?
@DaveRandom not checked
@DaveRandom any Idea where to start ?
@Gordon but MVC can be applied to a file structure
<?=$time_of_day.WELCOME_MSG?>
@DaveRandom Please also let them know its not for free
user652649
morning Jimbo
09:38
Hey @wes
How's it going
user652649
everythings fine here. you?
@Jimbo hellos
Good thanks! We have a "supreme member of the board" coming in to (probably) inspect the office today
So all must be clean and tidy
Act busy!
Morning @PeeHaa - trust you to put Friday on right haha -->
user652649
09:41
lol
user652649
you bastards there are TWO of fridays in the list :P
@Baba No recommendations, the last time I did anything like this I used rackspace, frankly I wouldn't recommend them though.
user652649
user652649
thats a proper Friday
@DaveRandom Really ? What issues did you have ? Who would you recommend ?
09:44
Haha, two?
xD
user652649
yes and i clicked both of them :(
user652649
user652649
or even better one
@andho no. it cant. of course, you can create folder m, v and c. but that is arbitrary and has nothing to do with MVC as a pattern. MVC as a pattern has nothing to do with the file system. you wont find any serious paper on the topic stating MVC is a folder layout. It doesnt say where to put files.
@PeeHaa hola ..
09:46
A small question about facebook graph api
Is it possible to post a comment onto a web page, using Graph api of facebook ? The user will be logged into the web page with facebook, and then he must be able to post facebook comment on a webpage
@Gordon yeah but you can structure your project file structure according to the MVC principles.
@Baba Their support was absolutely shocking and at least twice I fixed problems that they "couldn't find". Although tbh what I was involved with was a lot smaller scale than what you are doing, it may be a different deal when you're paying them more.
@andho It should be "best practice" to do so imho
@andho yes, you can do that. And I did so in the past. I just didnt pretend there was such a thing as an MVC folder layout ;) That's all I'm saying.
@DaveRandom My Plant was to start with them then get HP POD 40C with their version of OpenStack Installed over time when the data grow
@DaveRandom If they are not good enough who would you recommend ..
09:48
@Jimbo i would be happy if people just only "practice" even. But usually it's just monkeying around for most people.
@Baba hiya
@Baba Two people have told me you should post it on theitjobboard.com - I've never used it but apparently these guys often keep an eye on it for interesting jobs, still trying to get hold of this other guy, he's not answering his phone, I've left a message
user652649
mornin nullpointer
Hi guys
@NullPointer Morning =]
09:48
@NullPointer hiya!
@Jimbo there is people who disagree with you: blog.8thlight.com/uncle-bob/2011/09/30/…
Hey @Harry
morning .. all*
@Jimbo It was @Gordon this time :D
"There is no best practice"
09:49
@NullPointer sudo install princess
What matters is that it is there
twice ;)
or was it "I hate it when people say 'best practive'"
@DaveRandom Oh ok .. i would check it out ...... what is your own fees likes has a consultant
Oh god, I'm leaving this discussion instantly - telling me there's no best practice will destroy my brain
@Jimbo Can you know about mysql ?
09:51
@Harry mysql ?
i am sure you dont mean mysql_*
I mean phpmysql
@Gordon but this (blog) is assuming that the file structure IS the architecture, which obviously is not
@Harry What about it harry?
@Baba Not really relevant. I wouldn't feel confident enough in designing something like that from the ground up, neither do I have the time at the moment. Sorry.
@Harry again what you mean by phpmysql ?
09:53
@DaveRandom Oh ok ....
Can you know about ...
Yes. Yes I can.
@Jimbo I want to match specific string from comma separated string using query ?
I'm not saying I do, but I'm certainly able to.
@Gordon what i mean is, when you look at the blue print, someone might also notice the paper it was printed in, the CAD tool that it was generated with. The principles that were used to come up with the design.
09:54
@Harry Is the comma separated string stored in the database?
@Baba This is what I have tested with your advice.
@DaveRandom ya
these are the things behind the architecture, not important to the user, but important to someone who is an architect.
@Korhan and the result
09:55
This is what I get error
@NullPointer ping
@Harry lol .. dude do you use mysql_query or mysql_connect ?
@Baba pong ..:)
@Korhan what error ?? Was the file uploaded ?
@Harry never use w3schools ever
09:56
@Harry w3schools really loled me .. amazing
@NullPointer I know buddy but I want to how to make select query for this
@PeeHaa Ok
@Harry for what ?
@Baba It didn't :(
Well, then the doc is wrong, because rawurlencode() is NOT fully RFC3986, as explained in my first comment. — Jack 12 secs ago
@Korhan var_dump is_file , is_readable on C:\xampp\htdocs\DROID_PHP/contents/uploads/background123.jpg
09:57
@NullPointer I want to display data as per selection of string by user
Some people just keep insisting that something on some page is correct ... sigh.
@Harry OK well then you are Doing It Wrong™. What you need is some kind of foreign key arrangement, storing comma separate values in a database is always wrong (IMO). Read this.
@Korhan the main issue is not getimagesize but the files was not uploaded
hes still not getting files uploaded?
file / folder permissions correct?
09:59
@Baba Why it is not getting uploaded? But it's not the case with small images.
Apache allowed to write to those folderS?
hey dudes anyone good on codeigniter here?
Might be I have to break my head against desk, then it would work I guess.
@Badaboooooom i do CI
@Harry try ajax .. and to get selected string check this post
09:59
@Korhan if that's the case then you need to edit php.ini and MAX Upload size and post size?
@Korhan your server settings
I have already edited those @MarkH
what values do you have there?
also, any Disk Quota mangement?
@wes speed car ...wooo
Have already given these values.
php_value upload_max_filesize 10M
php_value post_max_size 10M
php_value max_input_time 300
php_value max_execution_time 300
10:00
@Badaboooooom what's the issue?
@Baba @MarkH
ok and how big is your file that is failing upload @Korhan
It's just 300 KB.
anything in access / error logs?
@MarkH i'm using config xss filtering TRUE
global xss filtering
10:01
@Badaboooooom ok...
and it replace me all the accented chars
i would like to leave the accented chars
@Korhan lol 300KB
if i turn FALSE that it leaves the accented chars
oh... that's in the allows characters stuff.
allowed*
where i can found them? :P
10:03
is it characters from your URI?
if so, you need to look at

$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-';
nope is from form POST
and what i need to do?
yea but its in URI
to put all chars i want to be allowed there?
is it saying something like Illegal characters
oh i think yes
10:05
or disallowed
no it says nothing, just replacing them
@Baba :(
oh
Literally breaking my head.
@Badaboooooom different thing then
10:05
?
give me example of a char that you want to keep and what is happening with it
@MarkH If it's the case I have same names like even for small images.
i would like to keep "à è ù ò"
when i post from form a string like "hey à"
http://stackoverflow.com/questions/14643588/php-project-includes-and-project-layout
@Korhan its very funny you are having issues with 300KB upload file ...
10:06
then it returns "hey"
replacing "à"
removing sorry :/
@Korhan what do you have in your upload_max_filesize and post_max_size settings
@MarkH did you use xss_clean() ?
i'm wondering if to turn FALSe the global xss filter
and use $this->input->post('data',TRUE);
it will pass the post string trough the xss filter anyway
@Baba
7 mins ago, by Korhan
Have already given these values.
php_value upload_max_filesize 10M
php_value post_max_size 10M
php_value max_input_time 300
php_value max_execution_time 300
This is my full php code.
@Korhan server information ?
@Korhan What is you HTML form code?
10:09
@MarkH where are you =) ?
@Korhan Was does your HTML form look like ... ii don't want to miss anything
sorry dealing with work stuff : )
one of our frontend guys going nuts!
he thought he was working to a 12 col grid, designers done it to 16 col
@Korhan You still have <input type="hidden" name="MAX_FILE_SIZE" value="10000000" /> in there. You need to remove it.
is it possible to use a single for-loop iterate through an array twice
10:11
@andho what Uncle Bob means is that your folder layout should not resemble the framework you used. The folder layout should clearly express what an application is about. MVC is just a tiny design decision. As such, it should not dictate the folder layout.
@Korhan can you also add sample file you are uploading in bayfiles.com .. i need confirm everything ... :)
@MarkH damn i can imaging )
@Badaboooooom yea you can do that.
as , TRUE) enables XSS
but .... it's the same damn :P
and turn it off globally and if there's stuff you're not looking to XSS Filter then do that way
but i'd be inclined to say fix your chars
10:12
i mean, i should try somenthing to allow accented chars, some edits
somewhere )
as in, run through even numbered indexes first
@Baba I just wanna check with this simple html form. If it's success I wouldn't have any issues in sending the same MultipartEntity from my mobile side using some extra jar files to bind the data as files.
the odd numbers
@MarkH yep i would like to leave TRUE the xss globally )
@andho basically this quote:
When you look at the top level directory structure, and the source files in the highest level package; do they scream: Health Care System, or Accounting System, or Inventory Management System? Or do they scream: Rails, or Spring/Hibernate, or ASP?
10:12
@DaveRandom Sorry, I removed it. It still gives same issue.
i just need to found out where chars are escaped :P
@Korhan ok hold on let me run my own test ... what version of PHP are you using
5.4
@andho add MVC to that list. The CVBacklog has an "MVC Layout" and looking at the folders will tell me that indeed. What it won't tell me is that it's a CVBacklog :)
@Baba I uploaded the pic in that website. It's asking me mail address to which it should be sent.
10:17
@Gordon yeah that does remain a problem, and even I don't know how to avoid that. Even the canonical example for DDD has that kind of structure
Oops, sorry @Harry, did you find what you wanted?
@MArkH don't know if i need to look for this:
DEBUG - 2013-02-01 10:15:01 --> Global POST and COOKIE data sanitized
or this DEBUG - 2013-02-01 10:15:01 --> XSS Filtering completed
@andho there is a video about Screaming Architecture where Bob explains how he'd like to see applications structured folderwise
Usually when the junior comes in and gives the wrong information - the seniors can't wait to fix it :P
@Gordon cleancode?
10:19
@andho that one probably, too. but i was refering to confreaks.com/videos/…
@Gordon you always come up with great links ;)
@Gordon whoo uncle Bob
@NullPointer the guy whose books you want to read
@Badaboooooom Did you have an example of the stuff you are sending in the POST
@NullPointer he won't bore you, and he will teach you great stuff
10:25
"hey hello àòèà"
@andho you are welcome :)
@Gordon i really want to give seminar like him he is damn impressive
user652649
How to pass HTML code to php page
10:26
. . .
@AlokKumar hire a developer
WTFBBQ
a grid layout in Fireworks has different sizes when measured in Photoshop
same png
lol
@teresko I am a developer .. but still in learning phase. I guess all of us are in learning phase
.php page is just the MIME Type of the document, you can put normal HTML into a PHP file
@AlokKumar than hire a tutor :P
10:32
I cba explaining AJAX etc
@tereško why u are giving sugession "hire a developer" here all are comming for share ther knowledge and for help
you helped me lotof time but now days u just giving ss
@Nileshpatel it's one of those things, that you will understand, when you grow up
$categories = Categories::getCategories();
 for ($oddNum = 1, $evenNum = 0; $oddNum < sizeof($categories); $oddNum +=2, $evenNum += 2) {
         	echo $categories[$evenNum]['name'];
          	echo $categories[$oddNum]['name'];
           	echo "<br />";
  }
is this good or should I use two loops
?
@Nileshpatel in your estimate, how much research a person did , before asking in chat:
15 mins ago, by Alok Kumar
How to pass HTML code to php page
It comes out fine though
I'm just looking at the structure
10:41
@Nileshpatel he has good days and bad days... just assume today is a bad day... but in teresko's defense... just a simple googling would solve his problem...
@iroegbu i would have written it just as a single loop with single index
ok... and just increment 'temporarily' within the loop?
foreach($categories as $category)
{
//
} ?
@MarkH that won't work...
and why not?
10:46
@iroegbu echo $foo[$i] , $foo[i$+1]; /// with some isset()
I need to specifically address odd and even indexes
oh,
$i = 0;
@tereško ok... That is good
I'll go with that
thanks
the trick with two indexes is confusing to read
and when you are debugging 6 month old code, it does not matter who write it
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." --Brian Kernighan
@iroegbu , i think this applies in your case
=))
very true... very true
10:50
Big potential investor came in and talked to each of us, then asked me specifically - what do you think the biggest downfall of this company is?
I've had to delete some codes I should have been editing
very true... very true
I replied: "Well, I really want a proper coffee maker"
lmao
@Jimbo hah
i'd of said "The boss does coke in the bathroom"
lololol
lmao
@MarkH Good suggestion x)
10:52
hehehehe, if you want a P45 , yep
@Jimbo lols... coffee?
@iroegbu Yeah, I want one of those that you put the 'pods' in and it makes really awesome coffee that you can smell from a mile off, not instant coffee, or something like that. Even if I'm a tea drinker.
Tbh - I more want one for the hot chocolates.
user652649
Is that like.. a kettle and a food destruction thingy in one?
(forgot name)
@Jimbo Don't be sucked in by George Clooney. The Nespresso Is A Lie!
@Jimbo "food destruction thingy" is a much better name anyway.
10:56
all this coffee talk....
/me puts the kettle on
just popping to Columbia for some fresh beans.
user652649
@Jimbo thats a "Moka"
Mocha?
@DaveRandom What, those pod things are naff?
user652649
mocha is a brand of coffe asd
@teresko After searching everywhere else only I came here. I have a problem in implementing the WYSIHTML5. where textarea has the contents in HTML so I need to pass it. I have never tried passing HTML code to PHP thats why I asked here.
Have a look here http://stackoverflow.com/questions/14643758/how-to-save-the-generated-html-from-wysihtml5-or-pass-it-to-php-page
user652649
illycaffè is a brand of coffee produced in Trieste, Italy. illy produces only one blend in three roast variations: normal, dark roast, and decaffeinated. The blend is packaged as whole beans, pre-ground coffee, E.S.E. pods, or iperEspresso Capsules. Coffee The illy coffees are blended from arabica beans from multiple sources. The grounds are packaged in steel canisters and pressurized with an inert gas rather than air. The illy decaffeination method involves the coffee beans being first steamed for 30 minutes and then repeatedly rinsed with either methylene chloride (Dichloromethane/...

« first day (839 days earlier)      last day (4334 days later) »