I don\'t know maybe it\'s a bug. I have 2 virutalhosts on my server. virtualhost1.com virtualhost2.com if i open virtualhost1开发者_StackOverflow社区.com with port 80 (virtualhost1.com:80)
I am le开发者_开发技巧arning to use the CodeIgniter framework. I am coming form a world where get variables determined which body file to include in the index.php.
I\'m trying to add some sort of a superglobal in my app. It will only store a small integer, but I need it to be accessible from anywhere in my app.
As a web developer, I\'m always using this approach to something like a login form or other “save” operation (ignoring the dangers of directly accessing input variables):
So, I don\'t come from a huge PHP background—and I was wondering if in well formed code, one should use the \'superglobals\' directly, e.g. in the middle of some function say $_SESSION[\'x\'] = \'y\'
W开发者_运维技巧hat is the benefit of using the super global $_SERVER[\'PHP_SELF\']?$_SERVER[\'PHP_SELF\'] doesn\'t (or shouldn\'t) include the domain name. It includes the path component of the url t
We have multiple load-balanced webserver machines running the same PHP webapp (LAMP) and I\'d like to run slightly different code on each server (for testing purposes). I was hoping to use the $_SERVE
Apparently there was confusion as to my original post so let me start over: I am essentially creating an online shopping cart which gives a manager the ability to enroll his/her employees for trainin
EDIT: (UPDATED) Maybe my question was not clear enough. Ok, lets put it this way: $arr[\"a\"] = 10; var_dump($arr);
i开发者_运维技巧s this pointing to the directory where the current file is executed?No, it points to the root of your webserver - the topmost folder of your website.