php-windows Digest 8 Jul 2001 21:06:22 -0000 Issue 642

Topics (messages 8174 through 8189):

installing php on apache
        8174 by: Michael Duxbury
        8175 by: David Elliott
        8176 by: Michael Duxbury
        8177 by: David Elliott
        8178 by: Michael Duxbury
        8179 by: David Elliott
        8180 by: Michael Duxbury

Re: Error on viewing test.php
        8181 by: colin

Failed to write session data (files)
        8182 by: Adrian Mink
        8183 by: Julie Meloni
        8186 by: Adrian Mink

STRFTIME function problem
        8184 by: Arjen van Efferen

Re: [PHP] installing php on apache
        8185 by: Ben Bleything
        8187 by: Michael Duxbury
        8188 by: Ben Bleything
        8189 by: Daniel Beulshausen

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]


----------------------------------------------------------------------


I am trying in vain to get php running.

I have win98 and apache1.3.6 server running.

I unzipped the php-4.0.6-Win32 into c:\php

I then downloaded php406-installer and I ran that, did a standard install.

I was told that the installer hadn't edited my httpd.conf file for apache
and i would have to do this with accordance with the php\install.txt file.
Which has the following instructions:-
If you unzipped the PHP package to C:\PHP\ as desribed
  above, you need to insert these lines to your Apache conf
  file to set up the CGI binary:

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

So this I did, so my httpd.conf file within apache looks like this:-
# For example, the PHP3 module (not part of the Apache distribution)
# will typically use:
#
#AddType application/x-httpd-php3 .phtml
#AddType application/x-httpd-php3-source .phps
ScriptAlias /php/ "c:/php/"
   AddType application/x-httpd-php .php
   Action application/x-httpd-php "c:/php/php.exe"

But I shutdown and restart apache and try to run load a .html file in my
browser
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body bgcolor="#FFFFFF" text="#000000">
<?php echo "Hello World<p>"; ?>
</body>
</html>

But nothing happens.

I have tried to be as verbose as possible in the hope that someone can help
me out here.

Thankyou.








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

Dear Michael

On 08 July 2001 at 13:37:12 +0100 (which was 13:37 where I live) Michael
Duxbury thoughtfully wrote the following

< ... >

> But I shutdown and restart apache and try to run load a .html file in my
> browser

Change the extension to .php and see what happens. Keeping the extension to
.html apache will not know to pass it through php.

- --
 HAND,                     _______________________________________________
  David                   |MUA- The 1, The Only, The Bat! | E-mailaholics |
 _________________________|  Win 2K Adv Ser 5.0.2195 SP2  | International |
| We do NOT accept Collect Calls on BBS!...                               |

-----BEGIN PGP SIGNATURE-----
Version: PGP 6.5.8ckt (Build 06)
Comment: PGP Signed, sealed, delivered.

iQA/AwUBO0hVFPmK8eZlD0U0EQIWUQCfYN3fdvRWzbtSNFq4SknTDY98tY4AoKR3
IAx55bjHCd+iDwHzuLvsO0rQ
=W7v3
-----END PGP SIGNATURE-----





I tried this David, but I load it into the browser and still I get a blank
page.

I even tried having a button on an .html page that opens the .php page when
it is clicked, but still nothing.

Anymore suggestions?

Thanks.
"David Elliott" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Dear Michael
>
> On 08 July 2001 at 13:37:12 +0100 (which was 13:37 where I live) Michael
> Duxbury thoughtfully wrote the following
>
> < ... >
>
> > But I shutdown and restart apache and try to run load a .html file in my
> > browser
>
> Change the extension to .php and see what happens. Keeping the extension
to
> html apache will not know to pass it through php.
>
> - --
>  HAND,                     _______________________________________________
>   David                   |MUA- The 1, The Only, The Bat! | E-mailaholics
|
>  _________________________|  Win 2K Adv Ser 5.0.2195 SP2  | International
|
> | We do NOT accept Collect Calls on BBS!...
|
>
> -----BEGIN PGP SIGNATURE-----
> Version: PGP 6.5.8ckt (Build 06)
> Comment: PGP Signed, sealed, delivered.
>
> iQA/AwUBO0hVFPmK8eZlD0U0EQIWUQCfYN3fdvRWzbtSNFq4SknTDY98tY4AoKR3
> IAx55bjHCd+iDwHzuLvsO0rQ
> =W7v3
> -----END PGP SIGNATURE-----
>






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

