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

00:49
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
01:03
@Marc.2377 PHPStorm is today widely recommended…
hello guys
01:26
Hey!
thanks
hi marc
Wes
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)
01:39
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.
01:45
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
01:47
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
01:50
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?
01:51
@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.
01:54
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 :-)
01:55
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
but I cannot go over 150$ per month
i did find some things wrong with aws
its difficult to point domain names to them
01:58
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
02:16
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
02:31
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
Wes
iausdhsdafas
illogical, I was laying down and not moving when I woke up ...
heres a 3 step tutorial
Wes
Wes
02:34
i mean, morning
I usually read myself to sleep.
moin @Wes
solved
Yesterday, it was a book on Quantum Computing.
Wes
Wes
02:34
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
02:37
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
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.
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
Wes
02:55
lol
so frustrating
@Wes are you any good on canvases ?
could you draw a space invader ?
Wes
Wes
resolution?
very small
as small as they can be while still being a space invader, I think
Wes
Wes
like, pixelated
Wes
Wes
03:07
: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
Wes
something like this?
yes, exactly like that
how did you do that ?
Wes
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
Wes
03:20
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
Wes
:P ok, don't do that to yourself. you don't deserve it
are you able to put a grid behind that ?
Wes
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
Wes
03:35
wait
morning
Wes
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
Wes
does this help?
03:48
it's much easier to break it apart like that, for sure
Wes
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
Wes
no probs, you are welcome :D
i'm procrastinating over javascript anyway
fml.
04:05
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…
05:18
hi
Wes
Wes
05:39
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"
06:17
Good morning
!!rebecca
Is Jeeves down?
!!uptime
apparently
Wes
Wes
i think he's busy in a meeting with skynet right now
06:36
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)
06:48
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
06:53
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
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 '[email protected]' (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
06:58
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
07:06
@Sandro sorry. cant help.
ok thanks
posted on October 26, 2016 by krakjoe

- Fix Windows onTick

morning
Anonymous
07:33
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
07:44
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
07:51
@Jimbo Is it too early for gluhwein? :P
Yep
Wes
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
07:54
@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
Wes
ahaha
This is my code
@JayIsTooCommon
This is my code
Anonymous
@SagorAhmed Delete that message, stick your code in here gist.github.com
07:57
@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?
07:58
@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 (2968 days later) »