php-windows Digest 3 Jan 2002 17:48:52 -0000 Issue 934

Topics (messages 11276 through 11283):

Apache 1.3.22 and PHP 4.1.0
        11276 by: Randall Barber
        11278 by: Gaylen Fraley
        11280 by: Steve Yates

PHP 4.1.0 with session problem
        11277 by: ~fanta~
        11279 by: Gaylen Fraley

Re: PHP and IIS
        11281 by: Steve Yates

problem running php4.0.6 and apache1.3.22 on winXP
        11282 by: Rui Nuno Castro

Newbie Question: Using Cookies...
        11283 by: Anthony Ritter

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
Using both the MSI and EXE packages of the subject mentioned programs, I arrive at the 
same place, Apache will not run PHP.  I am using NT 4.0 SP 6.

I add the familiar LoadModule and AddType lines to the Apache httpd.conf file.
I install Apache first, then PHP with the following error:

Cannot unload mod-php4.c: File is not in module list

(thats a paraphrase by the way).

I tried uninstalling both and installing both in different order.
Same result.

What am I missing?
Apache runs with out the module, so I am guessing its php.
Anyone have a solution? Please.

Thanks in advance
RDB
--- End Message ---
--- Begin Message ---
Make sure you have this line in your httpd.conf .  It's an omission from the
documentation if I remember right.

AddModule mod_php4.c

--
Gaylen
[EMAIL PROTECTED]
Home http://www.gaylenandmargie.com/
PHP KISGB v3.02 Guest Book http://www.gaylenandmargie.com/phpwebsite/

"Randall Barber" <[EMAIL PROTECTED]> wrote in message
002001c1940e$3af25ea0$c4df070a@rdb55">news:002001c1940e$3af25ea0$c4df070a@rdb55...
Using both the MSI and EXE packages of the subject mentioned programs, I
arrive at the same place, Apache will not run PHP.  I am using NT 4.0 SP 6.

I add the familiar LoadModule and AddType lines to the Apache httpd.conf
file.
I install Apache first, then PHP with the following error:

Cannot unload mod-php4.c: File is not in module list

(thats a paraphrase by the way).

I tried uninstalling both and installing both in different order.
Same result.

What am I missing?
Apache runs with out the module, so I am guessing its php.
Anyone have a solution? Please.

Thanks in advance
RDB



--- End Message ---
--- Begin Message ---
"Gaylen Fraley" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Make sure you have this line in your httpd.conf .  It's an omission
from the
> documentation if I remember right.
>
> AddModule mod_php4.c

    Just set this combination up the other day.  I don't have that and I
can run files via PHP.EXE.  (but you're right there is no pre-made entry
for it in the file)

> "Randall Barber" <[EMAIL PROTECTED]> wrote in message
> 002001c1940e$3af25ea0$c4df070a@rdb55">news:002001c1940e$3af25ea0$c4df070a@rdb55...
> I add the familiar LoadModule and AddType lines to the Apache
httpd.conf

Did you add:

ScriptAlias /php/ "c:/Program Files/php/"
Action application/x-httpd-php "/php/php.exe"

(note the second refers to the ScriptAlias "/php/" not a path, took me a
bit to figure that out).

I did have PHP installed first, though I downloaded the Windows binaries
in Zip format to get the other goodies.

>I install Apache first, then PHP with the following error:
>Cannot unload mod-php4.c: File is not in module list

    Is this when installing, running Apache, or browsing a .php page?

 - Steve Yates
 - SRT Enterprises
 - Safe Sex:  A pillow propped firmly against the headboard.

/ Taglines by Taglinator - www.srtware.com /




--- End Message ---
--- Begin Message ---
I'm starter of the PHP, Thanks for any help!

In old version
I can call the value from session by this way:
$HTTP_SESSION_VARS["ID"]

But now I can't run this format $HTTP_SESSION_VARS

Can anyone solve this problem?



--- End Message ---
--- Begin Message ---
It should still work.  Try also $_SESSION["ID"];


--
Gaylen
[EMAIL PROTECTED]
Home http://www.gaylenandmargie.com/
PHP KISGB v3.02 Guest Book http://www.gaylenandmargie.com/phpwebsite/

"~Fanta~" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I'm starter of the PHP, Thanks for any help!
>
> In old version
> I can call the value from session by this way:
> $HTTP_SESSION_VARS["ID"]
>
> But now I can't run this format $HTTP_SESSION_VARS
>
> Can anyone solve this problem?
>
>
>


--- End Message ---
--- Begin Message ---
"Matt Obstgarten" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> that this is most likely because I don't have any mail settings

Look for these settings in PHP.INI:

[mail function]
; For Win32 only.
SMTP = smtp.drcadvertising.com

; For Win32 only.
sendmail_from = [EMAIL PROTECTED]


 - Steve Yates
 - SRT Enterprises
 - Meddle not in the affairs of dragons, for thou art crunchy, and good
with ketchup.

/ Taglines by Taglinator - www.srtware.com /




--- End Message ---
--- Begin Message ---
Hi,

I installed php4.0.6 and apache 1.3.22 (as a service) on windows XP and
followed the instructions to configure the httpd.conf file to load php as an
apache module (including the AddModule mod_php4.c instruction). I have also
copied the php4ts.dll file to the
windows/system32 directory, but when I try to run any php script with the
browser, I only get a blank page. It seems that apache doesn't send the
script for interpretation by php (even though apache is loading the php
module). Can anyone tell me what's wrong?

Thanks,
Rui




--- End Message ---
--- Begin Message ---
I'm new to PHP and am trying this script to see if a cookie has been set on
my server. It has a fifteen minute expiration time.

I'm using MS Windows 98 / Apache

Before I load the browser, I have designated to have the prompt box ask
whether to accept cookies or not  to see if, in fact, the cookie will be
set.

I load the page into the browser and it says:

Cookie has been set

However...
1.  I didn't get a prompt box
and
2. when I go to check if the cookie has been set in:

C:\Windows\Cookies\

there is no text file.

If anybody has a clue as to what I'm doing wrong please assist.

Many thanks.
Tony Ritter

The script follows...
.....................................................................


<?
$cookie_name = "test_cookie";
$cookie_value = "test string!";
$cookie_expire= time() + 900;
setcookie($cookie_name, $cookie_value, $cookie_expire, "/", 0);
?>
<HTML>
<HEAD>
<TITLE>Set Test Cookie</TITLE>
</HEAD>
<BODY>
<h1>Cookie has been set</h1>
</BODY>
</HTML>




--- End Message ---

Reply via email to