i'm pretty sure it's the htdocs one

Cgraz

    I put both files in the htdocs folder. But I did not work??

    But also in the htdocs folder, there is a manual folder, with about 5 other folders in it??

    😕 😕

      i'm pretty sure it should work in that htdocs folder. Are you sure apache is running?

      Cgraz

        I assume Apache is running...

        I checked the http://localhost in my browser & I got this message...

        If you can see this, it means that the installation of the Apache web server software on this system was successful. You may now add content to this directory and replace this page.

        Seeing this instead of the website you expected?
        This page is here because the site administrator has changed the configuration of this web server. Please contact the person responsible for maintaining this server with questions. The Apache Software Foundation, which wrote the web server software this site administrator is using, has nothing to do with maintaining this site and cannot help resolve configuration issues.

        I am also doing this in Dreamweaver if that matters...

          there should be an index.htm or index.html in that htdocs folder. Open it up and see if it says

          If you can see this, it means that the installation of the Apache web server software on this system was successful. You may now add content to this directory and replace this page.

          If not, locate that file. That's where you want to place your .php files.

          Cgraz

            Quote: there should be an index.htm or index.html in that htdocs folder. Open it up and see if it says.

            There are a bunch of index.html files in htdocs folder. But they all have different have words after .html Like index.html.pt, index.html.no, index.html.cz etc... and they are files that can not be opened...

            😕

              Quote: What is the URL you're viewing in your browser? It should be something to the effect of:
              http://localhost/filename.php

              I put in both...
              http://localhost/orderform.html
              and
              http://localhost/processorder.php

              Neither one worked...I assume because they are not in the local host folder...? dont know where it is??

              But when I did the
              http://localhost/orderform.html

              & pressed Submit. It gave me this message...

              Method Not Allowed
              The requested method POST is not allowed for the URL /processorder.php.

              Apache/1.3.27 Server at Rafik.cablebahamas.net Port 80

                First off, you should put all your files in teh same folder as all those index.html.* files are.

                And delete those, those are just index pages for differnet languages. Default Apache ones.

                How did you POST to processorder.php? You just said in the sentence above neither page worked...

                I would suggest you create a file with just <?php phpinfo(); ?> and make sure PHP is working. It will display a ton of stuff if its working.

                You did install both Apache and PHP right?

                  Quote:How did you POST to processorder.php? You just said in the sentence above neither page worked...

                  Okay, this is what I did. I have this PHP book. & I am tryin this example..."Bobs Auto Parts order form"...This the script on the 1st page...

                  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
                  <--html>
                  <form action="processorder.php" method=post>
                  <table border=0>
                  <tr bgcolor=#cccccc>
                  <td width=150>Item</td>
                  <td width=15>Quantity</td>
                  </tr>
                  <tr>
                  <td>Tires</td>
                  <td align="center"><input type="text" name="tireqty" size="3"

                  maxlength="3"></td>
                  </tr>
                  <tr>
                  <td>Oil</td>
                  <td align="center"><input type="text" name="oilqty" size="3" maxlength="3"></td>
                  </tr>
                  <tr>
                  <td>Spark Plugs</td>
                  <td align="center"><input type="text" name="sparkqty" size="3"
                  maxlength="3"></td>
                  </tr>
                  <tr>
                  <td colspan="2" align="center"><input type="submit" value="Submit Order"></td>
                  </tr>
                  </table>
                  </form>
                  </html-->

                  Then It said create a new doc. & put this code...

                  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
                  <--html>
                  <head>
                  <title>Bob's Auto Parts - Order Results</title>
                  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
                  </head>

                  <body>
                  <h1> Bobs Auto Parts</h1>
                  <h2> Order Results</h2>
                  <?php
                  echo "Order processed.";
                  ?>

                  </body>
                  </html-->

                  Okay 1st just had the 2 files html & .php in a folder on the desk top, when I clicked submit. It went to the 2nd page, but I did not see the php "Order processed" words. Only the html basic text "Bobs Auto Parts Order results"....

                  Now, I know I had in in the wrong folder, now I am trying to put them in the right place...

                  I hope I am explain'ing my self right, because I really would like to get this to work...

                    Quote:I would suggest you create a file with just <?php phpinfo(); ?> and make sure PHP is working. It will display a ton of stuff if its working.

                    hmmm. You mean create a new html html file in dreamweaver Mx and put the <?php phpinfo(); ?> code in the body tags save it & preview it...

                    If so, I did that & I saw I blank screen in the browser? But there was the yellow php icon in dreamweaver Mx...

                    😕

                      Okay,

                      I made the .php file put in in the htdocs folder. the name was oner.php Then I did http://localhost/oner.php. Then It asked me if I wanted to open or save the file. I clicked Open.

                      Then I took me to Dreamweaver Mx, the file was there. I then clicked preview in browser. Then it said...

                      "To preview pages containing server side code you need a testing sever. Would you like to speficy one now"

                      I clicked yes. Then I took me to the Define sites window. There was the local info option & the local root folder was in the Apache/htdocs folder.

                      & there was a testing server option. I clicked it & I saw "server model", "this site contains" & "Access"

                      Now Dont which one to pick. I assume in the server model I pick PHP & Access is local network...?

                      I did that & got a blank screen i the browser...?

                        If it asked you if you wanted to download or save the *.php file, then you either dont' have PHP installed correctly, or havn't restarted your webserver after installing PHP.

                        Try restarting Apache.

                        If you still have issues, then you need to install PHP correctly. You did install PHP right?

                          Quote: or havn't restarted your webserver after installing PHP.

                          No. I did not. how you do that?

                          Quote:Try restarting Apache.

                          Dont know how to do that .

                          Yes I installed php. I installed php-4.3.0-installer that I got from the cd rom. & it said it was installed. & there is a php folder in my c drive. with BACKUP, sessiondata, uploadtemp folders & 3 other files.

                            Chäncës ärë, íf yøü ínställëd thís frøm ä bøøk, ít's prøbäbly än øldër vërsíøn. Chëck yøür httpd.cønf fílë ín /äpächë/cønf, änd fínd thë línë thät løøks sømëthíng líkë thís:

                            ÄddTypë äpplícätíøn/x-httpd-php .php3 .phtml .php4

                            Îs thërë ä ".php" ëxtënsíøn øn thät línë? Îf nøt, püt ít thërë:

                            ÄddTypë äpplícätíøn/x-httpd-php .php .php3 .phtml .php4

                            Ëíthër thät, ør rënämë yøür fílë tø hävë thë .php3 ëxtënsíøn.

                            Gøød Lück!

                            Mødërätør(s): Përhäps thís pøst shøüld bë püt ín thë Nëwbíë førüm?

                              Originally posted by BuzzLY
                              Mødërätør(s): Përhäps thís pøst shøüld bë püt ín thë Nëwbíë førüm?

                              T&ouml;ss&uuml;p - N&eacute;wb&iacute;&eacute; &ograve;r &Iuml;nst&agrave;ll?

                              M&ouml;v&iuml;ng t&ograve; &Icirc;nst&aring;ll - B&uacute;nk&eacute;rm&aacute;st&eacute;r || p&igrave;&egrave;rsk c&aring;n m&ouml;v&ecirc; &iacute;t &ograve;n &icirc;f n&eacute;&egrave;d b&euml;.

                                6 days later

                                Quote:Chäncës ärë, íf yøü ínställëd thís frøm ä bøøk, ít's prøbäbly än øldër vërsíøn. Chëck yøür httpd.cønf fílë ín /äpächë/cønf, änd fínd thë línë thät løøks sømëthíng líkë thís:

                                ÄddTypë äpplícätíøn/x-httpd-php .php3 .phtml .php4

                                Îs thërë ä ".php" ëxtënsíøn øn thät línë? Îf nøt, püt ít thërë:

                                ÄddTypë äpplícätíøn/x-httpd-php .php .php3 .phtml .php4

                                Ëíthër thät, ør rënämë yøür fílë tø hävë thë .php3 ëxtënsíøn.

                                I dont see a httpd.conf file. only httpd text doc. where it says stuff like..."This is the main Apache server configuration file. It contains the
                                configuration directives that give the server its instructions.
                                See <URL:http://www.apache.org/docs/> for detailed information about
                                the directives." with a bunch of other information...?

                                and a httpd.default text doc. with mostly the same stuff.

                                😕

                                  Hi guys...

                                  I've been watching this one with interest as I have a very similiar problem. I'm using Windows98se.

                                  I've got Apache operating.I type in http://localhost and I get the default screen. I've also created a file called test.php which I have placed in the htdocs folder.However when I type http://localhost/test.php I get a window asking if I want to open this file or save to disk.Either way when it opens I get an error window pop up with the following. Access to the specified device,path or file is denied.

                                  Any ideas on where i've gone wrong. I've restarted Apache and it still does the same thing.I've also looked at the conf file and added the following lines.

                                  ScriptAlias /php/ "c:/php/"
                                  Action application/x-httpd-php /php/php.exe
                                  AddType application/x-httpd-php .php

                                  thanx Dave😕

                                    The fact that it's asking you if you want to download it confirms that it recognized the mime type. PHP is NOT apache. If you installed Apache, you still need to install PHP. Go to PHP.net, download it, and install it.