0 Pré-requis : avoir un PC ET Win32 installé ET Personal Web Server installé.
1 Récupérer PHP pour Win32 (@ http://www.php.net !) fichier php-4.0RC1-Win32.zip
2 Suivre les instructions de readme.txt
3 Récupérer la DLL "MSVCIRT.DLL"... où vous pourrez !
4 Editer le fichier c:\windows\hosts
# Copyright (c) 1994 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for
Chicago
#
# 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
127.0.0.1 localhost
Ajouter les 2 lignes de votre site :
127.0.0.1 php3.free.fr
127.0.0.1 davidubois.free.fr
Mon site perso chez free est http://davidubois.free.fr
Votre site perso chez free est http://votresite.free.fr
L'URL d'exécution des PHP est http://php3.free.fr
ATTENTION : à partir de l'enregistrement de ce fichier sur votre disque, votre site n'est plus accessible sur le net mais uniquement en local ! Donc mettez les lignes en commentaires et enregistrer le fichier afin d'y accéder à nouveau votre URL sur le net ! Suis-je assez clair ?
A titre d'exemple, je vous autorise à faire des essais avec mon site disponible en zip à http://davidubois.free.fr/www.davidubois.free.fr.zip
Le dézipper à partir dans le répertoire C:\www.davidubois.free.fr\ et index.html...
Ca ne marche pas ? Avez-vous paramétré votre serveur http ? Personal Web Server...