ASP-PHP-Übersetzungsliste
Umsteigern zwischen Active-Server-Pages und PHP kann folgende kleine Liste helfen:
Befehl für Active-Server-Pages
Derselbe Befehl in PHP
|
<-- #include file="Settings.inc" -->
| include "Settings.inc";
|
Request.Form("name")
| $_POST['name']
|
Request.Querystring("name")
| $_GET['name']
|
Request("name")
| $_REQUEST['name']
|
Request.ServerVariables( z. B. "HTTP_USER_AGENT")
| $_SERVER['HTTP_USER_AGENT']
|
Server.HTMLEncode()
| htmlspecialchars()
|
Server.ScriptTimeout = 99
| set_time_limit(99)
|
Variable = Wert
| $Variable = Wert;
|
typename()
| gettype()
|
Response.write "Text " & Variable
| echo "Text $Variable";
|
Response.AddHeader "Last-Modified", LastModified
| header("Last-Modified: $LastModified");
|
vbCrLf
| "\n"
|
str = str & "text"
| $str .= "text"
|
For each key in dic
wert = dic(key)
dic(key) = wert + 1
Next
| foreach ($array as $key => $wert) {
$array[$key] = $wert + 1;
}
|
Server.CreateObject()
| new
| |
Weiter