PHP Getting started

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sukatoa
    Contributor
    • Nov 2007
    • 539

    PHP Getting started

    I need to know what web server do i download before i start banging here...

    I found this link but im not sure which one of them best fit.....

    I have no background in PHP......

    Any suggestions?
  • Markus
    Recognized Expert Expert
    • Jun 2007
    • 6092

    #2
    I suggest you download something like Xampp or EasyPHP. They both come bundled with mysql & php (and more) and are a doddle to install.

    Comment

    • sukatoa
      Contributor
      • Nov 2007
      • 539

      #3
      What directory in my xampplite would be the equivalent ROOT directory in apache tomcat?

      Comment

      • sukatoa
        Contributor
        • Nov 2007
        • 539

        #4
        found it..... htdocs

        But, i can't connect through it using http://localhost/

        Does anybody here successfully deploy the xampplite?

        Comment

        • Dormilich
          Recognized Expert Expert
          • Aug 2008
          • 8694

          #5
          did you start the server?

          Comment

          • sukatoa
            Contributor
            • Nov 2007
            • 539

            #6
            Yes,

            I've checked the apache instance in Task Manager, exists
            I've used the xampp-control to activate both apache and mysql,
            i've also followed the manual activation of the apache and mysql through its given batch files, but still unable to connect......

            I have quit my Anti-virus NOD32, disabled the Windows Firewall, uninstalled the Apache tomcat Server(for JSP, J2EE etc), restart the PC,

            and until now, i can't connect to it.....

            when i locate the url http://localhost , just like the browser still waiting for any response from the local server, until for about a minute or more than that, still unable to connect......

            What's wrong with this? is there any issue when installing XAMPP in Windows XP?

            Comment

            • sukatoa
              Contributor
              • Nov 2007
              • 539

              #7
              Holy cow,

              i don't know why this is happening in to me........

              I need help here.......

              Comment

              • Markus
                Recognized Expert Expert
                • Jun 2007
                • 6092

                #8
                Originally posted by sukatoa
                Holy cow,

                i don't know why this is happening in to me........

                I need help here.......
                Hmm, does sound strange. But XAMP won't work for me on my current machine, hence why I suggested you try EasyPHP. Download that and see if that works.

                Comment

                • sukatoa
                  Contributor
                  • Nov 2007
                  • 539

                  #9
                  Yes, i've already installed EasyPHP, same as XAMPP... unable to connect

                  I have read about the Internet Information Services ( that uses port 80 ),
                  i've already see the services, but no IIS installed....



                  @Xampp

                  i have changed the port 80 to 8080 in apache/conf/httpd.conf and all 443 to 4499 in apache/conf/extra/httpd-ssl.conf as i what i've read in other article....

                  but nothing happens, it still runs on the port 80


                  Any other suggestions?

                  Comment

                  • Markus
                    Recognized Expert Expert
                    • Jun 2007
                    • 6092

                    #10
                    No idea friend. This, currently isn't a PHP problem, so I may move it over to apache to see if they can help. My suggestion is: go to xampp's forums (and easyphp) and maybe ask them about your problem; they'll know more than us.

                    Comment

                    • sukatoa
                      Contributor
                      • Nov 2007
                      • 539

                      #11
                      Thanks for the time Markus....

                      Comment

                      • Markus
                        Recognized Expert Expert
                        • Jun 2007
                        • 6092

                        #12
                        Originally posted by sukatoa
                        Thanks for the time Markus....
                        No problem.

                        Markus.

                        Comment

                        • sukatoa
                          Contributor
                          • Nov 2007
                          • 539

                          #13
                          Problem solved..... few days ago..... :)

                          Now, i want to implement my planned website to be flexible in terms of deploying on different hosting sites etc....

                          In JSP, just a bean that contains all settings, directory and etc will solve the problem....

                          now, in PHP, i am afraid to use DOCUMENT_ROOT, as it says "as defined in the server's configuration file." in the manual.

                          What if im going to deploy it in another hosting site?, that was not the same as my server's configuration file....

                          my php library (uses DOCUMENT_ROOT constant int $_SERVER that also communicates in other php file) might not be included....Ple ase do correct me here....

                          What will be the alternatives here?

                          Comment

                          Working...