www.webdeveloper.com
Results 1 to 4 of 4

Thread: Can't preview mixed php/html files in Komodo

  1. #1
    Join Date
    May 2009
    Posts
    124

    Can't preview mixed php/html files in Komodo

    I feel like an idiot because I can't figure this out. For years now I have been coding my html/php right on the server. I finally downloaded komodo and absolutely love the html editor.

    However, most of my pages have a .php extension (usually so I can use an include to include the header/footer, etc.). If I choose a php file in Komodo it won't preview the file and if I try to view the file in Chrome it just outputs as html text.

    I am assuming I have to install php or something. I am using a Mac with Mountain Lion. I've tried following the instructions to install php or to change my path to my php.ini and I am totally lost.

    Can anyone help?

  2. #2
    Join Date
    Jul 2012
    Posts
    55
    A browser doesn't know what to do with php because it is not processed in the browser, only on the server. Set up a local host and then try it.

  3. #3
    Join Date
    May 2009
    Posts
    124
    Thank you. That's exactly the part I don't understand though. How do I set up a local host? Thanks.

  4. #4
    Join Date
    Jul 2012
    Posts
    55
    install these packages:
    php
    php-mysql
    phpmyadmin

    I believe that should be enough to get you started.. for server wise.. or here is a link that should be pretty much the same for all platforms:
    https://help.ubuntu.com/community/ApacheMySQLPHP

    DO NOT depend on the LAMP server, stick to having each package always up to date and under the same manager.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles