Php-MySQL-Apache with XAMPP

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • yasmine
    New Member
    • Feb 2008
    • 64

    Php-MySQL-Apache with XAMPP

    Hi friends,
    when we are using XAMPP, where we should write php scripts and where we should run it?
    Please tell me soon.......
  • code green
    Recognized Expert Top Contributor
    • Mar 2007
    • 1726

    #2
    Write them in htdocs and run them from localhost

    Comment

    • ronverdonk
      Recognized Expert Specialist
      • Jul 2006
      • 4259

      #3
      Welcome yasmine!

      I don't quite understand what you want, but I'll try.

      XAMPP is an Apache Distribution for Linux, Solaris, Windows and Mac OS X. The package includes the Apache web server, MySQL, PHP, Perl, a FTP server and phpMyAdmin. I assume you have installed this package at your own PC.

      When you want to run PHP scripts, you'll first have to develop them (write them) at your client in an editor of your choice. Then you 'upload' them or place them somewhere under the root of your server and run them via your browser, whereby the server url is http://localhost. So when you place your script TEST.PHP in a folder (under the web root) named TEST_FOLDER, you run your script by typing
      Code:
      http://localhost/test_folder/test.php
      Ronald

      Comment

      • sundarbioinfo
        New Member
        • Feb 2008
        • 2

        #4
        can any one give a code for spilitting a numerical value randomly from a input file.....

        Comment

        • ronverdonk
          Recognized Expert Specialist
          • Jul 2006
          • 4259

          #5
          What (code) have you developed so far yourself?

          Ronald

          Comment

          • yasmine
            New Member
            • Feb 2008
            • 64

            #6
            Originally posted by ronverdonk
            Welcome yasmine!

            I don't quite understand what you want, but I'll try.

            XAMPP is an Apache Distribution for Linux, Solaris, Windows and Mac OS X. The package includes the Apache web server, MySQL, PHP, Perl, a FTP server and phpMyAdmin. I assume you have installed this package at your own PC.

            When you want to run PHP scripts, you'll first have to develop them (write them) at your client in an editor of your choice. Then you 'upload' them or place them somewhere under the root of your server and run them via your browser, whereby the server url is http://localhost. So when you place your script TEST.PHP in a folder (under the web root) named TEST_FOLDER, you run your script by typing
            Code:
            http://localhost/test_folder/test.php
            Ronald
            Thank u Ronald.
            But, Apache is not running in XAMPP control and mysql, fileZillaFTP, Mercury are running.
            I don't know what to do?
            Help me soon...

            Comment

            • werks
              New Member
              • Dec 2007
              • 218

              #7
              Originally posted by yasmine
              Thank u Ronald.
              But, Apache is not running in XAMPP control and mysql, fileZillaFTP, Mercury are running.
              I don't know what to do?
              Help me soon...
              Try re-installing it..


              Kenneth

              Comment

              • yasmine
                New Member
                • Feb 2008
                • 64

                #8
                Originally posted by werks
                Try re-installing it..


                Kenneth
                yah! I did it so. But, now i don't where to write php script and where to create db.
                I wrote a script in textpad and stored it in htdocs as a.php. when I run it as "http://localhost/a.php" it shows the script as it is with the php tags.
                Plz... tell me what to do......???

                Comment

                • code green
                  Recognized Expert Top Contributor
                  • Mar 2007
                  • 1726

                  #9
                  In the root folder of the XAMPP installation is xampp-control.exe.
                  Run this (just double click) to open the XAMPP Control Panel Application.
                  Here you can stop and start Apache, MySql FileZilla and Mercury.
                  Apache must be running, and probably MySql also

                  Comment

                  • werks
                    New Member
                    • Dec 2007
                    • 218

                    #10
                    Originally posted by sundarbioinfo
                    can any one give a code for spilitting a numerical value randomly from a input file.....
                    Post your question in the forum not in Thread..


                    --
                    Kenneth
                    "Better Than Yesterday"

                    Comment

                    • werks
                      New Member
                      • Dec 2007
                      • 218

                      #11
                      Originally posted by yasmine
                      yah! I did it so. But, now i don't where to write php script and where to create db.
                      I wrote a script in textpad and stored it in htdocs as a.php. when I run it as "http://localhost/a.php" it shows the script as it is with the php tags.
                      Plz... tell me what to do......???
                      Hi Yasmine. What do you mean by the word write? Hope im correct with this..you can write/create a PHP script using Dreamweaver and for the database like MySQL there is a built in database manipulator in XAMMP the [B]phpMyAdmin[] or you can use SQLYog..


                      --
                      Kenneth
                      "Better Than Yesterday"

                      Comment

                      Working...