php-windows Digest 20 Apr 2002 16:01:58 -0000 Issue 1103
Topics (messages 13205 through 13211):
Re: can't view php
13205 by: joey
Re: Apache 2.0.35
13206 by: Red
13208 by: Steffen
13209 by: Red
Apache 2.0.35 w/PHP
13207 by: Michael
Re: Problem with uploading Files with PHP 4.1.2 on IIS
13210 by: Waldemar Brand Neto
Set Apache's $REMOTE_USER externally
13211 by: Sek-Mun Wong
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 ---
ok well since my page works great on my hosting server which uses Linux i'm
just gonna install linux. My version of Windows just doesn't support it.
"Joey" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> yes i've tried that too *sigh* :( i've read the manual over and over again
> and installed it a few times and added all those lines ppl suggested but
> still no luck. I'm about to just give up. I know how to work PHP but I
just
> can't find where this problem comes from. Maybe it's a windows thingy who
> knows, maybe i need IIS on my system which of course doesn't come with Win
> XP Home Edition. I read something about webpage in management tools in
> Windows but i don't have that so i can't change things there. I really do
> appreciate all your reactions and replies.
>
> it's probably just one simple thingy somewhere BUT WHERE.
>
>
> "Nicole Amashta" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > Keep reading the documentation ... if that's the only line you added,
you
> > aren't done.
> >
> > --
> > Nicole Amashta
> > Web Application Developer
> > www.aeontrek.com
> >
> >
> > "Joey" <[EMAIL PROTECTED]> wrote in message
> > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > > Ok i'm using Apache 1.3.24 and PHP 4.1.2 and the windows platform is
XP
> > home
> > > edition
> > >
> > > yes i've added this line in my httpd.conf file
> > > AddType application/x-httpd-php .php
> > >
> > > "Joey" <[EMAIL PROTECTED]> wrote in message
> > > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > > > Everytime i try to view a php file on my server it prompts me to
> > download
> > > > the file then opens it up in word pad. I can view any other file
just
> > not
> > > > php.
> > > >
> > > > Can anyone help me with this problem please?
> > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>
--- End Message ---
--- Begin Message ---
"Steffen" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> This works for me:
>
> LoadModule php4_module d:/bin/php/experimental/apache2filter.dll
> AddType application/x-httpd-php .php
> AddType application/x-httpd-php-source .phps
>
> Steffen
>
>
> "Haagen Waade" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > 4.2.0 RC3 is out, and with Apache2 support.
> >
> > But how to configure it with apache2 ? I see there is a
> > /experimental/apache2filter.dll
> > I guess this is the new module for apache2, but how do I configure it in
> > httpd.conf
> > I've tried to load it as an module, but did not get it to work.
> >
> >
> > "Chris Dion" <[EMAIL PROTECTED]> wrote in message
> > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > > Now that there is a binary out for apache 2 for windows...are we going
> to
> > > get a binary for php for apache 2? Anyone know? Or how I can manage
to
> > > compile php for apache2?
Hi
Where does one fine the apache2filter.dll
I have latest release of both apache 2 and php4.1.2. Win32 binaries.
My apache2/modules does not appear to have mod_php4.c contained therein
either.
I know I must be missing something, and I am a bit new to all of this.
Hope you guys can help. I tried to load it all up, but after allding the
LoadModule lines in to the apache config file apache would not start :-(
Thanks for any help.
Sara
--- End Message ---
--- Begin Message ---
It's in 4.2 RC4 (not in 4.1.2)
Steffen
> Hi
>
> Where does one fine the apache2filter.dll
>
> I have latest release of both apache 2 and php4.1.2. Win32 binaries.
>
> My apache2/modules does not appear to have mod_php4.c contained therein
> either.
>
> I know I must be missing something, and I am a bit new to all of this.
>
> Hope you guys can help. I tried to load it all up, but after allding the
> LoadModule lines in to the apache config file apache would not start :-(
>
> Thanks for any help.
>
> Sara
>
>
--- End Message ---
--- Begin Message ---
"Steffen" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> It's in 4.2 RC4 (not in 4.1.2)
>
>
> Steffen
>
>
> > Hi
> >
> > Where does one fine the apache2filter.dll
> >
> > I have latest release of both apache 2 and php4.1.2. Win32 binaries.
> >
> > My apache2/modules does not appear to have mod_php4.c contained therein
> > either.
> >
> > I know I must be missing something, and I am a bit new to all of this.
> >
> > Hope you guys can help. I tried to load it all up, but after allding
the
> > LoadModule lines in to the apache config file apache would not start :-(
> >
> > Thanks for any help.
> >
> > Sara
> >
Steffen
Thanks, I have realised that now, and have got it installed and working :-)
Sara
--- End Message ---
--- Begin Message ---
I see some infomrmation about configure PHP in Apache 2.0.35:
=========================================
If you're trying to use Apache 2.0.x and PHP, you'll need to do the
following:
First, make sure that when you configure PHP you use the --with-apxs2
option, like so: --with-apxs2=/path/to/apache2/apxs. You need to use this
instead of --with-apxs. Second, when you edit your httpd.conf, instead of
adding the AddType line, add the following:
<Files *.php>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
to where you would normally add the AddType line. This works for me using
PHP 4.1.2 and Apache 2.0.28. YMMV.
=============================================
How can I configue this?:
First, make sure that when you configure PHP you use the --with-apxs2
option, like so: --with-apxs2=/path/to/apache2/apxs. You need to use this
instead of --with-apxs.
--- End Message ---
--- Begin Message ---
Dear Myke I have this problem too. When I save the uploaded file im Mysql it
save the path of the file and not the image itself. How cam I read the file
and save into a BLOB field.
Thanks.
Waldemar
----- Original Message -----
From: "Mike Flynn" <[EMAIL PROTECTED]>
To: "Uhaj" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Tuesday, April 16, 2002 11:10 AM
Subject: Re: [PHP-WIN] Problem with uploading Files with PHP 4.1.2 on IIS
> The temp file is deleted after the script is run. So if you're checking
> for the presence of that .TMP file after you have run your page, then you
> won't find it. For security reasons (and also to save hard drive space),
> the file is only there during the execution of the script. It is during
> the execution of the script that you have to do something with the
> temporary file before it is deleted, like copy it to a permanent file, or
> read the file and insert the binary data as a BLOB into your database.
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
I think this is an Apache question more than PHP, but I'll give it a
whirl.
Aside from the new apache_setenv in 4.2RC3+ (and I haven't tried), is
there a way to set $REMOTE_USER from PHP?
Let me explain:
I have an external (ie, custom) authentication process (hate basic auth)
but I want the web logs to reflect the user visits (ie, I think from
memory REMOTE_USER is the var that gets logged)
In any case, after authentication, I'd like to set $REMOTE_USER and fool
Apache into thinking that it's done a basic auth and will now log users
as per basic auth.
I've worked on an iPlanet server that's achieved this, but not without a
custom built NSAPI module (in this case would be Apache API)
I know it's pretty specific but if you can help at all I'd appreciate
it... My next step is hacking out an apache module, but that's a..
ahh... not so preferred approach ;-)
Regds,
Sek-Mun
<<<
Sek-Mun Wong
Connecting Space
Sydney, Australia
mailto:[EMAIL PROTECTED]
http://www.connectingspace.com
mobile +61 402 138 974
phone +61 2 9516 2888
fax +61 2 8080 8305
--- End Message ---