dreamweaver and php

Discussion in 'Web Design and Development' started by sk3pt1c, Jan 31, 2007.

  1. sk3pt1c macrumors 6502a


    Nov 29, 2005
    a simulacrum
    how can i run php pages from dreamweaver?
    i have some script i want to put in my pages and i can't preview them
    unless i upload them to the server
    can dreamweaver do that in any way?
  2. Mitthrawnuruodo Moderator emeritus


    Mar 10, 2004
    Bergen, Norway
    I don't think DreamWeaver is capable of previewing php, I'm afraid.

    You can however enable php support for the (Apache) web server on your Mac. There are several different approaches to enabling this... easiest is to edit your httpd.conf file, but there are also thing like MAMP if you don't want to mess with your system...

    And TacoHTML has php previewing capabilities (but I'm not 100% sure if it will work if php support is off for the web server).
  3. nightelf macrumors 6502

    Mar 25, 2003
    You cannot preview PHP scripts from Dreamweaver.

    You need to activate PHP and the webserver in your Mac, move the files to ~/Sites/ and check it in your browser at http://localhost/~yourusername/
  4. rogersmj macrumors 68020


    Sep 10, 2006
    Indianapolis, IN
    PHP is not just markup like HTML. It's a scripting language that has to be interpreted by a PHP server, which then outputs HTML to a browser. You can't just "preview" PHP. If you get yourself a web server running, like Apache, then you can easily execute PHP files as long as they are within the directory Apache is setup to serve.

Share This Page