|
|
| |
| |
|
Learning PHP from admin of this Websie |
|
|
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.
dateFunction. 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.
nowFunction. 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.
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.
timeFunction. 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.
OperatorsThe 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
| |
  

|
|
|
|
| |
|