pfadangaben variabel gestalten
alex
- php
hi...
Location: http://".$_SERVER['HTTP_HOST']."/editnews.php --> pfadangabe beim provider
Location: http://".$_SERVER['HTTP_HOST']."/projekt_xy/editnews.php --> pfadangabe bei mir local. hier habe ich noch einen ordner für die verschiedenen projekte.
ich muss nun jedesmal, je nachdem wo die datei liegt diese pfadangabe per hand abändern.
gibts da ne bessere möglichkeit mittels php, so das ic hdas nich immer per hand abändern muss?
danke schon mal
Hi,
Location: http://".$_SERVER['HTTP_HOST']."/projekt_xy/editnews.php --> pfadangabe bei mir local.
konfiguriere Dein System um; z.B. so, dass Du auf projekt-xy.localhost zugreifst.
Cheatah
konfiguriere Dein System um; z.B. so, dass Du auf projekt-xy.localhost zugreifst.
Und wie stelle ich das an? den ordner bei mir lokal habe ich ja nur, weil ich dort auch andere projekte habe und beim provider brauch ich das ja nicht
Hi,
konfiguriere Dein System um; z.B. so, dass Du auf projekt-xy.localhost zugreifst.
Und wie stelle ich das an?
a) Server konfigurieren (falls Apache: VirtualHost),
b) Hostnamen DNS-bekannt machen (falls Windows: HOSTS-Datei).
Cheatah