HTML and PHP

rsklein33
27 Posts
rsklein33 posted this yesterday
Ask a Question

Is there a way to use HTML publish to not make comments of my PHP code?
Is there a way to publish HTML with a PHP extension?
Is there a way to insert PHP and HTML code using an external file instead of pasting the code in from a text editor?

Vote to pay developers attention to this features or issue.
2 Replies
Order By: Standard | Newest
Support Team
Support Team posted this yesterday

Hi,

Is there a way to use HTML publish to not make comments of my PHP code?

Unfortunately, this question is a bit unclear to me. Could you please attach a screenshot demonstrating this? Thank you.

Is there a way to publish HTML with a PHP extension?

You can add a PHP code using our PHP Element, but the code will be executed only on websites with CMS (WordPress and Joomla). The HTML export does not support PHP, and the code will be ignored.

Is there a way to insert PHP and HTML code using an external file instead of pasting the code in from a text editor?

Though our editor does not provide a built-in option to upload external code files, you can add them directly into your site folder after the HTML export. Will this solution apply to you?
...................................................
Sincerely,
Paul C.
Nicepage Support Team

Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1
Follow us on Facebook: http://facebook.com/nicepageapp

rsklein33
27 Posts
rsklein33 posted this 24 min ago

If I insert into a HTML window such as <?php echo "hellow";?>, what is published is <!--?PHP echo "Hellow"; ?-->. It has been commented and won't execute on the server. Is there a way to disable this action?

What diffference is it to use the PHP Element or the HTML Element? I just want a way to insert my own code and for it to be sent to my server when I publish using HTML publish. I can change the extension from HTML to PHP after I publish it but is there an option for me to publish with a PHP extension?

I want the file code to be entered during editing in NicePage so that I can document and control where it is placed using your editer. I expect to need many of these entries on a given page.

You must log in or register to leave comments