Dear Michael

On 08 July 2001 at 13:51:45 +0100 (which was 13:51 where I live) Michael
Duxbury wrote

> I tried this David, but I load it into the browser and still I get a blank
> page.

> I even tried having a button on an .html page that opens the .php page when
> it is clicked, but still nothing.

> Anymore suggestions?

What are you using as the address it should be something like
http://localhost/info.php.

- --
 Best regards,             _______________________________________________
  David                   |MUA- The 1, The Only, The Bat! | E-mailaholics |
 _________________________|  Win 2K Adv Ser 5.0.2195 SP2  | International |
| "Bother!", said Pooh, as he puked on Christopher Robin.                 |

-----BEGIN PGP SIGNATURE-----
Version: PGP 6.5.8ckt (Build 06)
Comment: PGP Signed, sealed, delivered.

iQA/AwUBO0hag/mK8eZlD0U0EQIZXACfYKb2uCEqytl0H7v5wHQtrsUzVgcAn2nc
3bqWmctGJLBJeaRXmQNluX0R
=VqsQ
-----END PGP SIGNATURE-----





If you mean what was I using as the post adress it is like this:-
 <body bgcolor="#FFFFFF" text="#000000">
<form name="form1" method="post" action="C:\Program Files\Apache
Group\Apache\cgi-bin\Untitled-1.php">
  <input type="submit" name="Submit" value="Submit">

Is that what you meant? I will try and alter this to point to the cgi-bin
where I have kept my .php files and .html files

"David Elliott" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Dear Michael
>
> On 08 July 2001 at 13:51:45 +0100 (which was 13:51 where I live) Michael
> Duxbury wrote
>
> > I tried this David, but I load it into the browser and still I get a
blank
> > page.
>
> > I even tried having a button on an .html page that opens the .php page
when
> > it is clicked, but still nothing.
>
> > Anymore suggestions?
>
> What are you using as the address it should be something like
> http://localhost/info.php.
>
> - --
>  Best regards,             _______________________________________________
>   David                   |MUA- The 1, The Only, The Bat! | E-mailaholics
|
>  _________________________|  Win 2K Adv Ser 5.0.2195 SP2  | International
|
> | "Bother!", said Pooh, as he puked on Christopher Robin.
|
>
> -----BEGIN PGP SIGNATURE-----
> Version: PGP 6.5.8ckt (Build 06)
> Comment: PGP Signed, sealed, delivered.
>
> iQA/AwUBO0hag/mK8eZlD0U0EQIZXACfYKb2uCEqytl0H7v5wHQtrsUzVgcAn2nc
> 3bqWmctGJLBJeaRXmQNluX0R
> =VqsQ
> -----END PGP SIGNATURE-----
>






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

Hi Michael

On 08 July 2001 at 14:48:19 +0100 (which was 14:48 where I live) Michael
Duxbury thoughtfully wrote the following

> If you mean what was I using as the post adress it is like this:-
>  <body bgcolor="#FFFFFF" text="#000000">
> <form name="form1" method="post" action="C:\Program Files\Apache
> Group\Apache\cgi-bin\Untitled-1.php">
>   <input type="submit" name="Submit" value="Submit">

> Is that what you meant?

Yes. That will not work as apache has not been called. Your browser finding
a file not a webpage via tcp/ip.

> I will try and alter this to point to the cgi-bin where I have kept my
> .php files and .html files

Yep it should be pointing to something like
http://LocalHost/cgi-bin\Untitled-1.php.

I am assuming that you have got TCI/IP installed.

- --
 See you in Cyber space,   _______________________________________________
  David                   |MUA- The 1, The Only, The Bat! | E-mailaholics |
 _________________________|  Win 2K Adv Ser 5.0.2195 SP2  | International |
| Warning: This Tagline may be hazardous to your health.                  |

