Top "Global-variables" questions

Global variables are variables that are accessible from all elements of a software component.

Global Variables in a WordPress Plugin

I am trying to create my first WordPress plugin. Even in trying to create the install function, things are being …

php wordpress global-variables wordpress-admin
PHP: Alternative to SESSIONS

I have a PHP application that relies on session variables quite a lot. After login the user get redirected to …

php global-variables session-variables tempdata
Proper implementation of global configuration

My goal is to have global constants in a C++ game I'm working on (to represent some graphics info and …

c++ global-variables constants configuration-files
Detecting page unload in angularjs

I have a javascript object which I need global to my angularjs application. When the application is about to be …

angularjs global-variables onbeforeunload persist rootscope
Calling Drupal functions in external PHP file

How can I call a Drupal function or get the global variable in a PHP file which is located under …

php drupal drupal-6 global-variables external
Elegant way to check if a global plugin variable is set in a vim plugin

I used to use vim during the last years for editing configs and scripts on remote servers. A couple of …

vim plugins global-variables settings macvim
How to avoid global variables when using interrupt handlers?

I'm mostly self taught in C. I program embedded micro controllers. (dsPIC33fj128gp804 for example) I generally use global …

c embedded global-variables microchip
How to access the value of baseURL in Cypress

I'm just starting to learn JavaScript and have been using Cypress to automate some regression tests. The test I writing …

javascript global-variables cypress
In C, does using static variables in a function make it faster?

My function will be called thousands of times. If i want to make it faster, will changing the local function …

c memory-management global-variables static-variables local-variables
Objective C - Static and global variable?

In my .m file for a class named Ad , I have 3 static strings static NSString *AdStateDisabled = @"disable"; static NSString *AdStateExpired = @"…

iphone objective-c global-variables static-variables