The .php pages do not open normally.
Posted by: sam37 (149.154.86.---)
Date: April 27, 2017 08:15PM

When I open .php pages like index.php, it only displays lines of codes, yet wampserver has no problem, [127.0.0.1] this address informs me of the proper functioning Of the PHP.

Options: ReplyQuote
Re: The .php pages do not open normally.
Posted by: Otomatic (Moderator)
Date: April 27, 2017 09:22PM

Hi,

We do not "open" a page .php, but launch it by the http protocol.

If the page you want to "open" is, for example, wamp/www/tests/index.php, you must launch it from a browser by: 'http://localhost/tests/index.php'

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote
Re: The .php pages do not open normally.
Posted by: sam37 (149.154.86.---)
Date: April 27, 2017 09:42PM

Ok, Why in my projects, when I click on my site, the address is that of the title of the site instead of localhost /mysite? Yet I put my file in www, and even when I put index.php, impossible to open the page.

Options: ReplyQuote
Re: The .php pages do not open normally.
Posted by: sam37 (149.154.86.---)
Date: April 27, 2017 09:46PM

Ok, now i have lose Wampserver page, now have :

Index of /

[ICO] Name Last modified Size Description
[DIR] SI-Facile/ 2017-04-27 21:44 -
[ ] add_vhost.php 2016-11-05 14:44 19K

Options: ReplyQuote
Re: The .php pages do not open normally.
Posted by: Otomatic (Moderator)
Date: April 27, 2017 10:17PM

Hi,

Wamp/www/ directory is localhost ie. Wampserver homepage.
Files in this directory must not be modified ; files must not be added in this directory.

You have to create a new folder like wamp/www/tests/ and put your files into.

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote
Re: The .php pages do not open normally.
Posted by: sam37 (149.154.86.---)
Date: April 27, 2017 11:47PM

Je viens de voir que vous êtes français, ça va m'arranger, ça sera plus simple comme ça ^^ Donc en effet j'avais déplacer index.php, je l'avais même mis après à la corbeille. Donc maintenant c'est revenue et du coup j'ai le problème d'avant qui est revenue, depuis la page de configuration localhost je ne peut pas cliquer sur mon site pour y accéder sinon il m'envoie à l'adresse [si-facile] une adresse qui n'existe pas (si seulement je pouvais la créer...) , la bonne adresse est [localhost] mais pourquoi il me redirige vers une mauvaise adresse ?

Et ensuite j'aimerai partir sur un deuxième sujet bien plus compliqué, j'aimerai pouvoir rendre accessible ce site à un amis, sauf que j'arrive même pas déjà à le lire hors de mon PC, je me suis informé a propos de http.conf, .htaccess et Virtual Hosts mais sa change rien. Voilà voilà ^^

Options: ReplyQuote
Re: The .php pages do not open normally.
Posted by: Otomatic (Moderator)
Date: April 28, 2017 09:14AM

Bonjour,

Veuillez passer sur le forum francophone : [forum.wampserver.com]
Avant d'expliquer votre problème, lire : LIRE et RÉPONDRE AVANT DE POSER UNE QUESTION

Je ferme cette discussion.

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote


Sorry, you can't reply to this topic. It has been closed.