Please help im new to php
i have windows pro xp
no iis installed i have just installed XAMPP and i have it all working in localhost, i think.

what i want to do is simply view php web pages that i have made in dreamweaver 8 everytime i view using browser (ie) nothing but the XAMPP page pops up.

if there is any other product for viewing and changing web pages locally please help.

i need super slow info on how to configure macromedia ...... :mad:

    umm... your PHP pages need to be in the XAMPP document root (not sure what it is, but do a search for "htdocs"). I'm guessing it could be something like:
    <XAMPP INSTALL PATH>/apache(2)/htdocs/

    Then, when you view in your browser, you'll have to do:
    http://localhost/file.php

      ok i have now found the folder c:\programfiles\htdocs
      and placed the newly made and inported pages in to the folder
      i now get
      Fatal error: Call to a member function query() on a non-object in C:\Program Files\xampp\htdocs\p_index.php on line 469

      i have made a new site in dreamweaver and located the htdocs folder as a test server.
      no joy
      there must be an easier way of making and viewing php web pages i will download anythng to get it to work please any other software or php products.....

      my htdocs folder is not in apache folder...

        Can we see a few lines of code around line 469 in your p_index.php file? It seems it is all working now as that is a php error, which meens your server is working, just not your code.

        You can use a plain text editor to create / edit php files, but the syntax highlighting in dreamweaver might come in handy. Personally, I use vim, but then again, I dont use windows.

          ok here goes again,
          i have made a new site and placed folder in C:\Apache2\htdocs Newfolder

          typed hello something saved and ran.
          i get the following page

          http://localhost/index.php

          so something is not configured correctly because i should see the web page.
          what need configuring now?

            wilburforce wrote:

            i get the following page

            http://localhost/index.php

            That's no good to us, it points to localhost and in this context that is your dev PC. You'd need to give us a public IP / URL to see that page.

            As someone earlier said, post some of the code that is around the point where you get your error.

              wilburforce wrote:

              ok i have now found the folder c:\programfiles\htdocs
              and placed the newly made and inported pages in to the folder
              i now get
              Fatal error: Call to a member function query() on a non-object in C:\Program Files\xampp\htdocs\p_index.php on line 469

              i have made a new site in dreamweaver and located the htdocs folder as a test server.
              no joy
              there must be an easier way of making and viewing php web pages i will download anythng to get it to work please any other software or php products.....

              my htdocs folder is not in apache folder...

              I'm using Macromedia dreamweaver since more 4 years and I'm sure that's the best editor also for php newbies. Maybe you should read some beginner tutorials on macromedia.com

                Just did a quick google for dreamweaver + php, one of the first results looks like it may be use to you:-

                Dreamweaver Developer Center - PHP

                It looks like it takes you through a couple of tutorials, building a PHP blog and forum using Dreamweaver. Probably a very good way to get to grips with PHP dev under Dreamweaver.

                  Write a Reply...