Konular

$_ENV

$_ENV

<?
foreach ($_GET as $key => $value) {
    if (is_array($_GET[$key])) {
      foreach ($_GET[$key] as $key2 => $value2) {
        $_GET[$key][$key2] = htmlspecialchars($_GET[$key][$key2]);
      }
    } else {
      $_GET[$key] = htmlspecialchars($_GET[$key]);
    }
}

foreach ($_POST as $key => $value) {
    if (is_array($_POST[$key])) {
      foreach ($_POST[$key] as $key2 => $value2) {
        $_POST[$key][$key2] = htmlspecialchars($_POST[$key][$key2]);
      }
    } else {
      $_POST[$key] = htmlspecialchars($_POST[$key]);
    }
}

foreach ($_COOKIE as $key => $value) {
    if (is_array($_COOKIE[$key])) {
      foreach ($_COOKIE[$key] as $key2 => $value2) {

        $_COOKIE[$key][$key2] = htmlspecialchars($_COOKIE[$key][$key2]);
      }
    } else {
      $_COOKIE[$key] = htmlspecialchars($_COOKIE[$key]);
    }
}

foreach ($_SERVER as $key => $value) {
    if (is_array($_SERVER[$key])) {
      foreach ($_SERVER[$key] as $key2 => $value2) {

        $_SERVER[$key][$key2] = htmlspecialchars($_SERVER[$key][$key2]);
      }
    } else {
      $_SERVER[$key] = htmlspecialchars($_SERVER[$key]);
    }
}



foreach ($_ENV as $key => $value) {
    if (is_array($_ENV[$key])) {
      foreach ($_ENV[$key] as $key2 => $value2) {

        $_ENV[$key][$key2] = htmlspecialchars($_ENV[$key][$key2]);
      }
    } else {
      $_ENV[$key] = htmlspecialchars($_ENV[$key]);
    }
}
?>

$ENV ise sistem hakkında bilgi verir örnek
<? print_r($ENV); ?>

Array
(
    [ALLUSERSPROFILE] => C:Documents and SettingsAll Users
    [CommonProgramFiles] => C:Program FilesCommon Files
    [COMPUTERNAME] => ECZ-0CB5F0F994D
    [ComSpec] => C:WINDOWSsystem32cmd.exe
    [FP_NO_HOST_CHECK] => NO
    [NUMBER_OF_PROCESSORS] => 1
    [OS] => Windows_NT
    [Path] => C:WINDOWSSYSTEM32;C:WINDOWS;C:WINDOWSSYSTEM32WBEM
    [PATHEXT] => .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
    [PROCESSOR_ARCHITECTURE] => x86
    [PROCESSOR_IDENTIFIER] => x86 Family 15 Model 1 Stepping 2, GenuineIntel
    [PROCESSOR_LEVEL] => 15
    [PROCESSOR_REVISION] => 0102
    [ProgramFiles] => C:Program Files
    [SystemDrive] => C:
    [SystemRoot] => C:WINDOWS
    [TEMP] => C:WINDOWSTEMP
    [TMP] => C:WINDOWSTEMP
    [USERPROFILE] => C:Documents and SettingsLocalService
    [windir] => C:WINDOWS
    [AP_PARENT_PID] => 2780
)

$_ENV

Kaynak Uğur Kahraman
Yorumunuzu Ekleyin

PHP Data Objects (PDO) Nedir?
Yükleniyor...