[DOUBLE POSTING] doubt about "upload the phpfile to your webserver"

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • lintolawrance
    New Member
    • Oct 2006
    • 14

    [DOUBLE POSTING] doubt about "upload the phpfile to your webserver"

    hello,
    i am a student trying to learn php.i have a doubt about a sentence written in the textbook.the sentence is "upload the file to your web server", for that what i have to done.
  • steven
    New Member
    • Sep 2006
    • 143

    #2
    Originally posted by lintolawrance
    hello,
    i am a student trying to learn php.i have a doubt about a sentence written in the textbook.the sentence is "upload the file to your web server", for that what i have to done.
    Yoinked from google:

    "A Web Server is a computer on the World Wide Web (connected to the Internet Backbone) that stores HTML documents that can be retrieved via a Web browser."

    Everytime you visit a page on the Internet, you are connecting to a webserver which contains the HTML files that you see. When visiting a page, you download the files to your computer and see them on your browser. In order for PHP code to run, it needs to be placed within webserving software capable of running PHP code.

    PHP is a server side scripting language.

    In order for it to run, it needs to the PHP/Zend engine which, typically runs in a webserver environment. A popular setup, known as LAMP, is linux, apache, mysql and php. You can install your own development environment locally on your own computer, if it's just for yourself to view and play with.

    I think you can download complete packages which include Apache (the webserver) and MySQL the database system and PHP.

    A quick google found me this: http://www.uniformserv er.com/

    Give it a try.

    Comment

    • lintolawrance
      New Member
      • Oct 2006
      • 14

      #3
      Originally posted by steven
      Yoinked from google:

      "A Web Server is a computer on the World Wide Web (connected to the Internet Backbone) that stores HTML documents that can be retrieved via a Web browser."

      Everytime you visit a page on the Internet, you are connecting to a webserver which contains the HTML files that you see. When visiting a page, you download the files to your computer and see them on your browser. In order for PHP code to run, it needs to be placed within webserving software capable of running PHP code.

      PHP is a server side scripting language.

      In order for it to run, it needs to the PHP/Zend engine which, typically runs in a webserver environment. A popular setup, known as LAMP, is linux, apache, mysql and php. You can install your own development environment locally on your own computer, if it's just for yourself to view and play with.

      I think you can download complete packages which include Apache (the webserver) and MySQL the database system and PHP.

      A quick google found me this: http://www.uniformserv er.com/

      Give it a try.


      hai steven sir,
      thanks for giving the details.i will try my level best .
      goodbye.

      Comment

      • lintolawrance
        New Member
        • Oct 2006
        • 14

        #4
        hai steven sir,
        i have also one doubt which version (apache) is the best .i am using windowsxp platform

        Comment

        • lintolawrance
          New Member
          • Oct 2006
          • 14

          #5
          hello sir,
          my working platform is windowsxp.so that i already install the IIS.so that downloading and install of apache server is needed for me ?if no how i can possible to upload my phpfile to my webserbver.

          by linto
          Thanks in advance

          Comment

          • lintolawrance
            New Member
            • Oct 2006
            • 14

            #6
            sir,
            i am starting working with php.i done some programs.but now i have one problem.i do a program like to retrieve the name and email from a phpfile to another.but i can't get.

            this is the code "form.php"

            <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dt d">
            <html xmlns="http://www.w3.org/1999/xhtml">
            <head>
            <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
            <title>HTML Form</title>
            </head>

            <body>
            <!-- Script 2.1 - form.html -->

            <form action="handle_ form.php" method="post">

            <fieldset><lege nd>Enter your information in the form below:</legend>

            <p><b>Name:</b><input type="text" name="name" size="20" maxlength="40"/></p>

            <p><b>Email Address:</b><input type="text" name="email" size="40" maxlength="60"/></p>
            <p><b>Gender: </b><input type="radio" name="gender" value="M"/>Male
            <input type= "radio" name="gender" value="F"/>Female</p>
            <p><b>Age:</b>
            <select name="age">
            <option value="0-30">under 30</option>
            <option value="30-60">Between 30 and 60</option>
            <option value="60+">Ove r 60</option>
            </select></p>
            <p><b>Comments: </b><textarea name="comments" rows="3" cols="50"></textarea></p>
            </fieldset>
            <div align="center"> <input type="submit" name="submit" value="Submit Information"/></div>
            </form>



            </body>
            </html>

            and this is the code of "handle__form.p hp"

            <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dt d">
            <html xmlns="http://www.w3.org/1999/xhtml">
            <head>
            <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
            <title>Form Feedback</title>
            </head>

            <body>
            <?php #Script 2.2 - handleform.php


            // Printing the appropriate message based on the event handle in the form.php

            echo "Thankyou, <b>$name</b> for the following comments : <tt> $comments</tt><p> We will reply to you at <i>$email</i>.</p>";




            ?>
            </body>
            </html>

            i got the output like this

            Thankyou, for the following comments :

            We will reply to you at .


            no information about the name ,comment and email.
            to get this what changes have to done ?

            please give the details
            by linto
            thanks in advance

            Comment

            • warezguy05
              New Member
              • Oct 2006
              • 14

              #7
              try to use a few guides like;

              Setup IIS: http://www.no-ip.com/support/guides/web_servers/setting_up_iis. html

              Setup PHP: http://66.249.93.104/search?q=cache: yTz0BS84V6YJ:ww w.webmasterstop .com/123.html+setup+ php+server&hl=n l&gl=nl&ct=clnk &cd=1


              IIS is a webserver (suitable for a windows-based computer) just like Apache which is more used on a Linux-based system.
              So when you choose for IIS , you don't longer need to install Apache :)

              As soon as you've installed IIS and the PHPsoftware, you are able to run PHPscripts on your own computer

              I hope you understand it a little bit :)

              Comment

              • ronverdonk
                Recognized Expert Specialist
                • Jul 2006
                • 4259

                #8
                You are double posting!

                You are DOUBLE POSTING!! Read the Posting Guidelines about that, that will also tell you to show your codelines within the appropriate tags!

                You have already started a new thread with your last code question, so this thread will be CLOSED.

                RO\onald :cool:
                Last edited by ronverdonk; Oct 13 '06, 08:54 AM. Reason: Double Posting

                Comment

                Working...