Pages: [1] |
|
|
Author |
Topic: Use with existing PHP site (Read 869 times) |
scooper12
Posts: 4
|
I have used Snippetmaster on HTML web pages. Will there be any issues with snippets around text content on PHP pages? I'm wondering if the page preview will work?
Thanks,
Sharon
|
|
|
|
admin
Forum Administrator
Posts: 3169
SnippetMaster Author
|
Hello,
If you want to edit a .php page, that is fine.. as long as the actual code you are editing in the editor does not contain any PHP code. (The editor in Snippetmaster will probably break your PHP code since it is an HTML editor and not a PHP editor.)
|
|
|
|
scooper12
Posts: 4
|
I understand that , the snippet would be around text, not PHP code. However, I wondered if the page preview would work. Will the PHP code be able to run as it does when the page is viewed from a browser?
|
|
|
|
admin
Forum Administrator
Posts: 3169
SnippetMaster Author
|
Hello,
No, the PHP code on the .php page would not work correctly, because it would not be executed by the server.
When Snippetmaster previews a page, basically it just collected the existing page code, replaces whatever part was changed in the editor, and then shows the results in the browser.
PHP code needs to "execute" on the server in order to work, so that part of the page would not work.
|
|
|
|
|
Pages: [1]
|
|
|
|