Reputation: 988
It happened today!
The wamp
server does not execute my php code.
It worked fine yesterday!
This first screen-shot shows my project. It seems blank , but I wrote <? php echo "s" ?>
on that.
The second screen-shot is source PHP code of my project into Google Chrome.
Upvotes: 0
Views: 3686
Reputation: 9886
in wordpress i had to do in .htaccess
#AddHandler application/x-httpd-php70 .php .php5 .php4 .php3
AddType application/x-httpd-php php php4 php3 html htm
Explain: I comment the first line and added the second
Upvotes: 0
Reputation: 197
please start the wamp server to desktop or bottom bar.
Then put localhost/
put in url.
example: localhost/phpmyfristprojet/
The WAMP server running if there is green signal.
Upvotes: 1
Reputation: 31829
You have to open your page not via file://...
but with
http://127.0.0.1/path/to/your/server/document/root/your-script.php
or
http://localhost/path/to/your/server/document/root/your-script.php
.
By default on xampp/wamp
installations this path is <install_folder>/xampp/
or <install_folder>/wamp/
and in this path resides the document root
(folder with name www
for wamp
installation or htdocs
for xampp
).
Also it is general good idea to replace spaces in your sub-folder with slashes -
or underscore _
, however this is not mandatory for your scripts to work.
Upvotes: 6