php-windows Digest 11 Oct 2004 08:26:38 -0000 Issue 2425
Topics (messages 24725 through 24732):
Re: PHP,W2K,Manual Configure, Authentication
24725 by: Felipe Gasper
24726 by: Kevin Williams
24727 by: DvDmanDT
24728 by: alex hogan
24729 by: alex hogan
seesion.save_path Problem
24730 by: MikeA
Re: Cookies!
24731 by: Sudeep Zamudra
24732 by: Nunners
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 ---
Did you check Event Viewer? Set error reporting to E_ALL? Put your PHP
directory in PATH?
It looks like IIS is *trying* to load PHP, based on the error that the
link gives.
-Felipe Gasper
Quoth zac korpi on 10/8/2004 3:43 PM...
Hi,
I've installed PHP manually on W2K server - IIS. I followed the instructions, as listed
in the the appendix of PHP & MYSQL Web Developmeent, and it's not working.
I've checked and rechecked the installation procedure and can't see where I did
anything wrong. The auto-install of PHP worked fine; however, I realized that I
needed the SAPI configuration for PHPmyAdmin for authentication.
Recently we got a new server at work; I'm a student working for Northern Michigan
University. I'm attempting to develope an online web satisfaction survey that writes
to an SQL database.
If anyone would be willing to help me get this working, I'd be really greatful!
Here is a link to the current php info page - http://meet.nmu.edu/test.php
Thanks!
Sincerely,
Zac Korpi
--
Quidquid latine scriptum sit altum viditur.
Si hoc legere scis, nimis eruditionis habes.
Easier web browsing: http://mozilla.org
--- End Message ---
--- Begin Message ---
Perhaps the "extension_dir" ini setting is not set properly?
Felipe Gasper wrote:
Did you check Event Viewer? Set error reporting to E_ALL? Put your PHP
directory in PATH?
It looks like IIS is *trying* to load PHP, based on the error that the
link gives.
-Felipe Gasper
Quoth zac korpi on 10/8/2004 3:43 PM...
Hi,
I've installed PHP manually on W2K server - IIS. I followed the
instructions, as listed in the the appendix of PHP & MYSQL Web
Developmeent, and it's not working.
I've checked and rechecked the installation procedure and can't see
where I did anything wrong. The auto-install of PHP worked fine;
however, I realized that I needed the SAPI configuration for
PHPmyAdmin for authentication.
Recently we got a new server at work; I'm a student working for
Northern Michigan University. I'm attempting to develope an online
web satisfaction survey that writes to an SQL database.
If anyone would be willing to help me get this working, I'd be really
greatful!
Here is a link to the current php info page -
http://meet.nmu.edu/test.php
Thanks!
Sincerely, Zac Korpi
--- End Message ---
--- Begin Message ---
All I get is an 500 response, meanin something is wrong in the IIS config..
--
// DvDmanDT
MSN: dvdmandt�hotmail.com
Mail: dvdmandt�telia.com
"Zac Korpi" <[EMAIL PROTECTED]> skrev i meddelandet
news:[EMAIL PROTECTED]
Hi,
I've installed PHP manually on W2K server - IIS. I followed the
instructions, as listed in the the appendix of PHP & MYSQL Web Developmeent,
and it's not working.
I've checked and rechecked the installation procedure and can't see where I
did anything wrong. The auto-install of PHP worked fine; however, I
realized that I needed the SAPI configuration for PHPmyAdmin for
authentication.
Recently we got a new server at work; I'm a student working for Northern
Michigan University. I'm attempting to develope an online web satisfaction
survey that writes to an SQL database.
If anyone would be willing to help me get this working, I'd be really
greatful!
Here is a link to the current php info page - http://meet.nmu.edu/test.php
Thanks!
Sincerely,
Zac Korpi
--- End Message ---
--- Begin Message ---
Did you set php as a file type in IIS?
--- End Message ---
--- Begin Message ---
> Did you set php as a file type in IIS?
Sorry..,
In IIS;
Right click on the website that you created for http://meet.nmu.edu
Select Properties
Click on the Document tab
Make sure that index.php and/or default.php is in the document list.
If you go to http://meet.nmu.edu the page "Under Construction"
displays. That means that IIS is set up for what the default file is.
(probably asp, htm or aspx)
alex hogan
--- End Message ---
--- Begin Message ---
Environment
-------------
WinXP Pro SP1
PHP 4.3.9
Apache 2.0.52
I am trying to set the session.save_path in php.ini and I cannot get it to
work. I have tried
session.save_path = "X:/ApacheGroup/Apache2/html/SessionSave"
session.save_path = "/ApacheGroup/Apache2/html/SessionSave"
session.save_path = 2;/SessionSave
session.save_path = 2;SessionSave
and other patterns. I'm putting the number in front as that is explained in
the ini file as the number of nested directories it will go. I don't need
that but thought that might get it to work. But nothing works. It is
defaulting to /. It is writeable.
Where am I going wrong????? I am also going to include the rest of the
[Session] area in case another setting is causing this problem.
Thanks for the help.
Mike
[Session]
session.save_handler = files
session.save_path = 2;X:/ApacheGroup/Apache2/html/SessionSave
session.use_cookies = 1
; session.use_only_cookies = 1
session.name = PHPSESSID
session.auto_start = 0
session.cookie_lifetime = 0
session.cookie_path = /
session.cookie_domain = "XXXXX"
session.serialize_handler = php
session.gc_probability = 1
session.gc_divisor = 100
session.gc_maxlifetime = 1440
session.bug_compat_42 = 1
session.bug_compat_warn = 1
session.referer_check =
session.entropy_length = 0
session.entropy_file =
session.cache_limiter = nocache
session.cache_expire = 180
session.use_trans_sid = 0
session.hash_function = 0
session.hash_bits_per_character = 4
url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=,fieldset="
--- End Message ---
--- Begin Message ---
Hi James,
Php on IIS or PWS are known to have problems with session and cookie. Try
using session instead of cookie. That's the safest way. Also anyone can disable
cookies on the client side where by your login authentcation may fail. So best way is
use session instead of cookie. For details pls refer "php session handling" in the
php Manual.
....SuDeEp....
James Nunnerley <[EMAIL PROTECTED]> wrote:
I'm trying to create a simple login script for user to the web application I'm
writing. I previously wrote it for using PHP4 & Apache, however I've recently
had to move to IIS5, and also upgraded to PHP5.
[script]
if (isset($_POST["username"]) AND isset($_POST["password"])) {
$res=mysql_query('SELECT username, password, agent_id FROM user where
username="'.$_POST["username"].'"');
if (mysql_num_rows($res)==0) {
$message="Username does not exist.";
} elseif (mysql_num_rows($res)==1) {
while ($user=mysql_fetch_array($res)) {
if (strtolower($user["password"])!=strtolower($_POST["password"])) {
$message="Incorrect Password.";
} else {
setcookie("username",$user["username"],time()+31449600,"/");
setcookie("agent_ID",$user["agent_id"],time()+31449600,"/");
setcookie("logged_in",time(),time()+60*60*12,"/");
header("Location: http://".$_SERVER["HTTP_HOST"]."/");
exit;
}
}
}
}
[/script]
The above works fine on Apache, but on IIS, it would seem no cookie is set.
I've found something suggesting I change php.exe to nph-php.exe - is this true,
does it work - it seems a little drastic - is there another way around it?
Cheers as ever
Nunners
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
--- End Message ---
--- Begin Message ---
If I'm going to use sessions, I understand how to start them etc, but is it
possible to have them "alive" for 24 hours?
With the cookies, I was able to, once the user logged in, keep them logged
in for 24 hours.
As it's an application we are providing for our customers, one of the things
I'm able to stipulate is that they have IE6 & Cookies turned on!
Any thoughts?
Cheers
James
> -----Original Message-----
> From: Sudeep Zamudra [mailto:[EMAIL PROTECTED]
> Sent: 09 October 2004 09:14
> To: James Nunnerley
> Cc: [EMAIL PROTECTED]
> Subject: Re: [PHP-WIN] Cookies!
>
> Hi James,
>
> Php on IIS or PWS are known to have problems with session and
> cookie. Try using session instead of cookie. That's the safest way. Also
> anyone can disable cookies on the client side where by your login
> authentcation may fail. So best way is use session instead of cookie. For
> details pls refer "php session handling" in the php Manual.
>
> ....SuDeEp....
>
> James Nunnerley <[EMAIL PROTECTED]> wrote:
> I'm trying to create a simple login script for user to the web application
> I'm
> writing. I previously wrote it for using PHP4 & Apache, however I've
> recently
> had to move to IIS5, and also upgraded to PHP5.
> [script]
> if (isset($_POST["username"]) AND isset($_POST["password"])) {
> $res=mysql_query('SELECT username, password, agent_id FROM user where
> username="'.$_POST["username"].'"');
> if (mysql_num_rows($res)==0) {
> $message="Username does not exist.";
> } elseif (mysql_num_rows($res)==1) {
> while ($user=mysql_fetch_array($res)) {
> if (strtolower($user["password"])!=strtolower($_POST["password"])) {
> $message="Incorrect Password.";
> } else {
> setcookie("username",$user["username"],time()+31449600,"/");
> setcookie("agent_ID",$user["agent_id"],time()+31449600,"/");
> setcookie("logged_in",time(),time()+60*60*12,"/");
> header("Location: http://".$_SERVER["HTTP_HOST"]."/");
> exit;
> }
> }
> }
> }
> [/script]
>
> The above works fine on Apache, but on IIS, it would seem no cookie is
> set.
> I've found something suggesting I change php.exe to nph-php.exe - is this
> true,
> does it work - it seems a little drastic - is there another way around it?
>
> Cheers as ever
> Nunners
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
--- End Message ---