PHP tag (<?php...?>) is not executing!

Solved
Molotov77 -  
Reivax962 Posted messages 3742 Status Member -
Hello everyone,

I am facing a big problem, in fact, I need to create web pages dynamically, but none of my code between the PHP tags is executing at all. I have tested in the browsers Firefox and IE6, but nothing happens.
I am using EasyPhp which includes an Apache server, a database MySql and supports PHP.
I also tested with Wamp server, and it gives the same result.

My PHP tags do not execute either the processes or the displays, it is becoming amazing and very demotivating.

I am counting on your help, thank you in advance.
Configuration: Windows XP / Firefox 3.5.3

17 answers

Titial69 Posted messages 269 Status Member 20
 
I just checked with WAMP to make sure you did the same thing, I just tested it at home and it works.

Once WAMP is installed and allowed through the firewall, click on the WAMP icon in the notification area and select "www directory", create a new directory for your project. Inside, place your index.php file and not index.html (so you have /www/myproject/index.php)

After that, click on WAMP again and select LocalHost, and go to the bottom left of my projects and you should have "my project" and click on it, and normally your PHP should work.

If any one of these steps is not followed, it will not work.
--
Surete-moto.com: The first site dedicated to motorcycle safety
6
mcnguyen Posted messages 4 Status Member
 
I'm a beginner and I'm having the same issue with unexecuted tags using Apache2.0.14 and php5.2. So I downloaded Wamp, but I'm still facing the same problem. I just want to run an echo with php.
I followed your advice but I received this message on my Firefox browser:
-----------------------------------------------------------------------------------------------------------------
Warning: require_once(./libraries/common.inc.php) [function.require-once]: failed to open stream: No such file or directory in C:\wamp\www\dsl-consulting\index.php on line 34

Fatal error: require_once() [function.require]: Failed opening required './libraries/common.inc.php' (include_path='.;C:\php5\pear') in C:\wamp\www\dsl-consulting\index.php on line 34
--------------------------------------------------------------------------------------------------------------------------------
dsl-consulting is my project directory.
I'm working on Vista

My html file path is: C:\wamp\www\dsl-consulting and when I type in my Firefox http://localhost/monfichier.html, the file of my web page works but the php code is not executed and I see it when I display the source in Firefox.

Can you help me, it's been almost a week that I've been pulling my hair out. (but I haven't tried EasyPHP yet)

Thank you very much in advance
0