PHP not work Windows 10
Posted by: mroczek650 (---.dynamic.chello.pl)
Date: August 14, 2015 07:16PM

Welcome
I have problem PHP on my server. I can't run php script, I see code in my browser. I use windows 10.I enable short_open_tag and not work. I can not run a simple script.

<?php echo "Hello, World!"; ?>


If I click the right mouse button show page source I see red code ( Firefox ) code not work.

What happened ?

Options: ReplyQuote
Re: PHP not work Windows 10
Posted by: RiggsFolly (---.as43234.net)
Date: August 14, 2015 09:31PM

Hello,

Did you name the file to have a .php extension? xxx.php

Did you use notepad to create the file? Bad idea, download notepad++, its free and a good editor.

Did you turn off, "hide extensions of known file types", in Explorer? No ! Then do so you are a developer now, not a user!

---------------------------------------------------------------------------------------------
(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 not work Windows 10
Posted by: Kirk (---.dhcp.stcd.mn.charter.com)
Date: August 15, 2015 06:53PM

If your PHP code is embedded in the page then it must be published as a PHP page, not HTML.

Options: ReplyQuote


Sorry, only registered users may post in this forum.