« first day (2008 days earlier)      last day (2950 days later) » 

9:01 PM
btw @Ekn, thanks for linking to piwigo the other day. I was not sure between that an some other, just installed piwigo, people use it and are happy, therefore I am.
 
Ekn
glad to hear :)
bah it's going to be raining like today for the next 3 days x_x
 
9:35 PM
any idea why I would get a syntax error from this line$params = [
'index' => 'my_index',
'type' => 'my_type',
'id' => 'my_id'
];
I am running php 7 and dreamweaver
 
What is the actual text of the error message?
 
how on
 
as in the full message, including "unexpected T_, expecting T_"
 
@DaveRandom, its not a runtime error, code runs but dreamweaver complains
 
dreamweaver probably doesn't understand short array syntax because it's terrible
does the error go away if you use array()?
 
9:38 PM
it being dreamweaver or the notation? (please say the former)
 
let me try
 
(for clarity, dreamweaver is the thing that is terrible, not short array syntax)
 
i declared $params as array, still same warning
I am running a very old copy of dreamweaver, maybe i need a update
 
... what about trying $params = array( ... ); instead of $params = [ ... ];
 
hold on
same problem
 
9:45 PM
Ugh. The more I look into range()'s source, the more things I find wrong with it. Not even sure if it's possible to patch this one: 3v4l.org/6O769
 
@Chris Try using a proper IDE - not free but 30 day free trial and I promise you will not mind paying for it after using it for 30 days
 
Just found the problem, here's a link that explains the problem
https://forums.adobe.com/thread/1393664?tstart=0
 
5 mins ago, by Félix Gagnon-Grenier
... what about trying $params = array( ... ); instead of $params = [ ... ];
.......................
 
7 mins ago, by DaveRandom
does the error go away if you use array()?
 
9:46 PM
^^
 
......................................................
 
nope
 
:-P
 
yeah sry
hahaha
 
its a dreamweaver problem, only support for php 5.3
 
9:47 PM
@Chris... the thing you are linking to is what Dave is telling you, from the very start
 
yep, i am slow
 
no worries, you're still probably faster than a snail
 
anyway, problem resolved, just have to wrap my head around a nice IDE
 
srsly though @Chris, the takeaway from this should be... go try out PHP Storm. It is great and does All The Things
 
how much?
 
Although that said, DW is really for designers with PHP messily tacked on the side, and PHP Storm doesn't have a lot of the shiny front end stuff that DW has
@Chris Well, free for 30 days with none of that "sign up first and cancel if you don't like it" bullshit, so what have you got to lose?
 
the problem, as stated, is that you will fall in love with it then buy the subscription
 
I will try it, i saw the price, its not cheap, but maybe worth it
thanks all
 
@Chris Worth checking if you are eligible for one of these as well though: jetbrains.com/phpstorm/buy/#edition=discounts
@FĂ©lixGagnon-Grenier this
And R#
and basically every jetbrains product
 
yeah. really, I somewhat hate them, for being that good.
 
9:58 PM
In the words of Hannibal Smith... I love it when a plan comes together
Read: my 2 hour refactoring mission turned out to work properly and not be a waste of time
 

« first day (2008 days earlier)      last day (2950 days later) »