Page 1 of 1

php files open in text editor

PostPosted: 03. September 2018 11:26
by morayweb
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.

Re: php files open in text editor

PostPosted: 03. September 2018 11:32
by Altrea
How do you try to "open" saved php files?

Re: php files open in text editor

PostPosted: 03. September 2018 11:53
by morayweb
When I publish them to the root the prog then asks if you want to preview which opens up chrome browser.

Re: php files open in text editor

PostPosted: 03. September 2018 12:28
by Altrea
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?

Re: php files open in text editor

PostPosted: 03. September 2018 13:20
by morayweb
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.

Re: php files open in text editor

PostPosted: 03. September 2018 15:14
by Altrea
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

Re: php files open in text editor

PostPosted: 03. September 2018 16:07
by morayweb
That’s poor and disappointing. Can you recommend a better ide I’m rubbish at coding.

Re: php files open in text editor

PostPosted: 03. September 2018 16:32
by Nobbie
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.

Re: php files open in text editor

PostPosted: 03. September 2018 17:16
by morayweb
Ok thanks again.

Re: php files open in text editor

PostPosted: 03. September 2018 17:18
by Altrea
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.