« first day (2202 days earlier)      last day (2737 days later) » 

12:49 AM
Hey guys. I'm an old PHP developer, back in the day I used Dreamweaver (Code view only) and recently I've been using Notepad++. What is the recommended way to develop PHP these days? I'm unsure what I should try now, Visual Studio Code | MS Expression Web | Something else
 
1:03 AM
@Marc.2377 PHPStorm is today widely recommended…
 
hello guys
 
1:26 AM
Hey!
thanks
 
hi marc
 
Wes
@bwoebi you've been bwoebed
nice answer :B
 
:-P
 
what answer
 
@CodeNow He's referring to the answer bwoebi linked to (posted in Reddit)
 
1:39 AM
ah okay
 
I've just seen it; nice answer indeed
 
long answer lol
 
I could've also just told him that he's wrong and clashing the tiny benchmark results there.
 
@Marc.2377 vim
 
@littlepootis you've been ripped apart by a black hole mergers gravitational waves right now.
 
1:45 AM
anyone have github ?
 
It's down for me
 
@bwoebi I would almost way wildly recommended
 
@littlepootis works for me.
 
github is up for me
but I use gitlab instead
 
1:47 AM
i would pull out my hair if github went down
lol
 
actually Ive seen it happen
but 2+ years ago
 
lol i was not with github during that time 2 years ago
i started github a yr ago
 
haha i see
 
morning morning
 
hello
 
1:50 AM
hey!
I gotta go. good day y'all
 
quick question, anyone ever used inmotion hosting ?
 
alright seee ya marc
 
have a good day !
 
actually github was down no more than last friday
 
i have
really?
 
1:51 AM
@CodeNow Were you satisfied ?
 
ehh its alright
ijust use amazon web services :/
 
damn it, I need github
 
its free, go get it lol
 
@FélixGagnon-Grenier github wasn't down, DNS providers were.
 
1:54 AM
amazon web services yeah im trying right now
with the freee year tier
 
@bwoebi when you want to answer something, but someone just out-smartassed you
 
yea its easy to use i have 3 vps servers from them
 
but the problem with AWS is that you never really know how much will it cost you by then end of the month
 
@FélixGagnon-Grenier :-)
 
1:55 AM
I mean that's what i think
but I am probably wrong ^^
and when you see AWS dahsboard for the first time it's a little scary
 
yea i usually just start a new instance when one runs out lol
servers are too expensive thse days
 
company pays
lol
 
lol
 
but I cannot go over 150$ per month
 
i did find some things wrong with aws
its difficult to point domain names to them
 
1:58 AM
oh yeah ?
 
does not work first try, you have to mess around with it and then it somtimes works
cause the server will not send data back to the domain and timsout on the users side
 
good to know
 
i have not tried ovh tho
they seem good but i do not know
 
i must say inmotion hosting sales support are being super nice with my right now
they migrate your websites for free
that's pretty cool
I have a bluehost account for many years but I want to see something new
 
so any projects you working on in php
 
2:16 AM
can't sleep
 
drink warm milk
that helps
 
don't move
 
I gave up trying already, got smoke and tea, might aswell get the day started
even though it's 3am
 
lol its 10 over here
pm
 
@littlepootis that is an interesting advice
 
2:31 AM
11 am here
:D
 
@FélixGagnon-Grenier it works
 
yeah, it's actually... the single best way to fall asleep :D
lying down and... not move
 
Wes
iausdhsdafas
 
illogical, I was laying down and not moving when I woke up ...
 
heres a 3 step tutorial
 
Wes
2:34 AM
i mean, morning
 
I usually read myself to sleep.
 
moin @Wes
 
solved
 
Yesterday, it was a book on Quantum Computing.
 
Wes
2:34 AM
i mean, nice :B
 
but warm milk makes me sleep :/
 
I was so boring, I just went to sleep.
 
I can't do that, I'll just stay awake to read the book ...
 
if the book is boring you will
 
2:37 AM
actually, turning off the computer is usually the only way I can get to sleep. after like two hours
otherwise I'll definitely roam in here, all night long
 
i just fall asleep on my laptop sometimes leaving it on :/
 
who buys boring books ?
 
Wes
watch formula 1 @JoeWatkins. i only fell asleep three occasions in my life so far. as a kid with my grandma during a mass in a church. my first attempt to watch lord of the rings, and during all formula 1 "races"
and sorry, english is still sleeping
 
you might if you thought it looked like a good book but was not when you started reading it
 
I have 2 terabytes of ebooks I downloaded from some random server running apache.
 
2:40 AM
kek^
 
