Qindex Programming Tips
110 [Quick Reference] Predefined Constants
written by Qindex at 2008-02-15 19:49 /

JAVA: identifiers

 

abstract    default    if            private      this
boolean     do         implements    protected    throw
break       double     import        public       throws
byte        else       instanceof    return       transient
case        extends    int           short        try
catch       final      interface     static       void
char        finally    long          strictfp     volatile
class       float      native        super        while
const       for        new           switch
continue    goto       package       synchronized

 

* The keywords 'const' and 'goto' are reserved, even though they are not currently used. This may allow a Java compiler to produce better error messages if these C++ keywords incorrectly appear in programs.


JavaScript 1.3: variables, functions, methods, or objects

 

abstract    boolean       break       byte     case 
catch       char          class       const    continue 
debugger    default       delete      do       double
else        enum          export      extends  false 
final       finally       float       for      function 
goto        if            implements  import   in
instanceof  int           interface   long     native
new         null          package     private  protected 
public      return        short       static   super
switch      synchronized  this        throw    throws
transient   true          try         typeof   var 
void        volatile      while       with

 

* Some of these words are keywords used in JavaScript; others are reserved for future use.


MySQL: table and column names

 

ADD                     ALL                       ALTER 
ANALYZE                 AND                       AS 
ASC                     AUTO_INCREMENT            BDB 
BERKELEYDB              BETWEEN                   BIGINT 
BINARY                  BLOB                      BOTH 
BY                      CASCADE                   CASE 
CHANGE                  CHAR                      CHARACTER 
COLUMN                  COLUMNS                   CONSTRAINT 
CREATE                  CROSS                     CURRENT_DATE 
CURRENT_TIME            CURRENT_TIMESTAMP         DATABASE 
DATABASES               DAY_HOUR                  DAY_MINUTE 
DAY_SECOND              DEC                       DECIMAL 
DEFAULT                 DELAYED                   DELETE 
DESC                    DESCRIBE                  DISTINCT 
DISTINCTROW             DOUBLE                    DROP 
ELSE                    ENCLOSED                  ESCAPED 
EXISTS                  EXPLAIN                   FIELDS 
FLOAT                   FOR                       FOREIGN 
FROM                    FULLTEXT                  FUNCTION 
GRANT                   GROUP                     HAVING 
HIGH_PRIORITY           HOUR_MINUTE               HOUR_SECOND 
IF                      IGNORE                    IN 
INDEX                   INFILE                    INNER 
INNODB                  INSERT                    INSERT_ID 
INT                     INTEGER                   INTERVAL 
INTO                    IS                        JOIN 
KEY                     KEYS                      KILL 
LAST_INSERT_ID          LEADING                   LEFT 
LIKE                    LIMIT                     LINES 
LOAD                    LOCK                      LONG 
LONGBLOB                LONGTEXT                  LOW_PRIORITY 
MASTER_SERVER_ID        MATCH                     MEDIUMBLOB 
MEDIUMINT               MEDIUMTEXT                MIDDLEINT 
MINUTE_SECOND           MRG_MYISAM                NATURAL 
NOT                     NULL                      NUMERIC 
ON                      OPTIMIZE                  OPTION 
OPTIONALLY              OR                        ORDER 
OUTER                   OUTFILE                   PARTIAL 
PRECISION               PRIMARY                   PRIVILEGES 
PROCEDURE               PURGE                     READ 
REAL                    REFERENCES                REGEXP 
RENAME                  REPLACE                   REQUIRE 
RESTRICT                RETURNS                   REVOKE 
RIGHT                   RLIKE                     SELECT 
SET                     SHOW                      SMALLINT 
SONAME                  SQL_AUTO_IS_NULL          SQL_BIG_RESULT 
SQL_BIG_SELECTS         SQL_BIG_TABLES            SQL_BUFFER_RESULT 
SQL_CALC_FOUND_ROWS     SQL_LOG_BIN               SQL_LOG_OFF 
SQL_LOG_UPDATE          SQL_LOW_PRIORITY_UPDATES  SQL_MAX_JOIN_SIZE 
SQL_QUOTE_SHOW_CREATE   SQL_SAFE_UPDATES          SQL_SELECT_LIMIT 
SQL_SLAVE_SKIP_COUNTER  SQL_SMALL_RESULT          SQL_WARNINGS 
SSL                     STARTING                  STRAIGHT_JOIN 
STRIPED                 TABLE                     TABLES 
TERMINATED              THEN                      TINYBLOB 
TINYINT                 TINYTEXT                  TO 
TRAILING                UNION                     UNIQUE 
UNLOCK                  UNSIGNED                  UPDATE 
USAGE                   USE                       USER_RESOURCES 
USING                   VALUES                    VARBINARY 
VARCHAR                 VARYING                   WHEN 
WHERE                   WITH                      WRITE 
YEAR_MONTH              ZEROFILL 

 

* The following symbols are disallowed by ANSI SQL but allowed by MySQL:
ACTION BIT DATE ENUM NO TEXT TIME TIMESTAMP

 

PHP 4: keywords, variables, classes, contants

 

keywords

and        or            xor             __FILE__ 
__LINE__   array()       as              break      case 
cfunction  class         const           continue   declare 
default    die()         do              echo()     else 
elseif     empty()       enddeclare      endfor     endforeach 
endif      endswitch     endwhile        eval       exit() 
extends    for           foreach         function   global 
if         include()     include_once()  isset()    list() 
new        old_function  print()         require()  require_once() 
return()   static        switch          unset()    use 
var        while         __FUNCTION__    __CLASS__


Predefined Variables

$_SERVER   ($HTTP_SERVER_VARS)

elements :


argc                 argv
DOCUMENT_ROOT
GATEWAY_INFTERFACE
HTTP_ACCEPT          HTTP_ACCEPT_CHARSET HTTP_ACCEPT_ENCODING
HTTP_ACCEPT_LANGUAGE HTTP_CONNECTION     HTTP_HOST
HTTP_REFERER         HTTP_USER_AGENT
PATH_TRANSLATED
PHP_AUTH_PW          PHP_AUTH_TYPE       PHP_AUTH_USER
PHP_SELF
REMOTE_ADDR          REMOTE_PORT
REQUEST_METHOD       REQUEST_URI
QUERY_STRING
SCRIPT_FILENAME      SCRIPT_NAME
SERVER_ADMIN         SERVER_NAME         SERVER_PORT
SERVER_PROTOCOL      SERVER_SIGNATURE    SERVER_SOFTWARE

$_ENV      ($HTTP_ENV_VARS)
$_COOKIE   ($HTTP_COOKIE_VARS)
$_GET      ($HTTP_GET_VARS)
$_POST     ($HTTP_POST_VARS)
$_FILES    ($HTTP_POST_FILES)
$_REQUEST
$_SESSION  ($HTTP_SESSION_VARS)
$GLOBALS
$php_errormsg


* The variables in the parenthesis is for the versions before PHP 4.1.0. There is no equivalent array for $_REQUEST in the former versions of PHP 4.1.0. $GLOBALS has been available since PHP 3.0.0.



 [post]
[permission] read:Anonymous, comment:Anonymous, write:Webmaster, upload:Webmaster, manage:Webmaster
Qindex.info