Wednesday, January 20, 2021
  • About
  • Advertise
  • Careers
  • Contact
  • PHP
    • Codeigniter
    • WordPress
    • YII2
  • Python
    • Django
  • .Net
  • Digital Marketing
    • SEO
    • Social Media Marketing
    • Affiliate Marketing
    • Email Marketing
  • Academic Projects
  • Login
No Result
View All Result

PHP $_SERVER

Athira Rajeev by Athira Rajeev
April 12, 2019
in Uncategorized
2 min read
0
PHP $GLOBALS
0
SHARES
30
VIEWS
Share on FacebookShare on Twitter

Hello everyone, today we are going to learn PHP $_SEVER variable. Which is a super global variable and contains header information, path information, script locations. They are available in all scopes throughout a script. Entries to this global variable is done by web server.

Below table describes $_SERVER variables and its use.

Related posts

Create Custom Controls for WordPress Theme

Create Custom Controls for WordPress Theme

June 2, 2020

Top 10 Free Keyword Research Tools in 2020

May 18, 2020
www.codextreme.in www.codextreme.in www.codextreme.in
ADVERTISEMENT
CODE DESCRIPTION
$_SERVER[‘PHP_SELF’] Return filename of currently executing file
$_SERVER[‘GATEWAY_INTERFACE’] Return the CGI of server (CGI – Common Gateway Interface.)
$_SERVER[‘SERVER_ADDR’] Return server IP address
$_SERVER[‘SERVER_NAME’] Return the name of server
$_SERVER[‘SERVER_SOFTWARE’] Returns server identification string
$_SERVER[‘SERVER_PROTOCOL’] Returns name and revision of information protocol.
$_SERVER[‘REQUEST_METHOD’] Returns request method (Eg: GET/POST)
$_SERVER[‘REQUEST_TIME’] Returns timestamp of the request
$_SERVER[‘QUERY_STRING’] Returns the query string, which the page accessed
$_SERVER[‘HTTP_ACCEPT’] Returns accepted contents (eg:ext/html,application/xhtml+xml etc)
$_SERVER[‘HTTP_ACCEPT_CHARSET’] Accept_charset from current request header
$_SERVER[‘HTTP_HOST’] Returns host name of the request
$_SERVER[‘HTTP_REFERER’] Complete path of the file where it is located
$_SERVER[‘REMOTE_ADDR’] IP address from where the user is viewing the current file.
$_SERVER[‘REMOTE_HOST’] Host name from where the user is viewing the current file
$_SERVER[‘REMOTE_PORT’] Returns port number where the clients machine is communicating with web server
$_SERVER[‘SCRIPT_FILENAME’] Absolute pathname of the file where it is located.
$_SERVER[‘SERVER_ADMIN’] The value given to the server admin directive in the web server configuration file
$_SERVER[‘SERVER_PORT’] Return the port used for web server communication
$_SERVER[‘SERVER_SIGNATURE’] Server version and virtual host name.
$_SERVER[‘PATH_TRANSLATED’] Returns file system
$_SERVER[‘SCRIPT_NAME’] path of current script
$_SERVER[‘SCRIPT_URI’] URI of current page
Previous Post

PHP $GLOBALS

Next Post

Custom 404 Error page in Codeigniter

Athira Rajeev

Athira Rajeev

Next Post
Custom 404 Error page in Codeigniter

Custom 404 Error page in Codeigniter

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

RECOMMENDED NEWS

Jquery AJAX method()

Jquery AJAX method()

3 years ago

Top 10 Free Keyword Research Tools in 2020

8 months ago
AJAX XML(Extensible Markup Language)

AJAX XML(Extensible Markup Language)

3 years ago
Upload Files using Ajax in Codeigniter

Upload Files using Ajax in Codeigniter

3 years ago

FOLLOW US

  • 112 Fans

BROWSE BY CATEGORIES

  • No categories
moleculetechnologies.com moleculetechnologies.com moleculetechnologies.com
ADVERTISEMENT

BROWSE BY TOPICS

404 Codeigniter Comment Commit CSV Custom Database Desktop Application error Export File management Framework Gmail List Content logo Mysql database PHP PHPDesktop PHPExcel PHP file management PHP file system PHPMailer Rate Reply Rolledback SMTP Star Transaction Upload wordpress
ADVERTISEMENT
ADVERTISEMENT

POPULAR NEWS

  • create PHP desktop application

    create PHP desktop application

    0 shares
    Share 0 Tweet 0
  • Export Data to Excel in PHP Codeigniter using PHPExcel Library

    0 shares
    Share 0 Tweet 0
  • Codeigniter Login with Captcha

    0 shares
    Share 0 Tweet 0
  • How to use PHPMailer with gmail smtp in codeigniter

    0 shares
    Share 0 Tweet 0
  • how to make a Nested comment-reply using codeigniter and MySQL Database

    0 shares
    Share 0 Tweet 0
HardyCodes

We bring you the best Premium WordPress Themes that perfect for news, magazine, personal blog, etc.

Follow us on social media:

Recent News

  • Create Custom Controls for WordPress Theme
  • Top 10 Free Keyword Research Tools in 2020
  • How to Create a Simple WordPress Theme from Scratch – Part 4

Category

  • No categories

Recent News

Create Custom Controls for WordPress Theme

Create Custom Controls for WordPress Theme

June 2, 2020

Top 10 Free Keyword Research Tools in 2020

May 18, 2020
  • About
  • Advertise
  • Careers
  • Contact

© 2020 HardyCodes - powered by CodExtreme Software Solutions.

No Result
View All Result
  • PHP
  • Codeigniter
  • WordPress
  • YII2
  • .Net

© 2020 HardyCodes - powered by CodExtreme Software Solutions.

Welcome Back!

Login to your account below

Forgotten Password?

Create New Account!

Fill the forms bellow to register

All fields are required. Log In

Retrieve your password

Please enter your username or email address to reset your password.

Log In
This website uses cookies. By continuing to use this website you are giving consent to cookies being used. Visit our Privacy and Cookie Policy.