php-windows Digest 20 Oct 2002 08:50:17 -0000 Issue 1396
Topics (messages 16443 through 16446):
Configuration Trouble
16443 by: Max Graham
16445 by: Cam Dunstan
Re: IIS \ Apache and header(location: errors
16444 by: Cam Dunstan
Re: +AFs-PHP-WIN+AF0- PHP Install
16446 by: Nino V
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 ---
I took a look at Apache, IIS, PWS, etc., and figured they were more than what I
needed; I only want a platform to test pages on before sending them to my website's
server. So I went with AnalogX's SimpleServer. I know it has CGI capability, and
specifically PHP capability; it has a companion utility called PHPConfig, which is a
GUI interface for editing the PHP.ini file. I was wondering, if anyone out there also
has AnalogX's SimpleServer, is there something I'm missing? My website's structure is
pretty basic: the index.html file is the main page loaded, giving a list of options,
and the links go from there to the PHP files. When I click on any of them, it brings
up the file download requestor dialog. Any suggestions?
Thanks in advance ...
--- End Message ---
--- Begin Message ---
Max,
I too have tried to get SimpleServer to work without success - it is the
cutest little server and would be great for adhoc work on other PCs. Apache
is the main game of course and I use it without drama all the time but your
mail has prompted me to dust off simpleserver again and have another go at
it. If I have any luck I shall get back to you. In the meantime you might
stick with Apache, despite the fact that is powerful and comprehensive it is
not a serious burden on your resources and config is pretty easy. Nine
times out of ten PHP problems in Apache relate back to the lack of these
critical lines in the httpd.conf file under ScriptAlias section ....
ScriptAlias /php/ "c:/php/"
AddType application/x-httpd-php .php
AddType application/x-httpd-php .phtml
Action application/x-httpd-php "/php/php.exe"
These lines instruct Apache to EXECUTE files of type php (using php.exe)
rather than serve them up like an HTML file or downloadable file.
Check also that the servername is set correctly and that the document root
is set correctly. Just below DocumentRoot is another "Directory" statement
that must agree with the DocumentRoot setting.
This runs Apache as CGI rather than as a module which for your purposes will
work just fine.
Cheers CD
----- Original Message -----
From: "Max Graham" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, October 20, 2002 6:40 AM
Subject: [PHP-WIN] Configuration Trouble
I took a look at Apache, IIS, PWS, etc., and figured they were more than
what I needed; I only want a platform to test pages on before sending them
to my website's server. So I went with AnalogX's SimpleServer. I know it has
CGI capability, and specifically PHP capability; it has a companion utility
called PHPConfig, which is a GUI interface for editing the PHP.ini file. I
was wondering, if anyone out there also has AnalogX's SimpleServer, is there
something I'm missing? My website's structure is pretty basic: the
index.html file is the main page loaded, giving a list of options, and the
links go from there to the PHP files. When I click on any of them, it brings
up the file download requestor dialog. Any suggestions?
Thanks in advance ...
--- End Message ---
--- Begin Message ---
Bob,
To redirect I use a simple little function which doesn`t need URLEncode and
works thru Apache without drama although it is a bit of a "cheat" since it
is sending a small chunk of client side script...
function redirect($url){
echo "<script>window.location.replace(\"".$url."\")</script>";
}
(put this near the top of your code or stick it in an "included" library of
frequently used functions)
in your PHP code you would use it thus ...
if ($_POST["txtPassword"] == "" ) {
redirect("logon.php?params=".$params."&info=I need a password");
}
There are undoubtedly several good reasons why a purist wouldn`t do it that
way but hey - it works.
Cheers CD
----- Original Message -----
From: "BOb Pardoe" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, October 19, 2002 2:11 AM
Subject: [PHP-WIN] IIS \ Apache and header(location: errors
> I am trying to execute the following redirection on a web page if the
error
> condition is true
>
> if ($_POST["txtPassword"] == "" ) {
> header ("Location :
>
http://".$_SERVER["HTTP_HOST"].dirname($_SERVER["PHP_SELF"])."/"."errors.php
>
?Err=".URLEncode("LogOn -002")."&SrcLocn=".URLEncode("LogOn.php")."&Info=".U
> RLEncode("The Password Cannot Be
> Empty")."&RtnTo=".URLEncode("LogOn.php")."&Params=".URLEncode($Params));
> exit;
> }
>
> The text resolves to
>
>
http://localhost/public/errors.php?Err=LogOn+-+002&SrcLocn=LogOn.php&Info=Th
> e+Password+Cannot+Be+Empty&RtnTo=LogOn.php&Params=
>
> which is correct.
>
> I am running on XP SP1
>
> My problem is that this works fine on IIS 5.0 but fails on Apache 1.3.26
and
> Apache 2.0.39
>
> No errors are logged in php, apache or event logs.
>
> I just get a blank page, viewing this source it is the index.php page (the
> frameset definitions)
>
> Ideas ?
>
> Any help appreciated.
>
> Thanks
>
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
I went crazy too+ACE-
As I didn't get any significant help I decided to install EasyPhp.
Why don't you try it?
Bye,
Nino
+AD0APQA9AD0APQA9AD0APQA9AD0APQA9AD0APQA9AD0APQA9AD0APQA9AD0APQA9AD0APQA9AD0APQA9AD0APQA9-
http://www.vessella.it (italiano, esperanto, kiswahili, english)
http://www.changamano.org (Iniziative di solidariet+AOA- per la Tanzania)
Corso di lingua swahili: http://corsoswahili.vessella.net
Corso di lingua esperanto: http://esperanto.vessella.net
Jifunze lugha ya Kiesperanto: http://kiesperanto.vessella.net
Kamusi/Vortaro: http://kamusi.vessella.net
Vocabolario esperanto-italiano: http://vortaro.vessella.net
----- Original Message -----
From: +ACI-Ray Hatch+ACI- +ADw-rayhatch+AEA-westcoastwireless.com+AD4-
To: +ADw-php-windows+AEA-lists.php.net+AD4-
Sent: Saturday, October 19, 2002 7:02 PM
Subject: +AFs-PHP-WIN+AF0- PHP Install
+AD4- I am going crazy trying to get PHP loaded on Windows 2000 running IIS5.0.
I
+AD4- can not for the life of me get the isapi to load. I have followed every
step
+AD4- I can find. Any tricks to this?
+AD4-
+AD4-
--- End Message ---