Mailinglisten-Archive |
Henning Heil wrote:
> [...]
>
> $location = "http://".$_SERVER['HTTP_HOST'];
> $mydir = dirname($_SERVER["PHP_SELF"]);
> $location .= $mydir;
> if($debug >= 1) echo "<br> debug location: ".$location;
> $location .= "/startup.php";
> if($debug >= 1) echo "<br> debug location: ".$location;
>
> [...]
> 2.1. beim navigieren auf Linux remote zu location
> http://www.rocketprojects.net/curbanoglu.com/backoffice/
>
> debug location: http://www.rocketprojects.net/curbanoglu.com
> debug location: http://www.rocketprojects.net/curbanoglu.com/startup.php
>
> [...]
>
> Der Vergleich zeigt, dass auf der remote-Kiste bei 2.1. irgendwie ein
> Verzeichnis verschluckt wird! [...]
wohl eher kein Bug, liegt eventuell am Apache, unterschiedliche
Versionen oder Einstellungen.
lass dir doch mal $_SERVER['PHP_SELF'] ausgeben, dies könnte eventuell
schon unterschiedlich sein
den dirname() entfernt lediglich alles ab dem letzten '/' !
z.b. /path/file.htm => /path
/path/file => /path
/path/path/ => /path/path
/path/path => /path !!!
--
Sebastian Mendel (www.sebastianmendel.de)
*www.warzonez.de* | www.tekkno4u.de | www.nofetish.com
php::bar PHP Wiki - Listenarchive