Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

sk3pt1c

macrumors 6502a
Original poster
Nov 29, 2005
918
6
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?
thanks
 
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).
 
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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.