notes:
| PHP function | php terminator | ASP function | ASP terminator | Additional ASP to be inserted at top of page | Additional ASP to be inserted at bottom of page | Flag | Comments |
| echo %a% ; | Response.Write %a% | ||||||
| strtolower ( %a% ) | LCase ( %a% ) | ||||||
| // %X%# | ' %X% | ||||||
| /* %X% */ | ' multiline comment removed | ||||||
| explode ( %a% , %b% ) | split ( %b% , %a% ) | ||||||
| implode ( %a% , %b% ) | join ( %b% , %a% ) | ||||||
| while ( %a% ) { | } | Do While %a% | Loop | ||||
| while ( %a% ) %b% ; | Do While %a% %b%; Loop |
||||||
| do %a% while ( %b% ); | Do %a% Loop While %b% |
||||||
| do { %a% } while ( %b% ) | Do %a% Loop While %b% |
||||||
| if ( %a% ) { | } | If %a% then | End If | ||||
| if ( %a ) %b% ; else %c% ; | If %a% then %b%; Else %c%; End If |
||||||
| if ( %a ) %b% ; |
If %a% then |
||||||
| for ( $%a% = %b% ; $%c% < %d%; $%e%++ ) { | } | For $%a% = %b% to %d% | Next | ||||
| for ( $%a% = %b% ; $%c% < %d%; $%e%++ ) %f%; |
For $%a% = %b% to %d% |
||||||
| for ( %a% ; %b% ; %c% ) { | } | %a% Do While %b% |
%c% Loop |
||||
| for ( %a% ; %b% ; %c% ) %d% ; |
%a% |
||||||
| print ( %a% ) | Response.Write %a% | ||||||
| mysql_query( %a% ) | |||||||
| } else { | Else | ||||||
| } elseif (%a%) { | ElseIf %a% | ||||||
| trim ( %a% ) | Trim ( %a% ) | ||||||
| array ( %a% ) | Array ( %a% ) | ||||||
| $%X% = mysql_connect ( %b% , %c% , %d% ) ; | Set objConn = Server.CreateObject("ADODB.Connection") |
odbc | |||||
| mysql_select_db ( %a% , %b% ) ; | objConn.Open "odbc_name_of_connection_to_%a%" |
objConn.Close | odbc | ||||
| header ( " location : %a% "); | Response.Redirect %a% | ||||||
| strlen ( %a% ) | Length ( %a% ) | ||||||
| urlencode ( %a% ) | Server.URLEncode ( %a% ) | ||||||
| urldecode ( %a% ) | URLDecode ( %a% ) |
Function URLDecode(strString) |
|||||
| function %a% ( %b% ) { | } | Function fn_%a% ( %b% ) | End Function | ||||
| return ; | |||||||
| return %a%; | $var_the_function_name = %a% | ||||||
| str_replace ( %a% , %b% , %c% ) | Replace ( %c% , %a%, %b% ) | ||||||
| strpos ( %a% , %b% ) | InStr ( %a% , %b% )-1 | ||||||
| global %a% ; | Global_vars { %a% } | This is not a asp function - just a marker to find the global vars | |||||
| $%X% .=%a%; | $%X% = $%X% & %a% | ||||||
| $%X% = %a%; | $%X% = %a% | ||||||
| chr (%a% ) | chr( %a% ) | ||||||
| ord ( %a% ) | asc ( %a% ) | ||||||
| $%X% ++ | $%X% = $%X% + 1 |