Andy wrote:

"Chris Hewitt" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...


Can i type anything into the file or should it be code, you will have to

Yes, anything. If apache does not understand it then it will not start up. Don't put a hash at the beginning of your rubbish line as hash means a comment. Know what you have entered so that you can remove it afterwards.

Also compiled as a DSO?
Hmm.. not typed LoadModule...

There are three ways to compile php. One is as part of Apache itself, this is best if most of what the webserer does is php. Then there is a DSO (dynamic shared object), this is basically what Windows calls a dynamically linked library (.dll). It only gets called into memory if needed. This is best if most of what the webserver does is not php. Then there is php as a stand-alone executable (php.exe).

In order to configure httpd.conf you will need to know which you have. I've no experience of running php under Windows (only linux) but it seems most of the installations available are pre-compiled and easy to install. There should be instructions with your installation telling you how php is configured.

Running "httpd -l" from the command prompt (I assume this works in windows as well as linux), will show you what modules are compiled into apache. If "mod_php4" comes up then php is compiled into apache and you do not need the LoadModule line. If "mod_php4" is not shown but "mod_so" is then php may be an Apache module (DSO) or stand alone (sometimes called CLI or CGI). "mod_so" is the module that facilitates dynamic modules so that it is essential for any modules to work.

I think you need to refer to the instructions for your installation for this, not a book.

but the book which is PHP & MySQL for dummies BTW, whcih is about right,
says nothing about that.

I have not seen this book. It may simply assume an installation is already available and leave out installing it. Many books were written when register_globals was "on" by default, now it is "off" for security reasons. If, when you come to do code, you do not get variables passed from one page to another then either turn it back on (in php.ini) or (better) use the super-globals $_GET['var'} and $_POST['var'], but that is getting ahead, let's get your installation working first...

Chris



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to