New to php

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • asgadiyar@gmail.com

    New to php

    Hi, I'm new to PHP and have installed the stuff needed. I'm using Xampp
    (Xampp, PHPmyadmin, MySQL, Filezilla) but i do not know how to upload
    my PHP file on to my server.
    Which Directory do I upload it to?
    What are the procedures to be followed?

  • Scott

    #2
    Re: New to php

    On Wed, 2006-04-05 at 16:25 -0700, asgadiyar@gmail .com wrote:[color=blue]
    > Hi, I'm new to PHP and have installed the stuff needed. I'm using Xampp
    > (Xampp, PHPmyadmin, MySQL, Filezilla) but i do not know how to upload
    > my PHP file on to my server.
    > Which Directory do I upload it to?
    > What are the procedures to be followed?
    >[/color]

    Depends on how your web server is set up. If you're using your own on
    windows, it's usually C:\Inetpub\wwwr oot

    Otherwise, check with your hosting company, but it's the same directory
    you would put your html pages in.

    Comment

    • asgadiyar@gmail.com

      #3
      Re: New to php

      but I do not have this directory in C:/ is there an atlernate procedure?

      Comment

      • Scott

        #4
        Re: New to php

        On Wed, 2006-04-05 at 18:48 -0700, asgadiyar@gmail .com wrote:[color=blue]
        > but I do not have this directory in C:/ is there an atlernate procedure?
        >[/color]

        Do you have a web server set up?

        Comment

        • David

          #5
          Re: New to php

          Scott wrote:[color=blue]
          > On Wed, 2006-04-05 at 18:48 -0700, asgadiyar@gmail .com wrote:[color=green]
          >> but I do not have this directory in C:/ is there an atlernate procedure?
          >>[/color]
          >
          > Do you have a web server set up?
          >[/color]

          Better question what is the web server running on? Windows or Linux

          Comment

          • asgadiyar@gmail.com

            #6
            Re: New to php

            yes I have the server set up with all modules installed and runnning. I
            have accessed phpMYADMIN. But Still have no ideas which directory to
            add my PHP file..

            Comment

            • David

              #7
              Re: New to php

              asgadiyar@gmail .com wrote:[color=blue]
              > yes I have the server set up with all modules installed and runnning. I
              > have accessed phpMYADMIN. But Still have no ideas which directory to
              > add my PHP file..
              >[/color]
              Since you haven't said the type of OS that your server is running on it
              is really hard to tell you where your files need to be put. If you are
              using Linux the most probable directory is /var/www/html it also could
              be /var/www/apache2-default

              It really would help if we knew which OS you are running Apache on.

              Comment

              • asgadiyar@gmail.com

                #8
                Re: New to php

                windowsXP home edition

                Comment

                • shrini

                  #9
                  Re: New to php


                  asgadiyar@gmail .com wrote:[color=blue]
                  > windowsXP home edition[/color]

                  good.

                  Let me assume the xampp folder is in c:\

                  so, there is a folder as c:\xampp

                  For a web server a Document Root is needed for holding files.

                  Here, there is folder called "htdocs" in xampp folder.
                  That is your DocumentRoot.

                  so, place your files in "c:\xampp\htdoc s"

                  Thats all.

                  verify where is your xampp folder.
                  see in it. you see a folder htdocs. that is your DocumentRoot.

                  T.Shrinivasan.

                  Comment

                  • william.clarke@gmail.com

                    #10
                    Re: New to php

                    I think xampp install in "c:\program files\xampp\" by default these
                    days so your document root directory is likely to be in "c:\program
                    files\xampp\htd ocs".
                    The location of your document root can be customised in your apache
                    config (httpd.conf) if this location doesn't suit. All you have to do
                    is find the line that looks like this...

                    #
                    # DocumentRoot: The directory out of which you will serve your
                    # documents. By default, all requests are taken from this directory,
                    but
                    # symbolic links and aliases may be used to point to other locations.
                    #
                    DocumentRoot "C:/Apache2/htdocs"

                    William

                    Comment

                    • william.clarke@gmail.com

                      #11
                      Re: New to php

                      I think xampp installs in "c:\program files\xampp\" by default these
                      days, so your document root directory is likely to be in "c:\program
                      files\xampp\htd ocs".
                      The location of your document root can be customised in your apache
                      config (httpd.conf) if this location doesn't suit. All you have to do
                      is find the line that looks like this...

                      #
                      # DocumentRoot: The directory out of which you will serve your
                      # documents. By default, all requests are taken from this directory,
                      but
                      # symbolic links and aliases may be used to point to other locations.
                      #
                      DocumentRoot "C:/Apache2/htdocs"

                      William

                      Comment

                      • asgadiyar@gmail.com

                        #12
                        Re: New to php

                        Thanks... it works...in "c:\program files\xampp\HT docs" directory

                        william.clarke@ gmail.com wrote:[color=blue]
                        > I think xampp installs in "c:\program files\xampp\" by default these
                        > days, so your document root directory is likely to be in "c:\program
                        > files\xampp\htd ocs".
                        > The location of your document root can be customised in your apache
                        > config (httpd.conf) if this location doesn't suit. All you have to do
                        > is find the line that looks like this...
                        >
                        > #
                        > # DocumentRoot: The directory out of which you will serve your
                        > # documents. By default, all requests are taken from this directory,
                        > but
                        > # symbolic links and aliases may be used to point to other locations.
                        > #
                        > DocumentRoot "C:/Apache2/htdocs"
                        >
                        > William[/color]

                        Comment

                        Working...