WebSite X5Help Center

 
David B.
David B.
User

Blog displays ok in preview... but when published it displays only HTML code  en

Autor: David B.
Visited 1738, Followers 1, Udostępniony 0  

Blog displays ok in preview... but when published it displays only HTML code:

getPosts()); while ($i < 3 && $i < count($posts)) { echo ''; echo '' . $posts[$i]['title'] . ''; echo '' . $posts[$i]['summary'] . ''; echo 'Published by ' . $posts[$i]['author'] . ' - ' . $posts[$i]['timestamp'] . ''; echo '

Posted on the
4 ODPOWIEDZI - 1 PRAWIDłOWA ODPOWIEDź
Rbbrt WebsiteX5.info
Rbbrt WebsiteX5.info
User

Hi David,

Hmmm... What you see is PHP-code, which should be rendered by the webserver. Does your webserver provides PHP? Ask your hosting provider.

Succes,

Robert

Czytaj więcej
Posted on the from Rbbrt WebsiteX5.info
David B.
David B.
User
Autor

I am simply publishing to a local folder... L:\David\EricSalin\Website\WebSiteX5_2018 and I am just clicking on the index.html file.

How do I make sure that my default Browser (FireFox) is processing the php?

Additional Information (question)... the (local) website does not work in uSoft Edge (WIN 10) at all, the menu is not functioning.

Czytaj więcej
Posted on the from David B.
David B.
David B.
User
Autor

Sorry for my lapse of smart !

Of coure the object is not working when I view it locally... there is no WebServer interpreting the PHP!

When I pushed o my host server it wored ok.

Czytaj więcej
Posted on the from David B.
David B.
David B.
User
Autor
David B.
Sorry for my lapse of smart ! Of coure the object is not working when I view it locally... there is no WebServer interpreting the PHP! When I published  my host server it worked ok.
Czytaj więcej
Posted on the from David B.