php files open in text editor

Problems with the Windows version of XAMPP, questions, comments, and anything related.

php files open in text editor

Postby morayweb » 03. September 2018 11:26

Hi There I wonder if someone could help.
I have been using wysiwyg web editor recently and when I save files as php and save to xampp root folder php files open in a text editor rather than display as a web page. Any help would be appreciated. thank you.
morayweb
 
Posts: 5
Joined: 03. September 2018 11:23
XAMPP version: 7.2.9
Operating System: windows 10 pro

Re: php files open in text editor

Postby Altrea » 03. September 2018 11:32

How do you try to "open" saved php files?
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11926
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: php files open in text editor

Postby morayweb » 03. September 2018 11:53

When I publish them to the root the prog then asks if you want to preview which opens up chrome browser.
morayweb
 
Posts: 5
Joined: 03. September 2018 11:23
XAMPP version: 7.2.9
Operating System: windows 10 pro

Re: php files open in text editor

Postby Altrea » 03. September 2018 12:28

And which url does your browser tell you at the time you see the code in your chrome browser?

Which WYSIWYG editor do you use?
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11926
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: php files open in text editor

Postby morayweb » 03. September 2018 13:20

Hi it says c:/xampp/htdocs/testsite/page1.php all i get is the code printed on the page now.

I am using wysiwyg web builder http://wysiwygwebbuilder.com/

thanks for any help.
morayweb
 
Posts: 5
Joined: 03. September 2018 11:23
XAMPP version: 7.2.9
Operating System: windows 10 pro

Re: php files open in text editor

Postby Altrea » 03. September 2018 15:14

Thats the problem. Wysiwygwebbuilder is not an php IDE, it can only work efficiently with client side scripts like HTML, CSS, JS, etc.

Read this, especially the note at the end:
https://www.wysiwygwebbuilder.com/forms_php.html
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11926
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: php files open in text editor

Postby morayweb » 03. September 2018 16:07

That’s poor and disappointing. Can you recommend a better ide I’m rubbish at coding.
morayweb
 
Posts: 5
Joined: 03. September 2018 11:23
XAMPP version: 7.2.9
Operating System: windows 10 pro

Re: php files open in text editor

Postby Nobbie » 03. September 2018 16:32

morayweb wrote:That’s poor and disappointing. Can you recommend a better ide I’m rubbish at coding.


There is no IDE that can replace the needs of beeing a good programmer. PHP is a programming language like C or Pascal etc. which requires knowledge of structured programming.
Nobbie
 
Posts: 13170
Joined: 09. March 2008 13:04

Re: php files open in text editor

Postby morayweb » 03. September 2018 17:16

Ok thanks again.
morayweb
 
Posts: 5
Joined: 03. September 2018 11:23
XAMPP version: 7.2.9
Operating System: windows 10 pro

Re: php files open in text editor

Postby Altrea » 03. September 2018 17:18

While there are a few WYSIWYG Editors for PHP like Dreamweaver, nuSphere or Frontpage, none of them is really good.
If you are not good at programming there are plenty of ways to learn it.
Or you are limited to use any website generators like https://www.wix.com
Or you had to find a friend or a paid coder to do that work for you.

PHP is not rocket science. You can get first motivating results in an hour.
PHP is easy to learn but harder to master.
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11926
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 81 guests