php with xampp - Post ID 87755
Hi! Can anyone help me with getting php to work with coffeecup html editor. I've installed xampp and everything works fine.
To parse the php I have to open files using the path https://localhost/index.php. If I open the same file in coffeecup (C:/xampp/htdocs/index.php) the php code doesn't work. If I import the page from the web using https://localhost/index.php the code imports but the php is converted into html. Does php work in coffeecup? Any suggestions? Thanks very much!
To parse the php I have to open files using the path https://localhost/index.php. If I open the same file in coffeecup (C:/xampp/htdocs/index.php) the php code doesn't work. If I import the page from the web using https://localhost/index.php the code imports but the php is converted into html. Does php work in coffeecup? Any suggestions? Thanks very much!
steph o wrote:
Hi! Can anyone help me with getting php to work with coffeecup html editor. I've installed xampp and everything works fine. To parse the php I have to open files using the path https://localhost/index.php.
Hi! Can anyone help me with getting php to work with coffeecup html editor. I've installed xampp and everything works fine. To parse the php I have to open files using the path https://localhost/index.php.
That all sounds good.
steph o wrote:
If I open the same file in coffeecup (C:/xampp/htdocs/index.php) the php code doesn't work...Does php work in coffeecup? Any suggestions? Thanks very much!
If I open the same file in coffeecup (C:/xampp/htdocs/index.php) the php code doesn't work...Does php work in coffeecup? Any suggestions? Thanks very much!
I'm not sure what you mean by it doesn't work. All the editor does is edit raw code. It doesn't process the code and display the final page like your testing server.
You need to use the editor and the testing server in tandem. Make changes to the code, save to htdocs, view in browser via localhost, and make more changes to the code in the editor.
I am in agreement with the originator of this thread. When one is editing code then we want to click the preview. We want the editor to not flag php stuff. It would be nice if it recognized php.

I don't think it is possible yet to view php files with CC HTML editor. For that there must be a setting pointing to the php executable.
I asked the developers for that a while back...
I asked the developers for that a while back...
Ha en riktig god dag!
Inger, Norway
My work in progress:
Components for Site Designer and the HTML Editor: https://mock-up.coffeecup.com
Inger, Norway
My work in progress:
Components for Site Designer and the HTML Editor: https://mock-up.coffeecup.com
I personally have opened php files in the HTML Editor, and have also adjusted code in them to resave with the original file format. I have done this, for instance, to change the message in the contact enquiry of the form builder file.
However, I have used a remote server and not a local server for all my changes so how the parsing would work for you I cannot say I'm afraid.
However, I have used a remote server and not a local server for all my changes so how the parsing would work for you I cannot say I'm afraid.
That would be a really nice feature to add into html editor or to allow an interface with xampp for the preview or have a php plugin.
Web Design: https://www.websnoogie.com
Member - BBB: Websnoogie, LLC
Member - BBB: Websnoogie, LLC
Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.