the chances of getting the computer in the bed without waking up the wife are nil whatever ...
 
sometimes i ust turn netflix on and 30 minutes later im out
 
I just got to level 5 on snake, I'm basically a snake god ...
NOW 6
CRAP
 
Wes
2:55 AM
lol
 
so frustrating
@Wes are you any good on canvases ?
could you draw a space invader ?
 
Wes
resolution?
 
very small
as small as they can be while still being a space invader, I think
 
Wes
like, pixelated
 
yeah
 
Wes
3:07 AM
:P
 
would have to be because it has to use rect ... also, all true space invaders are pixelated
another cool demo would be a game with it's own physics, like sonic, or some kind of platform thing ...
 
Wes
something like this?
 
yes, exactly like that
how did you do that ?
 
Wes
you don't need photoshop for that :P
just a single pixel brush 100% opaque, and draw :P
it's just a bitmap
 
there's is something broken in this part of my brain, I can recognize the shapes, but I can't plan out the drawing ... I'm very jealous ... it appears as magic to me ...
 
Wes
3:20 AM
damn joe stop beating yourself like that
 
I'm okay with it, I'm just trying to excuse myself from understanding how you done that ... I know it was simple for you ...
 
Wes
:P ok, don't do that to yourself. you don't deserve it
 
are you able to put a grid behind that ?
 
Wes
hum, how? tell me how you are going to draw them? pixel by pixel?
 
I think the invader will be line by line, and then four rects
6
or, all rects filled in
I'm not sure
probably a stroked line
the bottom one, I've no clue
you done php with the same single pixel brush ?
I can have a single pixel brush if that's useful, but I can't do the measuring in my head, a grid would tell me what to do, I think ?
 
Wes
3:35 AM
wait
 
morning
 
moin
 
Wes
lol.
anyway, i would pick the bitmap and use this php.net/manual/en/function.imagecolorat.php or something like that
and store the image as ascii grid
 
thanksyou
 
Wes
does this help?
 
3:48 AM
it's much easier to break it apart like that, for sure
 
Wes
i remember prince of persia - a game from the early '90 had all maps written in plain ascii. each letter meant like a floor a wall or a hole with a texture attached
happy counting :B
 
thanks for taking the time to do that ;)
 
Wes
no probs, you are welcome :D
i'm procrastinating over javascript anyway
fml.
 
4:05 AM
I've been reading a lot of that the last few days ... not a fan ...
still it's easier to understand than some languages
> ideas must be distinct before reason can act upon them
Thomas Jefferson ...
 
 
1 hour later…
5:18 AM
hi
 
Wes
5:39 AM
youtu.be/2Zgt6k59oug?t=171 holy fuck with german accent. the guy almost got flattened
TIL apparently waving both hands doesn't mean "warning" in germany, but "run me over with your bmw"
 
6:17 AM
Good morning
!!rebecca
Is Jeeves down?
 
!!uptime
apparently
 
Wes
i think he's busy in a meeting with skynet right now
 
6:36 AM
why i get Notice: Undefined index. the variable was posted in network>params
the code in php is $type=$_POST["formType"];
 
because the index you specified is undefined
 
@Gordon it can not be undefined because i send it just like this
this is my jquery code and i also send it via postMan
 
I dont see no formType in that gist.
ah there
well whatever. the compiler doesnt lie.
dump $_POST
 
C:\wamp\www\Wpress\wp-content\themes\wp_Atena\formvalidate.php:7:
array (size=1)
'------WebKitFormBoundaryPPZB7RfWVZpbI49N
Content-Disposition:_form-data;_name' => string '"oName"

Hussein
------WebKitFormBoundaryPPZB7RfWVZpbI49N
Content-Disposition: form-data; name="oPhone"

Ojaghi
------WebKitFormBoundaryPPZB7RfWVZpbI49N
Content-Disposition: form-data; name="oEmail"

sds
------WebKitFormBoundaryPPZB7RfWVZpbI49N
Content-Disposition: form-data; name="oPayType"

wqew
------WebKitFormBoundaryPPZB7RfWVZpbI49N
i see it in firefox >Network> params
 
var_dump($_POST)
 
6:48 AM
yes above is the result of var_dump
 
it doesnt look like var_dump
and in case it is var_dump it tells you that your array only has one item
and the array does not contain the index formType
 
i used it before u mention dump $_Post and got this result
array (size=1)
'------WebKitFormBoundaryUPoHCeUmf36WaCFW
Content-Disposition:_form-data;_name' => string '"oName"

