Page 1 of 1

basic help!

Posted: Mon Sep 29, 2008 10:30 am
by luketheluke
I'm totally new to PHP and maybe i should be on another forum, I'm creating a page in dreamweaver and i want to be able to have one basic php page and then use php to pop into the content depending on the selection...what should i put this is in? I'm using mainly ap div tags for the site...do i need to use a table or can i put the dynamic content in a div tag and run php in there?

Also i'm trying to use dreamweaver and a local server (XAMMP) do need to have this program running to view pages in dreamweaver? Do i need to ALSO install a PHP program? Do i have to make changes to the html index file i have now saved as (xhtml) or .php?

Thankyou very much

Truth(aka Luke)

Re: basic help!

Posted: Mon Sep 29, 2008 1:09 pm
by JAB Creations
Hi Luke and welcome to DevNetwork. :)

When you run Apache (I also use XAMPP) you access your work at http://localhost/.

I'm not really familiar with Dreamweaver as frankly it's an application for people who require structure in the absence of having their own.

You'll want to go in the apache\conf\httpd.conf and configure your htdocs folder and comment them out as so...
#DocumentRoot "C:/MEDIA/INTERNET/xampp/htdocs"
#<Directory "C:/MEDIA/INTERNET/xampp/htdocs">

You will need to save and restart the Apache service for this to take effect. I highly recommend making a copy of the original httpd.conf file before you start modifying it.

You'll obviously want to set your own path and I highly recommend it not being on your OS hard drive and on a Raid 1 disk for redundancy purposes.

I keep my work in versioned folders. In example...http://localhost/Version 2.8/ and you may want to consider the same thing.

If you're still going to use Dreamweaver until you find your own structure then you'll need to figure out how to make it work with the localhost.

Since this is a clientside question this thread should have been originally posted in the clientside forum but like all noobs you didn't bother to read through the forum list. Please consider this mandatory etiquette when you post any where on the internet as this irks a lot of people, wastes the time of moderators, and increases your wait time because you didn't post in a forum where people who can answer your thread will see it quicker.

Also we know you're Luke. :|

Lastly XAMPP already includes PHP so just go ahead and start messing with it and have fun.

Re: basic help!

Posted: Mon Sep 29, 2008 6:17 pm
by panic!
What is this 'structure' you keep going on about?