Php snippet live preview

Is there a way to run php Code Snippet in live preview ?

From my understanding @kanjo that is a no.

I haven’t tried but maybe if you setup a local host it could work?
But the best was is to have a test folder on your hosting server and test it there.

Hi @kanjo,

This isn’t possible directly with Sitely’s built‑in preview, but you can do it locally using a tool like “MAMP”, which simulates a web server on your Mac.

Here’s how:

  1. Export your site into a folder on your computer.
  2. Configure MAMP so that this folder is used as the local server’s root directory.
  3. Launch MAMP and open your site via an address like http://localhost:8888, as indicated in the app.

Your PHP code will then be correctly interpreted, allowing you to test your web pages and PHP scripts before publishing.