-----BEGIN PGP SIGNATURE-----
Version: PGP 6.5.8ckt (Build 06)
Comment: PGP Signed, sealed, delivered.

iQA/AwUBO0hnmPmK8eZlD0U0EQKnxgCdG9M2F/GRnHq0Bpg8OtbJu36ZHusAnjsr
jltpGRfdk5pLF5xEoS2cw8U/
=AjsG
-----END PGP SIGNATURE-----





Right I tried this so far:-
1) I tried putting my file in C:\Program Files\Apache Group\Apache\htdocs\
and replaced the index.html file with my own file

2) I tried changing th submit button to <form name="form1" method="post"
action="http://localhost/cgi-bin\Untitled-1.php";>
  <input type="submit" name="Submit" value="Submit">
I get this screen:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable
to complete your request.
Please contact the server administrator, [EMAIL PROTECTED] and inform them of
the time the error occurred, and anything you might have done that may have
caused the error.

More information about this error may be available in the server error log.

None of these things worked. Does the php.exe have to be up and running (it
is)?



"David Elliott" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi Michael
>
> On 08 July 2001 at 14:48:19 +0100 (which was 14:48 where I live) Michael
> Duxbury thoughtfully wrote the following
>
> > If you mean what was I using as the post adress it is like this:-
> >  <body bgcolor="#FFFFFF" text="#000000">
> > <form name="form1" method="post" action="C:\Program Files\Apache
> > Group\Apache\cgi-bin\Untitled-1.php">
> >   <input type="submit" name="Submit" value="Submit">
>
> > Is that what you meant?
>
> Yes. That will not work as apache has not been called. Your browser
finding
> a file not a webpage via tcp/ip.
>
> > I will try and alter this to point to the cgi-bin where I have kept my
> > .php files and .html files
>
> Yep it should be pointing to something like
> http://LocalHost/cgi-bin\Untitled-1.php.
>
> I am assuming that you have got TCI/IP installed.
>
> - --
>  See you in Cyber space,   _______________________________________________
>   David                   |MUA- The 1, The Only, The Bat! | E-mailaholics
|
>  _________________________|  Win 2K Adv Ser 5.0.2195 SP2  | International
|
> | Warning: This Tagline may be hazardous to your health.
|
>
> -----BEGIN PGP SIGNATURE-----
> Version: PGP 6.5.8ckt (Build 06)
> Comment: PGP Signed, sealed, delivered.
>
> iQA/AwUBO0hnmPmK8eZlD0U0EQKnxgCdG9M2F/GRnHq0Bpg8OtbJu36ZHusAnjsr
> jltpGRfdk5pLF5xEoS2cw8U/
> =AjsG
> -----END PGP SIGNATURE-----
>






Wayne,
I can't answer yr query directly (I had the same problem). But try
downloading this
http://sourceforge.net/projects/foxserv/
for yr platform. It is self installing apache/php/mysql.
It certainly solved my platform..
cheers
Colin
"Wayne Hinch" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi all,
>
> Please help I'm a newbie to PHP stuff.
>
> When I try and view test.php, it keeps saying that it carn't find the
> dynamic librarys. In PHP.INI it has all the default values and file
> locations but it just won't work. I'm running windows 2000 Professional
with
> their server and PHP 4.0.4.
>
> Wayne
>






    Hello,

    I continue to get the following error message.

    Warning: open(/tmp\sess_b423cc9c8cb09f7e9c50aea387a0093e, O_RDWR)
failed: m (2) in Unknown on line 0
    Warning: Failed to write session data (files). Please verify that the
current setting of session.save_path is correct (/tmp) in Unknown on line 0

    After some searching I learned that I needed to change the session save
variable in php.ini. I have so far changed it to c:\temp, c:/temp, \temp,
/temp. I have given the everyone group full control over that temp dir. The
error message never changes. I have php.ini in %systemroot%. The everyone
group has read permissions to php.ini. It looks like it is never actually
reading the file, but I don't know how to verify this, or fix it if true.

    I am running php 4.0.6, the full zip package. It is running on IIS5 and
Win2K server SP2. The test.php script which displays all the php variables
works fine. Any ideas?

--


------------------------------------------------------------------
Do not reply via email, the reply address is
strictly for spam. Thanks!

Adrian

MCSE, CCNA
------------------------------------------------------------------






> group has read permissions to php.ini. It looks like it is never actually
> reading the file, but I don't know how to verify this, or fix it if true.

two things to remember:

to see if it's reading the updated php.ini, verify the values in
php.ini by using phpinfo()

always restart your httpd of choice after making changes to php.ini



  Julie Meloni ([EMAIL PROTECTED])
"PHP Essentials" and "PHP Fast & Easy"
     --- www.thickbook.com ---





Thanks, fixed now.

--


------------------------------------------------------------------
Do not reply via email, the reply address is
strictly for spam. Thanks!

Adrian

MCSE, CCNA
------------------------------------------------------------------
"Julie Meloni" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > group has read permissions to php.ini. It looks like it is never
actually
> > reading the file, but I don't know how to verify this, or fix it if
true.
>
> two things to remember:
>
> to see if it's reading the updated php.ini, verify the values in
> php.ini by using phpinfo()
>
> always restart your httpd of choice after making changes to php.ini
>
>
>
>   Julie Meloni ([EMAIL PROTECTED])
> "PHP Essentials" and "PHP Fast & Easy"
>      --- www.thickbook.com ---
>






Hi all,

Something realy odd is going on:

check this:

<?php
// returns the current time in millis.. is working correct
echo "" . time() . "<br>";

// SHOULD return the time in the format HH:MM:SS -- Is NOT working... "echo"
returns empty string???
echo "" . strftime("%T", time()) . "<br>";

// Works fine - get the time in the form HH:MM:SS
echo "" . strftime("%H:%M:%S", time()) . "<br>";

// SHOULD print RDT or CET or EST but i ONLY get the string "Romance
Daylight Time" ??
echo "" . strftime("%Z", time()) . "<br>";
?>

Can somebody please tell me what is wrong?

I use Windows NT 4.0 with SP 6.1a, IIS 4.0 and PHP 4.0.6 (latest version).

Thanks advance,

Arjen van Efferen
(NL)






The key here is this line:
        AddType application/x-httpd-php .php

What this means, to apache, is that it will only send to the php binary
files that end in .php.  Two options: first, if you are going to have
php in almost all files, you can just add .html to this line after .php.

Second, rename any files that have php in them to .php files, and
instruct Apache to look for index.php files (I forget where this is... I
believe it's towards the bottom of the default httpd.conf file)  

Another thing that I noticed when I was trying to install php and apache
in windows was that it is very easy to put in both sets of
descriptions... the one for the module and the one for the binary, so
just be sure you didn't do that =>

Ben

-----Original Message-----
From: Michael Duxbury [mailto:[EMAIL PROTECTED]] 
Sent: Sunday, July 08, 2001 5:37 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED];
[EMAIL PROTECTED]
Subject: [PHP] installing php on apache

I am trying in vain to get php running.

I have win98 and apache1.3.6 server running.

I unzipped the php-4.0.6-Win32 into c:\php

I then downloaded php406-installer and I ran that, did a standard
install.

I was told that the installer hadn't edited my httpd.conf file for
apache
and i would have to do this with accordance with the php\install.txt
file.
Which has the following instructions:-
If you unzipped the PHP package to C:\PHP\ as desribed
  above, you need to insert these lines to your Apache conf
  file to set up the CGI binary:

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

So this I did, so my httpd.conf file within apache looks like this:-
# For example, the PHP3 module (not part of the Apache distribution)
# will typically use:
#
#AddType application/x-httpd-php3 .phtml
#AddType application/x-httpd-php3-source .phps
ScriptAlias /php/ "c:/php/"
   AddType application/x-httpd-php .php
   Action application/x-httpd-php "c:/php/php.exe"

But I shutdown and restart apache and try to run load a .html file in my
browser
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body bgcolor="#FFFFFF" text="#000000">
<?php echo "Hello World<p>"; ?>
</body>
</html>

But nothing happens.

I have tried to be as verbose as possible in the hope that someone can
help
me out here.

Thankyou.





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]






Thanks,
> Second, rename any files that have php in them to .php files, and
I already name my PHP files .php


