Results 1 to 2 of 2

Thread: not able to html with php code on lamp server

  1. #1
    Join Date
    Dec 2013
    Beans
    1

    not able to html with php code on lamp server

    I am not able to run html with php code page. If I run using php, I only get php output but html code same as html code. If I run as html I only get html output but not not php output.
    So how do I run both code in one. I have installed LAMP server which contains php,mysql, and apache2 server. I tried with several options which I found on ubuntu community but could not succeed. I have ubuntu 13.04 installed.

  2. #2
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: not able to html with php code on lamp server

    Are you running the php code from *.php files? By default the web server only parses php through the php process if the code is in php files, not html files.
    Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide

    Tomorrow's an illusion and yesterday's a dream, today is a solution...

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •