How to make php work on "my" computer?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Chris Krasnichuk

    #16
    Re: How to make php work on "my&quo t; computer?

    Yeah,
    I've already done that ( http://www.dragongames.ca )


    "Geoff Berrow" <$bl$@ckdog.co. uk> wrote in message
    news:u3ehgvcrif 3a6gcjvnlsmboq2 7h4jqrqen@4ax.c om...[color=blue]
    > Message-ID: <fF2Oa.372197$3 C2.10196868@new s3.calgary.shaw .ca> from Chris
    > Krasnichuk contained the following:
    >[color=green]
    > >it still just comes up with this page:[/color]
    >
    >http://www.commonname.com/en/PowerSe...KxsECUg=&app=1[/color]
    00[color=blue]
    >
    > Get some PHP enabled webspace til you figure it out.
    >
    > --
    > Geoff Berrow
    > It's only Usenet, no one dies.
    > My opinions, not the committee's, mine.
    > Simple RFDs http://www.ckdog.co.uk/rfdmaker/[/color]


    Comment

    • Gareth Church

      #17
      Re: How to make php work on &quot;my&quo t; computer?

      "Chris Krasnichuk" <Krasnicuk@shaw .ca> wrote in message
      news:9i%Na.3986 28$Vi5.10277025 @news1.calgary. shaw.ca...[color=blue]
      > I've installed phpdev but when I goto http://localhost/phpinfo.php it just
      > comes up with this site
      >[/color]

      0[color=blue]
      > It's reallt getting to me now I'm getting ready to smash my head in the
      > screen.
      > Please Help ME!!!!![/color]

      That seems strange. I presume that commomname.com is the default page that
      comes up when your browser can't find the site. I had a similar sort of
      problem recently. My browser (IE) wouldn't load http://192.168.0.2/ - it
      always looked for it on the 'net. I had to tell it to Never dial a
      connection. It was really frustrating. You shouldn't have this problem,
      though, since you are working on the one machine (I had to use 192.168.0.2
      because it was on another machine).

      I'll run through exactly what I did, and hopefully you will be able to pick
      up something that you did differently:

      1) Downloaded phpdev (I'm using 4.23, on Windows 2000).
      2) Double clicked to install. I used the default directory, C:\phpdev
      3) Start -> Programs -> phpdev -> phpdev_2K_XP_NT . That is simply a shortcut
      to C:\phpdev\2K-NT-XP-phpdev_start.ba t. Obviously you use the other batch
      file if using Windows 98. That loads up a command prompt that starts Apache
      and mySQL, then loads http://localhost/ in the default browser on your
      machine (I think it does anyway, I might have changed it - it was a while
      ago I installed it). Anyway, you should see a web page that has links to
      some folders and files. What this is displaying is everything in the
      C:\phpdev\www\ folder.
      4) You could click the phpinfo.php file, and that should display something
      like this: http://66.197.177.250/phpinfo.php. I would suggest instead you
      just click the start_here.htm file. That should display a page with the
      firepages.com.a u logo at the top of the page (it is displaying from your
      local computer though, not the Internet. The address should be
      http://localhost/phpdev.
      5) From this page you can test various things, like the phpinfo() page.
      There's also a page to test GD, which is a facility which lets you create
      images on-the-fly using PHP. you can alos test phpMyAdmin, which is a
      web-based interface for using mySQL, a database that is often used with PHP.
      6) If that works PHP is setup on your computer. All you have to do now is
      copy any php files you want to run to the C:\phpdev\www\ directory (or any
      subdirectory), and then you should be able to run that php file by typing
      http://localhost/phpfile.php into a browser.

      Gareth


      Comment

      • Geoff Berrow

        #18
        Re: How to make php work on &quot;my&quo t; computer?

        Message-ID: <Lc4Oa.375121$r o6.9111582@news 2.calgary.shaw. ca> from Chris
        Krasnichuk contained the following:
        [color=blue]
        >Yeah,
        >I've already done that ( http://www.dragongames.ca )[/color]

        Cool.

        I've just downloaded and installed the PHPDev version of PHP, Apache etc
        and it is ridiculously easy.

        Download it, run it, start the server from the start menu and your webroot
        is at C:/phpdev/www It already contains phpinfo.php for testing.

        Now I've got to get into the habit of coding with register globals
        off...:-}



        --
        Geoff Berrow
        It's only Usenet, no one dies.
        My opinions, not the committee's, mine.
        Simple RFDs http://www.ckdog.co.uk/rfdmaker/

        Comment

        • Ian.H [dS]

          #19
          Re: How to make php work on &quot;my&quo t; computer?

          -----BEGIN PGP SIGNED MESSAGE-----
          Hash: SHA1

          Whilst lounging around on Sun, 06 Jul 2003 22:43:03 +0100, Geoff
          Berrow <$bl$@ckdog.co. uk> amazingly managed to produce the following
          with their Etch-A-Sketch:
          [color=blue]
          > Now, I've never got round to installing a server on my machine yet
          > because I find it just as easy to bang stuff up to my host but,
          > just to confirm, have you created a file called phpinfo.php and
          > does it contain something like the following?
          >
          > <html>
          > <head>
          > <title>PHP info</title>
          > </head>
          > <body>
          > <?php
          > phpinfo();
          > ?>
          > </body>
          > </html>[/color]


          Morning Geoff =)

          The HTML code isn't required:


          <?php phpinfo(); ?>


          will generate the entire page for you =)

          </useless info>



          Regards,

          Ian

          -----BEGIN PGP SIGNATURE-----
          Version: PGP 8.0

          iQA/AwUBPwlMFWfqtj2 51CDhEQJ6lgCg24 HTOuK5rXiGNbLzW h6Rjd7sW88AmwX2
          nyBVuNBKUlsxP9l 2iapm3/on
          =XM9y
          -----END PGP SIGNATURE-----

          --
          Ian.H [Design & Development]
          digiServ Network - Web solutions
          www.digiserv.net | irc.digiserv.ne t | forum.digiserv. net
          Programming, Web design, development & hosting.

          Comment

          • Chris Krasnichuk

            #20
            Re: How to make php work on &quot;my&quo t; computer?

            Well,
            I made it work (finaly)
            All I had to do was I went in to internet options, advanced, and then there
            was somthing that I guess one of us downloaded (but not me) and i took
            everything that it had done to the browser off so in basicly I turned the
            thing off.
            Then WOO HOO it worked.

            And Thanks everybody for all your help you guys gave me I was really
            thankful of it.

            Chris Krannichuk
            At Dragongames.ca


            "William Alexander Segraves" <wsegrave@minds pring.com> wrote in message
            news:beag01$cee $1@slb5.atl.min dspring.net...[color=blue]
            > "Chris Krasnichuk" <Krasnicuk@shaw .ca> wrote in message
            > news:tdfNa.3824 84$Vi5.9788761@ news1.calgary.s haw.ca...[color=green]
            > > hello,
            > > Does anyone know how I make php work on "my" computer?
            > > I made a mistake in my last post so I fixed it here.[/color]
            >
            > Google is your friend.
            >
            > Googling with "how to configure php apache cgi" gives me as the first[/color]
            link:[color=blue]
            >
            > http://www.thesitewizard.com/archive/php4install.shtml
            >
            > Here's what I did that works fine.
            >
            > 1. Download and install IndigoPerl, available free from[/color]
            www.indigostar.com.[color=blue]
            > 2. Download and install PHP4.
            > 3. Follow the installation instructions for PHP, especially in the section
            > "b. Running PHP as a CGI binary".
            >
            > Another link, Googled out of the PHP documentation,
            >
            > http://us2.php.net/manual/en/install.apache.php
            >
            > especially the section "Installing PHP on Windows with Apache 1.3.x"[/color]
            should[color=blue]
            > give you some hints on configuring Apache.
            >
            > I suspect the results you've obtained so far ensue because you have not
            > configured Apache correctly. If you with to run PHP as a CGI scripting
            > language, you simply *must* give Apache the directives that are required[/color]
            to[color=blue]
            > implement said action.
            >
            > Good luck.
            >
            > Bill Segraves
            >
            >
            >
            >[/color]


            Comment

            • Geoff Berrow

              #21
              Re: How to make php work on &quot;my&quo t; computer?

              Message-ID: <9viigv0m99uui0 qou5c1h1tv7abe8 mvu1s@4ax.com> from Ian.H [dS]
              contained the following:
              [color=blue]
              >Morning Geoff =)[/color]

              Evening Ian ;-) Damn, another day gone.[color=blue]
              >
              >The HTML code isn't required:[/color]

              Thanks. Actually now that I've installed the phpdev bundle I notice that
              the file is already there anyway. It is sooooo easy.

              --
              Geoff Berrow
              It's only Usenet, no one dies.
              My opinions, not the committee's, mine.
              Simple RFDs http://www.ckdog.co.uk/rfdmaker/

              Comment

              Working...