> instruct Apache to look for index.php files (I forget where this is... I
> believe it's towards the bottom of the default httpd.conf file)

I can't seem to find this part of the document the only mention of PHP in my
file is like this:
 # For example, the PHP3 module (not part of the Apache distribution)
# will typically use:
#
#AddType application/x-httpd-php3 .phtml
#AddType application/x-httpd-php3-source .phps
ScriptAlias /php/ "c:/php/"
   AddType application/x-httpd-php .php
   Action application/x-httpd-php c:/php/php.exe

Does this mean that there is another problem that is stopping me running
php?

"Ben Bleything" <[EMAIL PROTECTED]> wrote in message
news:001b01c107cb$73e445e0$0201a8c0@c1141975c...
> The key here is this line:
> AddType application/x-httpd-php .php
>
> What this means, to apache, is that it will only send to the php binary
> files that end in .php.  Two options: first, if you are going to have
> php in almost all files, you can just add .html to this line after .php.
>
> Second, rename any files that have php in them to .php files, and
> instruct Apache to look for index.php files (I forget where this is... I
> believe it's towards the bottom of the default httpd.conf file)
>
> Another thing that I noticed when I was trying to install php and apache
> in windows was that it is very easy to put in both sets of
> descriptions... the one for the module and the one for the binary, so
> just be sure you didn't do that =>
>
> Ben
>
> -----Original Message-----
> From: Michael Duxbury [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, July 08, 2001 5:37 AM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED];
> [EMAIL PROTECTED]
> Subject: [PHP] installing php on apache
>
> I am trying in vain to get php running.
>
> I have win98 and apache1.3.6 server running.
>
> I unzipped the php-4.0.6-Win32 into c:\php
>
> I then downloaded php406-installer and I ran that, did a standard
> install.
>
> I was told that the installer hadn't edited my httpd.conf file for
> apache
> and i would have to do this with accordance with the php\install.txt
> file.
> Which has the following instructions:-
> If you unzipped the PHP package to C:\PHP\ as desribed
>   above, you need to insert these lines to your Apache conf
>   file to set up the CGI binary:
>
>    ScriptAlias /php/ "c:/php/"
>    AddType application/x-httpd-php .php
>    Action application/x-httpd-php "/php/php.exe"
>
> So this I did, so my httpd.conf file within apache looks like this:-
> # For example, the PHP3 module (not part of the Apache distribution)
> # will typically use:
> #
> #AddType application/x-httpd-php3 .phtml
> #AddType application/x-httpd-php3-source .phps
> ScriptAlias /php/ "c:/php/"
>    AddType application/x-httpd-php .php
>    Action application/x-httpd-php "c:/php/php.exe"
>
> But I shutdown and restart apache and try to run load a .html file in my
> browser
> <html>
> <head>
> <title>Untitled Document</title>
> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
> </head>
>
> <body bgcolor="#FFFFFF" text="#000000">
> <?php echo "Hello World<p>"; ?>
> </body>
> </html>
>
> But nothing happens.
>
> I have tried to be as verbose as possible in the hope that someone can
> help
> me out here.
>
> Thankyou.
>
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>






You say. . .

"But I shutdown and restart apache and try to run load a .html file in
my browser"

Did you mean a .php file?  My guess is that this is likely to be your
problem.  Unless you make the change I specified, apache _will not_
parse any php code in a .html file (or any other file, except a .php).

If you did everything else exactly as the documentation told you, and
apache otherwise runs correctly, AND you can invoke 'php foo.php' on the
command line and it will output correctly (make a file that contains
'<?php phpinfo(); ?>' in the c:\php directory, and php yourfile.php.  If
you see a ton of stuff scroll by, php is working), then there is likely
to be a problem with your configuration.  This will be difficult to find
without being able to see your httpd.conf file.

Ben

-----Original Message-----
From: Michael Duxbury [mailto:[EMAIL PROTECTED]] 
Sent: Sunday, July 08, 2001 10:20 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED];
[EMAIL PROTECTED]
Subject: Re: [PHP] installing php on apache

Thanks,
> Second, rename any files that have php in them to .php files, and
I already name my PHP files .php


> instruct Apache to look for index.php files (I forget where this is...
I
> believe it's towards the bottom of the default httpd.conf file)

I can't seem to find this part of the document the only mention of PHP
in my
file is like this:
 # For example, the PHP3 module (not part of the Apache distribution)
# will typically use:
#
#AddType application/x-httpd-php3 .phtml
#AddType application/x-httpd-php3-source .phps
ScriptAlias /php/ "c:/php/"
   AddType application/x-httpd-php .php
   Action application/x-httpd-php c:/php/php.exe

Does this mean that there is another problem that is stopping me running
php?

"Ben Bleything" <[EMAIL PROTECTED]> wrote in message
news:001b01c107cb$73e445e0$0201a8c0@c1141975c...
> The key here is this line:
> AddType application/x-httpd-php .php
>
> What this means, to apache, is that it will only send to the php
binary
> files that end in .php.  Two options: first, if you are going to have
> php in almost all files, you can just add .html to this line after
.php.
>
> Second, rename any files that have php in them to .php files, and
> instruct Apache to look for index.php files (I forget where this is...
I
> believe it's towards the bottom of the default httpd.conf file)
>
> Another thing that I noticed when I was trying to install php and
apache
> in windows was that it is very easy to put in both sets of
> descriptions... the one for the module and the one for the binary, so
> just be sure you didn't do that =>
>
> Ben
>
> -----Original Message-----
> From: Michael Duxbury [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, July 08, 2001 5:37 AM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED];
> [EMAIL PROTECTED]
> Subject: [PHP] installing php on apache
>
> I am trying in vain to get php running.
>
> I have win98 and apache1.3.6 server running.
>
> I unzipped the php-4.0.6-Win32 into c:\php
>
> I then downloaded php406-installer and I ran that, did a standard
> install.
>
> I was told that the installer hadn't edited my httpd.conf file for
> apache
> and i would have to do this with accordance with the php\install.txt
> file.
> Which has the following instructions:-
> If you unzipped the PHP package to C:\PHP\ as desribed
>   above, you need to insert these lines to your Apache conf
>   file to set up the CGI binary:
>
>    ScriptAlias /php/ "c:/php/"
>    AddType application/x-httpd-php .php
>    Action application/x-httpd-php "/php/php.exe"
>
> So this I did, so my httpd.conf file within apache looks like this:-
> # For example, the PHP3 module (not part of the Apache distribution)
> # will typically use:
> #
> #AddType application/x-httpd-php3 .phtml
> #AddType application/x-httpd-php3-source .phps
> ScriptAlias /php/ "c:/php/"
>    AddType application/x-httpd-php .php
>    Action application/x-httpd-php "c:/php/php.exe"
>
> But I shutdown and restart apache and try to run load a .html file in
my
> browser
> <html>
> <head>
> <title>Untitled Document</title>
> <meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
> </head>
>
> <body bgcolor="#FFFFFF" text="#000000">
> <?php echo "Hello World<p>"; ?>
> </body>
> </html>
>
> But nothing happens.
>
> I have tried to be as verbose as possible in the hope that someone can
> help
> me out here.
>
> Thankyou.
>
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail:
[EMAIL PROTECTED]
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]






At 18:19 08.07.2001 +0100, Michael Duxbury wrote:
>Thanks,
> > Second, rename any files that have php in them to .php files, and
>I already name my PHP files .php
>
>
> > instruct Apache to look for index.php files (I forget where this is... I
> > believe it's towards the bottom of the default httpd.conf file)
>
>I can't seem to find this part of the document the only mention of PHP in my
>file is like this:
>  # For example, the PHP3 module (not part of the Apache distribution)
># will typically use:
>#
>#AddType application/x-httpd-php3 .phtml
>#AddType application/x-httpd-php3-source .phps
>ScriptAlias /php/ "c:/php/"
>    AddType application/x-httpd-php .php
>    Action application/x-httpd-php c:/php/php.exe

this line is wrong, change it to:
Action application/x-httpd-php "/php/php.exe"
and buy yourself new glasses :)

daniel

/*--
daniel beulshausen - [EMAIL PROTECTED]
using php on windows? http://www.php4win.de



Reply via email to