this is my first post on the forum. iv been learning html and php for a few months now, and iv always been using XAMPP.
Iv been working on a php project for a month now, its quite large, so im defining the site root in php for easy navigation between pages.
- Code: Select all
define('SITE_ROOT', DS.'Users'.DS.'user'.DS.'Sites'.DS.'project');
i wanted to use the osx default root "Users/'user'/Sites" directory, i read up that i need to change in the httpd.cong lines to :
DocumentRoot "/Users/'user'/Sites"
<Directory "/Users/'user/Sites">
Im now able to view my Sites directory form localhost/ in my browser. but all my php pages show up as plain text.
am i missing something?
thanks in advance
-nerve
XAMPP v.1.7.3
OS X 10.6.8