Problem installing PHP

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jeff B

    Problem installing PHP

    Hello,

    Im learning PHP along with MySql. I installed MySql with no problem and
    have completed several tutorials to learn it. Now when trying to use PHP
    code within an html page it dosn't display anything,even with a simple
    display command.

    I installed the newest version of PHP(windows installer) and MySql on my
    home PC to do these tutorials and connect seem to get PHP working. Im sure
    its just a setting that im not properly configuring upon install of PHP or
    perhaps i have to install another piece of software to act as a webserver?
    is this needed even for pc testing?

    Any help on this would be great.

    Thanx.
    Jeff.


  • Billy Hates

    #2
    Re: Problem installing PHP

    On Thu, 15 Dec 2005 16:49:21 -0500, Jeff B wrote:
    [color=blue]
    > Hello,
    >
    > Im learning PHP along with MySql. I installed MySql with no problem and
    > have completed several tutorials to learn it. Now when trying to use PHP
    > code within an html page it dosn't display anything,even with a simple
    > display command.
    >
    > I installed the newest version of PHP(windows installer) and MySql on my
    > home PC to do these tutorials and connect seem to get PHP working. Im sure
    > its just a setting that im not properly configuring upon install of PHP or
    > perhaps i have to install another piece of software to act as a webserver?
    > is this needed even for pc testing?
    >
    > Any help on this would be great.
    >
    > Thanx.
    > Jeff.[/color]
    PHP is just a component of a web-server. PHP generates an HTML output that
    should be viewed in a web browser. You certainly may redirect all PHP
    output in a file, then open it with Mozilla as a local file. But it's much
    easier and convenient to use some web server as a medium between PHP and
    your browser. So it's true that you have to install a webserver even for
    pc testing. Seek the Web. There should be a number of free simple web
    servers for windows. At least you can use Apache from apache.org

    Comment

    • Jeff B

      #3
      Re: Problem installing PHP

      My plan is to code the website on my pc and then transport to host on the
      internet. Is this practical or is there a better way to do it for
      maintenance and so on. As you can probably tell my experience with websites
      is limited but i do have a programming background.


      "Billy Hates" <billyhates@yah oo.com.com.com> wrote in message
      news:pan.2005.1 2.15.22.11.03.5 51143@yahoo.com .com.com...[color=blue]
      > On Thu, 15 Dec 2005 16:49:21 -0500, Jeff B wrote:
      >[color=green]
      >> Hello,
      >>
      >> Im learning PHP along with MySql. I installed MySql with no problem and
      >> have completed several tutorials to learn it. Now when trying to use PHP
      >> code within an html page it dosn't display anything,even with a simple
      >> display command.
      >>
      >> I installed the newest version of PHP(windows installer) and MySql on my
      >> home PC to do these tutorials and connect seem to get PHP working. Im
      >> sure
      >> its just a setting that im not properly configuring upon install of PHP
      >> or
      >> perhaps i have to install another piece of software to act as a
      >> webserver?
      >> is this needed even for pc testing?
      >>
      >> Any help on this would be great.
      >>
      >> Thanx.
      >> Jeff.[/color]
      > PHP is just a component of a web-server. PHP generates an HTML output that
      > should be viewed in a web browser. You certainly may redirect all PHP
      > output in a file, then open it with Mozilla as a local file. But it's much
      > easier and convenient to use some web server as a medium between PHP and
      > your browser. So it's true that you have to install a webserver even for
      > pc testing. Seek the Web. There should be a number of free simple web
      > servers for windows. At least you can use Apache from apache.org
      >[/color]


      Comment

      • Jeff B

        #4
        Re: Problem installing PHP

        My plan is to code the website on my pc and then transport to host on the
        internet. Is this practical or is there a better way to do it for
        maintenance and so on. As you can probably tell my experience with websites
        is limited but i do have a programming background.


        "Krustov" <krusty@krustov .co.uk.INVALID> wrote in message
        news:MPG.1e0bfa c9eada8d7298a9c e@no-cancel.newsread er.com...[color=blue]
        > <comp.lang.ph p , Jeff B , bigtagREMOVE@ho tmail.com>
        > <dnsod2$q94$1@n rc-news.nrc.ca>
        > <Thu, 15 Dec 2005 16:49:21 -0500>
        >[color=green]
        >> Any help on this would be great.
        >>[/color]
        >
        > Something like XAMPP is a easy install as it configures everything for
        > you and everything works straight off the button ..... usually :-)[/color]


        Comment

        • MaKroZ

          #5
          Re: Problem installing PHP

          On Thu, 15 Dec 2005 22:30:58 +0000, Krustov wrote:
          [color=blue]
          > <comp.lang.ph p , Jeff B , bigtagREMOVE@ho tmail.com>
          > <dnsq9t$rd5$1@n rc-news.nrc.ca>
          > <Thu, 15 Dec 2005 17:21:47 -0500>
          >[color=green]
          >> My plan is to code the website on my pc and then transport to host on the
          >> internet. Is this practical
          >>[/color]
          >
          > Unless somebody says different - its usually the best way to do it .[/color]

          Yes, it's a good way. I used to use similar before. But then had to change
          my methods. It's actually too hard to keep both (local and remote) servers
          in the identical configuration, so I had to test my projects again on the
          remote server before I could put them in public. Now I develop right on
          the remote machine under a virtual host or in a "secret" directory.

          --
          nn = MaKroZ =
          (oo) My bookmarks:
          | | http://www.theisplist.com
          |/\| http://www.10pieces.com

          Comment

          • Default User

            #6
            Re: Problem installing PHP

            Jeff B wrote:
            [color=blue]
            > My plan is to code the website on my pc and then transport to host on
            > the internet. Is this practical or is there a better way to do it
            > for maintenance and so on. As you can probably tell my experience
            > with websites is limited but i do have a programming background.[/color]

            Yes, it is practical. As mentioned above, you'll need a webserver on
            your PC. I installed the EasyPHP package, which bundles Apache, PHP,
            and MySQL into a single download/installation. There are other similar
            packages.



            Brian

            Comment

            • Jeff B

              #7
              Re: Problem installing PHP

              Hi Brian,

              thanx for helping out... I installed version 1.8 of EasyPHP... it installed
              properly and seems to be running.

              Now the problem because i have never done this before, where do i go from
              here... I tried creating a simple PHP file called test.php with a simple
              echo script... but didn't work... am i missing something??? also I tried it
              in an HTML file also didn't work... I know its probably something easy and
              stupid that im missing... but please help..

              Thank You.
              jeff.

              "Default User" <defaultuserbr@ yahoo.com> wrote in message
              news:40e9t3F1aa bhlU1@individua l.net...[color=blue]
              > Jeff B wrote:
              >[color=green]
              >> My plan is to code the website on my pc and then transport to host on
              >> the internet. Is this practical or is there a better way to do it
              >> for maintenance and so on. As you can probably tell my experience
              >> with websites is limited but i do have a programming background.[/color]
              >
              > Yes, it is practical. As mentioned above, you'll need a webserver on
              > your PC. I installed the EasyPHP package, which bundles Apache, PHP,
              > and MySQL into a single download/installation. There are other similar
              > packages.
              >
              >
              >
              > Brian
              >[/color]


              Comment

              • Conrad

                #8
                Re: Problem installing PHP

                Hi, you can verify that your webserver is actually running by creating
                an .html and/or .php file and putting it in your document root folder.
                Then from your web brower, perform the following:

                http://localhost/<the name of the .php or .html>

                Now, if you're not seeing anything and typing the URL doesn't produce
                errors, then you'll need to start your webserver and try again.

                Good luck,

                -Conrad

                Comment

                • Jeff B

                  #9
                  Re: Problem installing PHP

                  Thanx Conrad... Ill give it a try... get a feeling it will work as i wasn't
                  doing this... I automatically assumed it would work no matter where the file
                  was on my pc.

                  Jeff.

                  "Conrad" <conradwt@gmail .com> wrote in message
                  news:1134779599 .320463.206950@ z14g2000cwz.goo glegroups.com.. .[color=blue]
                  > Hi, you can verify that your webserver is actually running by creating
                  > an .html and/or .php file and putting it in your document root folder.
                  > Then from your web brower, perform the following:
                  >
                  > http://localhost/<the name of the .php or .html>
                  >
                  > Now, if you're not seeing anything and typing the URL doesn't produce
                  > errors, then you'll need to start your webserver and try again.
                  >
                  > Good luck,
                  >
                  > -Conrad
                  >[/color]


                  Comment

                  Working...