Mailinglisten-Archive |
Dirk Olbertz wrote:
> Vielen Dank für die Info! Bevor ich jetzt alle Links anpasse, wie muss die
> Syntax aussehen, wenn ich folgendes mache möchte:<a
> href="index.phtml?go=news&ac=ix">News</a>? Kommt dann die komplette URL
> innerhalb von purl(), oder hänge ich "&go=news&ac=ix" an das an, was mir
> purl() zurückgibt?
Dokumentation und Source geben die Antwort. Bitte lies hier nach, bevor
Du fragst.
+++ Homesite +++
Edit->Extended Find...->
(x)In folder: f:/phplib/php/
File Types: *.inc
Nach purl suchen.
+++ WindowsCommander +++
Commands->Search->
(x)Find text: purl
+++ Unix +++
man grep
grep purl ./*
+++ Dokumentation +++
"url($url)
Return an URL referencing the current session. If in get mode, the
current session id is attached to this URL, else the URL is returned
unmodified.
purl($url)
A shorthand for print $this->url($url);"
http://phplib.netuse.de/documentation/documentation-3.html#ss3.8
+++ Source +++
function url($url){
$url=ereg_replace("[&?]+$", "", $url);
switch ($this->mode) {
case "get":
$url .= ( strpos($url, "?") != false ? "&" : "?" ).
urlencode($this->name)."=".$this->id;
break;
default:
;
break;
}
return $url;
}
function purl($url) {
print $this->url($url);
}
Ulf
php::bar PHP Wiki - Listenarchive