I am, admittedly, a beginner and need the following questions answered please...

I am trying to do a file upload section on a website. Authorised users can enter password and upload files to a certain page. Other people can view and download these uploaded files.

Questions are:
Do i need to have a server (apache etc) or cant i just upload the info to a page?
Do guestbooks use a server to get their info to display? If not can i have some thing like a guestbook that users upload the files to?
Do i need to "download php" like you download a software program, or will php run on any browser?

I will be using dreamweaver mx to create the pages.

thanks for helping me get started...

Floz.

    I’m new to this to, but my advice is to start from the scratch.
    You need a phpserver.
    You need to download several things to get started with php. Php, Apache or install IIS, MySQL to work with db.

    Guestbook’s are made with either db or text-files to my knowledge.

    php is a server script language so it self don’t depend on different types of browsers but the html output has the same problem as any html.

    Conclusion:
    I heard that Dream MX can create an own php server on your local machine so you can probably do all this in Dream MX but only on your local machine. Even if you mange to this you have no clue what you have done. Try searching on the net for php tutorials.

    Cheers knuff.

      Thankyou for your response.

      I have installed php 4.3.1 and have installed iis from my w2k cd.

      i have a couple of php example files, so, how do i get these two to ... work together ?

      Thanks.

        I personally run Apache with any of the installs I have. I run Redhat at home and Win2k at work. Apache works very well with all of it. If you search Google you can find allot of articles on installs. Also I have an article about how to get Apache, PHP, MYSQL, and Java on a Win box. If you would like it I can email it to you. It is 1.5mb.

        Wil

          It depends what kind of example you have. If its only phpscripts (no db included) then ISS & php will do. First install ISS then php. Then copy your php-files to c:/Inetpub/wwwroot. Now open a browser and type this address: http://localhost/nameofthefileyouwanttotest.php

          Cheers Knuff

            I see. Well, i knew where the IIS wwwroot folder was, but i also installed apache to take a look at it, and now the http://localhost brings up the default apache page. Where are the wwwroot files stored in relation to apache?

            Or better yet, how do i make iis the default instead of apache?

              no not better yet for iis, for apache root dir, search for the "htdocs" folder it most likely resides there

                Legendary...
                You are 100% correct 🙂

                Now to try and make it work..

                thankyou

                  oh dear.

                  i have encountered problems again.

                  maybe ill try something simple to start.

                  has anyone got a/any PHP file(s) they can give me just so as i can test that this apache/php is working for me.

                  ie so i can put a couple of php files in the htdocs folder and view it. And if you can give me some samples, can you also tell me what is 'supposed' to happen?

                  thankyou so much to all that have helped...
                  im trying :/

                    Try:

                    Save as "phpinfo.php"

                    <?php
                    phpinfo();
                    ?>
                    

                    The visit http://localhost/phpinfo.php

                    It will give you all information about the web server and php on your system.

                    Wil

                      i got a blank "Untitled Document".

                      What can i say... :/

                        you are on a win32 box, correct, as much as i hate to say this, there is a nice all in one, stop throwing tomatoes, i would usually agree that installers aren't good, but this one from foxserv is great it installs apache, php, mysql, perl, python, all in one, it works great, you can get it at www.foxserv.net

                          Write a Reply...