Problems with WampServer 2.5
Posted by: yen (---.prod-infinitum.com.mx)
Date: September 14, 2014 01:12PM

Today I installed WampServer 2.5, when i write the next test code and I run it, I could see that the tags <?php and ?> didnĀ“t work correct. Can some one help me? Thank you.

PHP Code:

<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="iso-8859-1"/>
<title>Hello World!!!</title>
<link rel="stylesheet" href="aaa.css"/>
</head>
<body>
<header>
</header>
<nav>
</nav>
<section>
<p>This message is writting in HTML</p>
<?php
print("<p>Hello World!!!!.... This message was writting by PHP Interpreter </p>"winking smiley;
?>
</section>
<aside>
</aside>
<footer>
</footer>
</body>
</html>
***************************************************************************************************

Code delivered by Chrome:

In Screen:

This message is writting in HTML

Hello World!!!!.... This message was writting by PHP Interpreter
"winking smiley; ?>


***************************************************************************************************

Inspect Element Screen

<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="iso-8859-1"/>
<title>Hola Mundo!!!</title>
<link rel="stylesheet" href="aaa.css"/>
</head>
<body>
<header>
</header>
<nav>
</nav>
<section>
<p>This message is writting in HTML</p>
<?php
print("<p>Hello World!!!!.... This message was writting by PHP Interpreter</p>"winking smiley;
?>
</section>
<aside>
</aside>
<footer>
</footer>
</body>
</html>

Options: ReplyQuote
Re: Problems with WampServer 2.5
Posted by: Otomatic (Moderator)
Date: September 14, 2014 03:00PM

Hi,

The name of the file must have the php extension, example: wamp/www/test/my_file.php and you must launch the file with the adress bar of the brownser:
(http://localhost/test/my_file.php)

For more test you must use VirtualHost: [forum.wampserver.com]

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

Options: ReplyQuote
Re: Problems with WampServer 2.5
Posted by: yen (---.prod-infinitum.com.mx)
Date: September 14, 2014 06:21PM

Otomatic thanks for your support the problem was in the URL address, I'm using note Pad ++ to create and launch the PHP code but I was forgotten to call the server program (Apache), changing the URL address and putting "localhost" in this . Thanks for reminding me that I have to do this.... Hahahahahahahahahaha

Options: ReplyQuote


Sorry, only registered users may post in this forum.