Hussein
------WebKitFormBoundaryUPoHCeUmf36WaCFW
Content-Disposition: form-data; name="oPhone"

Ojaghi
------WebKitFormBoundaryUPoHCeUmf36WaCFW
Content-Disposition: form-data; name="oEmail"

sds
------WebKitFormBoundaryUPoHCeUmf36WaCFW
Content-Disposition: form-data; name="oPayType"

wqew
------WebKitFormBoundaryUPoHCeUmf36WaCFW
Content-Disposition: form-data; name="oCode"

qwe
------WebKitFormBoundaryUPoHCeUmf36WaCFW
 
array (size=1)
 
i got this result in POSTMAN
 
your ajax is apparently sending the entire form data as a single string
 
6:53 AM
i want to send json and get text
as a result
 
also, I dont understand why it does ----'.... at the end. Apparently it truncates the output. var_dump doesnt do that
 
I got this result from postMan
 
you said this is the result from var_dump
 
Wes
maybe it's xdebug's var_dump overload?
 
and this is what everything i get without postman
C:\wamp\www\Wpress\wp-content\themes\wp_Atena\formvalidate.php:7:
array (size=8)
'oName' => string 'asdsa' (length=5)
'oPhone' => string 'wqewq' (length=5)
'oEmail' => string 'qwewe@aaa.ss' (length=12)
'oPayType' => string '' (length=0)
'oCode' => string '' (length=0)
'oPayDay' => string '' (length=0)
'opanel' => string 'dsadsa' (length=6)
'formType' => string 'orderForm' (length=9)
and this is what everything i get without postman
 
6:58 AM
can you please change the url of your ajax request to point to requestb.in/szupz1sz
and then fire the ajax request
 
sure
got this
wait
 
FORM/POST PARAMETERS
None
 
Morenings
 
wiat
@Gordon i did it, i got fail
in json
and also i check network>params and all of them are there
 
@bwoebi Yes: One supports overloading of the concat operator, the other doesn't
 
7:06 AM
@Sandro sorry. cant help.
 
ok thanks
 
posted on October 26, 2016 by krakjoe

- Fix Windows onTick

 
morning
 
o/
 
Anonymous
7:33 AM
moin
 
hmm, does the apache sapi dispatch to the cli sapi internally?
 
mourning
 
@Gordon are u with me
 
@Sandro dance by water 'neath the Mexican sky? Drink some Margaritas by a string of blue lights? Listen to the Mariachi play at midnight? Sure count me in. When?
 
lol i mean hmm, does the apache sapi dispatch to the cli sapi internally?
i completely confused
 
7:44 AM
no, that was a general question to the internals savvy people in here
 
Aha
i send json data via postman and get error Undefined index: formType on $_POST and when i check var_dump i got what everything that i mention above. the formType is there
 
Anonymous
@Sandro gist your code and your var_dump result
 
and on the other hand i do it by form and send it via ajax and it also give me same thing i get in postman. thats crazy
ok
 
its not there when you try to access it. If it was there you wouldn't get an Undefined index.
its not like PHP is making up Notices just for the fun of it.
 
I've been in Dusseldorf for 3 days and I'm already going crazy, get me out of here!
@Wes do one for @Gordon he's got a pic of him on twitter I think
 
7:51 AM
@Jimbo Is it too early for gluhwein? :P
 
Yep
 
Wes
he's in the todo :P
 
I want to parse this json to xml in php
I have converted it
But the xml is in 1 line .
 
@Gordon no
 
How can I split in several line ?
please help me
 
Anonymous
7:54 AM
@SagorAhmed No one can help you if you don't provide code
 
@Jimbo why?
@Wes I dont mind you doing but dont expect me to change my avatar
 
Anonymous
@Gordon don't be such a dad
 
Wes
ahaha
 
This is my code
@JayIsTooCommon
This is my code
 
Anonymous
@SagorAhmed Delete that message, stick your code in here gist.github.com
 
7:57 AM
@JoeWatkins that is weird then. I have code that checks the sapi.name at request startup and when it's cli, it will not execute my extension code unless I explicitly enable it in the exension ini. now when I fire requests against my test apache, it will not run my code unless I enable that very setting
 
!!docs domdocument::format
!!uptime
 
He's dead @PeeHaa, he's dead
 
@JayIsTooCommon
 
Not sure if @bwoebi needs to debug something now?
 
7:58 AM
@Gordon can I see the code that does the check ?
also, you know you can attach to an apache process, set breakpoints where it makes sense and request with browser/other client until you happen to get the process you are attached too
 

« first day (2202 days earlier)      last day (2737 days later) »