homepage Welcome to WebmasterWorld Guest from 54.196.196.72
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Subscribe and Support WebmasterWorld
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

    
$ SERVER functions
what are they all and what do they do
whatson




msg:4457234
 6:36 am on May 24, 2012 (gmt 0)

e.g.
$_SERVER['SCRIPT_NAME'] = file name after the domain
$_SERVER['SCRIPT_FILENAME'] = complete filename

What are the other ones and what do they do?

 

SteveWh




msg:4457272
 8:32 am on May 24, 2012 (gmt 0)

These are variables whose values are automatically filled in before your script starts to execute. You can use them anywhere in your scripts. See the list at
[php.net...]

If you plan to write a lot of PHP code, you can download the documentation from here: [php.net...]
In Windows, I use the .chm Help file with user notes. In Linux, I use the "many HTML files" version. I find both very usable.

rocknbil




msg:4457446
 4:09 pm on May 24, 2012 (gmt 0)

A FYI, $_SERVER is one of the PHP superglobals (not functions, $_SERVER is a global array available to any part of a program,) and in other languages are called environment variables. They are extracted, and changed based on, the server software environment.

You can see them any time with

<?php
phpinfo();
?>

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved