• Jetzt anmelden. Es dauert nur 2 Minuten und ist kostenlos!

Offline PHP Server

momo95

Mitglied
Hallo,

ich bin gerade dabei PHP zu lernen. Jetzt möchte ich aber nicht ständig meine Versuche auf den Server meiner Website hochladen, sondern offline im Firefox betrachten. Gibt es da eine Möglichkeit?

Mein System läuft mit Windows 7.

Vielen Dank!

Edit: Ich war natürlich nicht untätig und habe im Internet Xampp gefunden. Ich komme damit aber nicht klar. Die URL stimmt: http://localhost/Meine/test.php aber es geht nicht. Es kommt eine Fehlermeldung von Xampp, dass die Datei nicht existiert :-(
 
Zuletzt bearbeitet:
Werbung:
Ich war natürlich nicht untätig und habe im Internet Xampp gefunden. Ich komme damit aber nicht klar. Die URL stimmt: phpinfo() aber es geht nicht. Es kommt eine Fehlermeldung von Xampp, dass die Datei nicht existiert :-(
Hast du Apache gestartet? Wie lautet der Pfad von dem Ordner "Meine"? (Die PHP Dateien mmüssen in \xampp\htdocs sein, sonst geht das ganze nicht)
 
Also im Control Panel ist Apache an. Und auch des Ordner "Meine" ist in "xampp\htdocs" also: "xampp\htdocs\Meine\test.php".

Edit: AH. Es ist zwar der Haken gesetzt, aber nicht gestartet. Das geht auch nicht. Wenn ich auf "start" klicke, passiert nix
 
Werbung:
Was steht in deiner host Datei? C:\Windows\System32\drivers\etc\hosts?
Sollte der Eintrag "127.0.0.1 localhost" nicht vorhanden sein, so ergänze diesen noch.
# Copyright (c) 1993-2009 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host

# localhost name resolution is handled within DNS itself.
127.0.0.1 localhost
 
Zurück
Oben