PHP pages shows the php script on my web page
Posted by: Sara16 (213.143.60.---)
Date: October 05, 2016 11:49AM

It's means.

when I write: echo "Hola";

In the web page shows me: echo "Hola;

I don't understand, because It has to show "Hola" and not the completly script.

Please, I need some help! Thanks.

Options: ReplyQuote
Re: PHP pages shows the php script on my web page
Posted by: RiggsFolly (Moderator)
Date: October 05, 2016 12:04PM

Its a mistake.

Either the script file does not have an .php extension

Or

You are double clicking on the file in explorer and not as you should be using the browser and entering the url
`localhost/project1/test.php`

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: PHP pages shows the php script on my web page
Posted by: Patabugen (---.range86-171.btcentralplus.com)
Date: October 13, 2016 05:50PM

Do you have <?php before your 'echo' command?

```
<?php
echo "Hola";
```
or just
```
echo "Hola";
```

Also check whether you're using short open tags ( e.g. <? instead of <?php ) and whether they're enabled in PHP (Left clickWampManager -> PHP -> PHP Settings )

Options: ReplyQuote


Sorry, only registered users may post in this forum.