Results 1 to 14 of 14

Thread: Can some one help out a newbie here

  1. #1
    Jethro
    Guest

    Can some one help out a newbie here

    http://www.turtletips.com/forums/sho...?threadid=1379


    Have posted in TT's new PHP forum and need some help guys, can at least one of you gurus become a member and help me out. Don't worry this is the first of a hundred and one simple questions.

    Thanks in advance.....

  2. #2
    scoutt
    Guest
    whate exstension? and don't listen to Arien, you need the cgi one unless you want to compile you own, can't help you there.

    but there is a couple of line in the php.ini file you can adjust to use the extensions. which ones?

  3. #3
    Originally posted by scoutt
    whate exstension? and don't listen to Arien, you need the cgi one unless you want to compile you own, can't help you there.
    Eh...PHP runs flawlessly on my machine using the module-based approach...not only is it more efficient but it's more secure

  4. #4
    Jethro
    Guest
    Total newbie at this Scout. So far have apache down and running, now trying to throw a simple php hello world page at it, to see if everythings honky dory.

    According to the docs just notepad the code, and save in we directory.???? What do l do then, just click on the htm file????

  5. #5
    PowerPoster
    Join Date
    Jul 1999
    Posts
    5,923
    apache dir/htdocs becomes your root..anything you put in there can be served by apache and follows the same structure, eg.

    C:\apache\htdocs\mystuff\some.php should be viewed in IE using http://127.0.0.1/mystuff/some.php

    So save it somewhere in there, type the URL and provided you've configured apache to know about PHP, you'll be sorted.

  6. #6
    scoutt
    Guest
    Originally posted by filburt1


    Eh...PHP runs flawlessly on my machine using the module-based approach...not only is it more efficient but it's more secure
    more secure?????? no I don't think so. they are the same as they wouldn't produce php code that is not secure on one as it is on another. I use the cgi and it runs flawlessly (more easier to setup as well) and don't care about secure as it is my test machine which nobody can see.

    now nuetered Jethro... I mean Newbie Jethro

    the file as to be php if you want to run a hello script. unless of course you made it so apache runs all html files php, which is more trouble than it is worth.

    Chris has it right.

  7. #7
    PowerPoster
    Join Date
    Jul 1999
    Posts
    5,923
    This is what they say in the docs

    PHP 4 for Windows comes in two flavours - a CGI executable (php.exe),
    and several SAPI modules (for exapmle php4isapi.dll). The latter form
    is new to PHP 4, and provides significantly improved performance and
    some new functionality. However, please note that the SAPI modules
    are *NOT* yet considered to be production quality.
    In particular, with the ISAPI module, you are likely to encounter serious
    reliability problems especially on platforms older than W2K - you may
    witness a lot of server 500 errors and suffer from other server modules
    such as ASP also failing. You have been warned!

    The reason for this is that the PHP SAPI modules are using the
    thread-safe version of the PHP code, which is new to PHP 4, and has
    not yet been tested and pounded enough to be considered completely
    stable, and there are actually a few known bugs. On the other hand,
    some people have reported very good results with the SAPI modules,
    and there a few reports of problems with the Apache module version.
    In short - your mileage may vary; If you need
    absolute stability, trade the performance of the SAPI modules
    with the stability of the CGI executable.
    ...
    There are two ways to set up PHP to work with Apache 1.3.x
    on Windows. One is to use the CGI binary (php.exe),
    the other is to use the Apache module dll. In either case
    you need to stop the Apache server, and edit your
    srm.conf or httpd.conf to configure Apache to work with PHP.

    ...

    Now that version 4.1 introduces a safer sapi module, we recommend
    that you configure PHP as a module in Apache.
    ...
    If you wish to install PHP as a CGI binary, (the sapi is much better)

  8. #8
    scoutt
    Guest
    and what do youi believe. they say don't then they say do.... hmmmm
    I would stick with the cgi if this is just a test server.

  9. #9
    PowerPoster
    Join Date
    Jul 1999
    Posts
    5,923
    yep, totally confused me. I just went with the modules since it's a test machine only

  10. #10
    Originally posted by chrisjk
    yep, totally confused me. I just went with the modules since it's a test machine only
    Yeah...'tis easy to install either way...

  11. #11
    Jethro
    Guest
    Totally confused now

    Which one was the modules ... is that the dll stuff. Ok from TT it would appear l need to check some lines are include in either a ini file or a .config file. The l need to download a php.exe script thingy. Have l got this right so far......

    This gets easier once you have it setup right ... end run is to have a directory c:\php\sitename to hold the actually scripts. So far have a couple of sites to work on, home page and commercial ... and as you can probably tell ain't progressing at any rate of notes with either.

    Thanks in advance.....

  12. #12
    scoutt
    Guest
    here jethro, click on the second one as it is the best I think.

    http://www.snippetlibrary.com/tutori...e=Installation

  13. #13
    Jethro
    Guest
    Cool ... thanks dude

  14. #14
    scoutt
    Guest

    Thumbs up

    no prob

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width