PDA

Click to See Complete Forum and Search --> : Can some one help out a newbie here


Jethro
Apr 24th, 2002, 04:32 AM
http://www.turtletips.com/forums/showthread.php?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.....

scoutt
Apr 24th, 2002, 11:00 AM
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?

filburt1
Apr 24th, 2002, 06:34 PM
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 :confused:

Jethro
Apr 24th, 2002, 06:49 PM
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????

chrisjk
Apr 24th, 2002, 07:13 PM
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.

scoutt
Apr 24th, 2002, 08:00 PM
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 :confused:
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.

chrisjk
Apr 24th, 2002, 08:24 PM
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)

scoutt
Apr 24th, 2002, 08:28 PM
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.

chrisjk
Apr 24th, 2002, 08:38 PM
yep, totally confused me. I just went with the modules since it's a test machine only

filburt1
Apr 24th, 2002, 08:45 PM
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...

Jethro
Apr 24th, 2002, 10:44 PM
Totally confused now:confused:

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.....

scoutt
Apr 25th, 2002, 07:26 AM
here jethro, click on the second one as it is the best I think.

http://www.snippetlibrary.com/tutorials.php?kid=19&catname=Installation

Jethro
Apr 25th, 2002, 05:07 PM
Cool ... thanks dude;)

scoutt
Apr 25th, 2002, 05:14 PM
no prob