Skip to main content

view All $_SERVER and globale variable in php.

view All $_SERVER  and globale  variable  in php.

echo '<table cellpadding="10">' ;
foreach ($_SERVER as $arg => $value ) {
   
        echo '<tr><td>$_SERVER["'.$arg.'"] = </td><td>' . $value. '</td></tr>' ;
   
}
echo '</table>' ;

                                                           output                                                                           

 
$_SERVER["MIBDIRS"] =C:/xampp/php/extras/mibs
$_SERVER["MYSQL_HOME"] =\xampp\mysql\bin
$_SERVER["OPENSSL_CONF"] =C:/xampp/apache/bin/openssl.cnf
$_SERVER["PHP_PEAR_SYSCONF_DIR"] =\xampp\php
$_SERVER["PHPRC"] =\xampp\php
$_SERVER["TMP"] =\xampp\tmp
$_SERVER["HTTP_HOST"] =localhost
$_SERVER["HTTP_CONNECTION"] =keep-alive
$_SERVER["HTTP_CACHE_CONTROL"] =max-age=0
$_SERVER["HTTP_UPGRADE_INSECURE_REQUESTS"] =1
$_SERVER["HTTP_USER_AGENT"] =Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36
$_SERVER["HTTP_ACCEPT"] =text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8
$_SERVER["HTTP_DNT"] =1
$_SERVER["HTTP_ACCEPT_ENCODING"] =gzip, deflate, br
$_SERVER["HTTP_ACCEPT_LANGUAGE"] =en-US,en;q=0.8
$_SERVER["HTTP_COOKIE"] =SESSd4bfd349672eef01814b3fc1befd8b45=SkPagdDizodCMPbEUVyY1b6JDSUWCd5RXDMl5YzyqPA; _ga=GA1.1.1627286747.1500003409
$_SERVER["PATH"] =C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x86;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x64;C:\Program Files (x86)\Windows Live\Shared; C:\Windows\System32\;C:\xampp\mysql\bin\;C:\Program Files\nodejs;C:\xampp\php;C:\Users\Gurdeev\AppData\Roaming\npm;C:\Users\Gurdeev\AppData\Local\Programs\Git\cmd;C:\Users\Gurdeev\AppData\Local\ComposerSetup\bin;C:\Users\Gurdeev\AppData\Roaming\Composer\vendor\bin
$_SERVER["SystemRoot"] =C:\Windows
$_SERVER["COMSPEC"] =C:\Windows\system32\cmd.exe
$_SERVER["PATHEXT"] =.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
$_SERVER["WINDIR"] =C:\Windows
$_SERVER["SERVER_SIGNATURE"] =
Apache/2.4.12 (Win32) OpenSSL/1.0.1l PHP/5.6.8 Server at localhost Port 80
$_SERVER["SERVER_SOFTWARE"] =Apache/2.4.12 (Win32) OpenSSL/1.0.1l PHP/5.6.8
$_SERVER["SERVER_NAME"] =localhost
$_SERVER["SERVER_ADDR"] =::1
$_SERVER["SERVER_PORT"] =80
$_SERVER["REMOTE_ADDR"] =::1
$_SERVER["DOCUMENT_ROOT"] =C:/xampp/htdocs
$_SERVER["REQUEST_SCHEME"] =http
$_SERVER["CONTEXT_PREFIX"] =
$_SERVER["CONTEXT_DOCUMENT_ROOT"] =C:/xampp/htdocs
$_SERVER["SERVER_ADMIN"] =postmaster@localhost
$_SERVER["SCRIPT_FILENAME"] =C:/xampp/htdocs/app/test/tcpdf/index.php
$_SERVER["REMOTE_PORT"] =51246
$_SERVER["GATEWAY_INTERFACE"] =CGI/1.1
$_SERVER["SERVER_PROTOCOL"] =HTTP/1.1
$_SERVER["REQUEST_METHOD"] =GET
$_SERVER["QUERY_STRING"] =
$_SERVER["REQUEST_URI"] =/app/test/tcpdf/
$_SERVER["SCRIPT_NAME"] =/app/test/tcpdf/index.php
$_SERVER["PHP_SELF"] =/app/test/tcpdf/index.php
$_SERVER["PHP_AUTH_USER"] =asdasd
$_SERVER["PHP_AUTH_PW"] =asd
$_SERVER["REQUEST_TIME_FLOAT"] =1500466160.96
$_SERVER["REQUEST_TIME"] =1500466160

Comments

Popular posts from this blog

how send mail using Swift mailer | switmailer send mail tutorial

how send mail using Swift mailer | switmailer send mail tutorial  <?php /* step 1 include Swift mailer file ;  */ include("vendor/swiftmailer/swiftmailer/lib/swift_required.php"); /* step 2 create your user details */ $senderEmail="saddam1234321@gmail.com"; $senderPassword="****Your password****"; $senderName="Saddam huassin"; /* step 3 set SMTP host  for sending mail  */ $user = Swift_SmtpTransport::newInstance('smtp.gmail.com','587','tls'); /* step 4 set your user details  */ $user->setUsername($senderEmail); $user->setPassword($senderPassword); /* step 5 create swift  mailer instance with a variable */ $mailer = Swift_Mailer::newInstance($user); /* step 6 Create a message */ $message = Swift_Message::newInstance('Wonderful Subject')   ->setFrom(array($senderEmail => $senderName))   ->setTo(array($senderEmail))   ->setBody('Here is the message itsel...

how install Swift mailer in localhost | swift mailer installation | composer install swift mailer

how install Swift mailer in localhost | swift mailer installation | composer install swift mailer Step 1:- open cmd  Step 2;- copy this command " composer required swiftmailer/swiftmailer @stable " . Step 3;- paste in cmd and press enter. Step 4;- after few second swift mailer ready to use .................................