NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Guru master

Joined: 24 Jul 2009
Posts: 717
Reply with quote
What about not tracking usage, but instead for certain very common globals such as $_SERVER first showing the common 'standard' indices? Also, bearing in mind those are strings and not variables/constants, they could even be shown in the code completion selector as quoted 'strings' (if you haven't used a quote yet) so you would type $_SERVER[ and then first see all the quoted 'SERVER_INDICES'. Or PhpED could exepct the string to already started, I'd be happy with that.

Yes, it does mean that PhpED has to treat $_SERVER separately (and maybe a few useful others) but even after PHP'ing for many years, I would myself still find this an extremely helpful code completion. I'm always switching between different languages, etc. and know what I'm looking but forget exactly what it is called.
View user's profileFind all posts by plugnplaySend private message
Site Admin

Joined: 13 Jul 2003
Posts: 7861
Reply with quote
Isn't it what I posted about on Jul 28 2013 at 02:05am in this thread, then referred to on Jul 29 2013 at 04:00pm?

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website
Guru master

Joined: 24 Jul 2009
Posts: 717
Reply with quote
At the moment if I type $_SERVER[ then I get approximatelly a few THOUSAND items popup and with my poor memory I cannot remember what the element I want starts with. For me, the list that pops up is useless and in all the time I've used PhpED have never used it because I've normally typed nearly the whole name before the list shows anything useful.

By putting the more common elements at the start of the list, it would become helpful. It is possible that $_SERVER is the only array that needs this 'special' treatment. Personally I'd be happier if the popup list didn't even show any variables defined in the project, because for a good size project it probably doesn't help much. What do others think?
View user's profileFind all posts by plugnplaySend private message


Joined: 06 Jun 2013
Posts: 24
Reply with quote
PErsonally I agree. $_SERVER should only show the true valid PHP $_SERVER[''] vars. Why would anyone use $_SERVER for anything else anyways? Wouldn't it just add a layer on confusion to the code if $_SERVER was used for other purposes? A question I would have is if Dreamweaver only shows proper vars, obviously a company such as Adobe (and the prior Macromedia) thinks its the better way to do it, why wouldn't nuSphere just fix it and keeps everyone happy?
View user's profileFind all posts by probcSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 7861
Reply with quote
what is invalid in the following?
$_SERVER['myvar'] = 55;

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website
Guru master

Joined: 24 Jul 2009
Posts: 717
Reply with quote
There is nothing invalid about it. I'm just unsure what it has to do with showing a useful list of standard $_SERVER element names. Confused
View user's profileFind all posts by plugnplaySend private message


Joined: 06 Jun 2013
Posts: 24
Reply with quote
May not be invalid, but wouldn't it be more clear within the code if a programmer typically used $_SERVER with the intended list of possibilites as set forth by the maker of php? Sure a person can use something like $_SERVER['COOKIE'] = 'whatever', but isn't that crazy to convolute the programming like that. Can it not just show at the top of the list in order, the list of actual $_SERVER options to help speed us up?

In reference to $_SERVER['myvar'] = 55; wouldn't a better choice for a variable be $myvar = 55, or $myarray['myvar'] = 55;

Just my2cents.

Update: I just installed the latest version, and it seems to be pretty good now. The main vars are at the top of the list. I'm happy with it now.
View user's profileFind all posts by probcSend private message
$_SERVER
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 2 of 2  

  
  
 Reply to topic