SnippetMaster Support Forums
Return to main website
 
September 24, 2014, 10:57:02 PM
* Show unread posts since last visit.
* Show new replies to your posts.
Welcome, Guest. Please login or register.
Did you miss your activation email?
September 24, 2014, 10:57:02 PM

Login with username, password and session length
Search:  
Advanced search
* Home Help Search Login Register
SnippetMaster Support Forums  |  General  |  Pre-Sales Questions  |  Topic: Use with existing PHP site « previous next »
Pages: [1] Print
Author Topic: Use with existing PHP site  (Read 869 times)
scooper12

Posts: 4


[-] Use with existing PHP site
« on: November 16, 2012, 06:27:30 PM »

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
Report to moderator   Logged
admin
Forum Administrator
*
Posts: 3169

SnippetMaster Author


WWW
[-] Re: Use with existing PHP site
« Reply #1 on: November 17, 2012, 06:10:02 AM »

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.)

Smile
Report to moderator   Logged
scooper12

Posts: 4


[-] Re: Use with existing PHP site
« Reply #2 on: November 18, 2012, 12:03:15 PM »

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?
Report to moderator   Logged
admin
Forum Administrator
*
Posts: 3169

SnippetMaster Author


WWW
[-] Re: Use with existing PHP site
« Reply #3 on: November 18, 2012, 12:07:40 PM »

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.

Report to moderator   Logged
Pages: [1] Print 
SnippetMaster Support Forums  |  General  |  Pre-Sales Questions  |  Topic: Use with existing PHP site « previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!