Home
 Articles
 Book Store
 DIT
 Login
 Register
 News
 Online Training Courses
 Programming
 Research Papers
 Software Development
 Students Notes
  Web Hosting


 
 

 

Learning PHP from admin of this Websie

 PHP About  PHP $_GET  PHP Array Refrence  PHP MYSQL Database
 PHP  Intro  PHP $_POST  PHP Date/Time Ref  PHP Sql Connection
 PHP Download  PHP Date()  PHP File System Ref  PHP Create
 PHP Syntax  PHP include  PHP FTP  PHP Insert
 PHP Variables   PHP File system  PHP HTTP  PHP Select
 PHP Operators  PHP Upload  PHP Mail Refrence  PHP Where
 PHP if..else  PHP Cookies  PHP Math  PHP Order By
 PHP switch  PHP Sessions  PHP MYSQL  PHP Update
 PHP array  PHP Mail  PHP String  PHP Delete
 PHP loops  PHP E-mail injunction  PHP Miscellaneous  PHP ODBC
 PHP Functions  PHP XML  PHP XML Parser  
 PHP Forms  PHP SimpleXML  PHP Zip  

 

Functions and Procedures

abs (n: number)

Function. Returns the absolute value of n.

chr (asciicharcode: number)

Function. Returns a string containing the ASCII character specified by asciicharcode.

For a list of ASCII characters and character codes, see http://www.microsoft.com/workshop/author/newhtml/htmlr018.htm.
 

date

Function. Returns the current system date as a string.

day (thedate: string)

Function. Extracts the day of the month from thedate and returns it as a number.

hour (thetime: string)

Function. Extracts the hour value from thetime and returns it as a number.

left (thestring: string, n: number)

Function. Returns a string containing the first n characters of thestring.

len (thestring: string)

Function. Returns  the number of characters in thestring.

minute (thetime: string)

Function. Extracts the minutes value from thetime and returns it as a number.

month (thedate: string)

Function. Extracts the month value from thedate and returns it as a number.

monthname (themonth: number)

Function. Returns a string containing the name of the month whose number is specified by themonth.

now

Function. Returns the current system date and time.

Request.Form (fieldname: string)

Function. Returns the contents of the field whose name is fieldname.

ServerVariables

Request.ServerVariables ("HTTP_User-Agent")

Function. Returns the client browser type as a string.

Request.ServerVariables ("REMOTE_ADDR")

Function. Returns the client's IP (Internet protocol) address as a string.

Request.ServerVariables ("REMOTE_HOST")

Function. Returns the client's domain name as a string.

Request.ServerVariables ("SERVER_NAME")

Function. Returns the domain name of the server as a string. If the server has no domain name, returns the server's IP address as a string.

Additional ServerVariables

Response.redirect (anotherURL: string)

Procedure. Redirects the current request to one specified by anotherURL.

right (thestring: string, n: number)

Function. Returns a string containing the last n characters of thestring.

second (thetime: string)

Function. Extracts the seconds value from thetime and returns it as a number.

Server.URLEncode (thestring: string)

Function. Converts thestring from a string to a URL by "escaping" certain characters. For example, each space character is replaced with %20. Returns the URL.

time

Function. Returns the current system time as a string.

timevalue (thetime: string)

Function. Extracts the time value from thetime and returns it as a string.
 

weekday (thedate: string)

Function. Extracts the weekday value from thedate and returns it as a number.

weekdayname (weekday: number)

Function. Returns a string containing the name of the weekday whose number is specified by weekday.

year (thedate: string)

Function. Extracts the year value from thedate and returns it as a number.

Operators

The following operators are supported in ASP server-side scripts:
  • Addition (+)
  • And
  • Assignment (=)
  • Concatenation (&)
  • Division (/)
  • Exponentiation (^)
  • Is
  • Equals (=)
  • Greater Than (>)
  • Greater Than or Equal to (>=)
  • Less Than (>)
  • Less Than or Equal to (>=)
  • Mod
  • Multiplication (*)
  • Negation (-)
  • Not
  • Not Equal To (<>)
  • Or
  • Subtraction (-)
  • Xor


  

 

 
 

Copyright © http://www.itbaba.com. 2007 All Rights