php-windows Digest 27 Feb 2006 08:50:12 -0000 Issue 2898
Topics (messages 26722 through 26724):
PHP 5.1.2 ISAPI and Mysql
26722 by: Greg Thomas
problems with session vars
26723 by: Ing. Tomás Liendo
26724 by: Luis Moreira
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 folks, heres one for ya.
IIS 6 (Win 2003 Ent) New installation (no possible reminants of an old php
version, not that I haven't reverified)
PHP 5.1.2
Mysql 5.0.18
PHP dir (c:\php) added to path.
php.ini (from php.ini-dist) modified to for IIS (cgi.force_redirect = 0),
php/ext dir (extension_dir=c:/php/ext) and mysql extension
uncommented.(extension=php_mysql.dll)
When I load the use the isapi for php and attempt to connect to the
database, I get the message "cannot find mysql_connect....." as if the
extension wasn't loaded. I have verified that it is loaded via phpinfo.
In addition, I've changed the ext directory to point to where it is not
located to verify that it is using the php.ini, and of course I receive an
error, as expected (cannot find php_mysql.dll). All other aspects of php
seem to work fine based on limited tests, as you would expect.
The most confusing part is that if I use the php-cgi in IIS instead of the
isapi, everything works perfect. (no other changes made).
I could understand that if this was my first php 5 setup or I was just being
stupid, but I dont see any reason for this to be happening and need a fresh
outlook if anyone has any suggestions.
Now normally when setting up php on IIS, I just use the cgi and call it
good, as in the past there were possible stability issues, but as I've moved
the site to a new server, I was hoping the isapi would preform a little
better. comments? tips?
--- End Message ---
--- Begin Message ---
Hi I have the following problem:
I developed a system that it runs perfec in my PC and in hosting server with
Linux. But the session vars don't work in a hosting server with Windows...
The technical contact of the Server with Windows says me that the problem is
a space before the function session_start() in my code...
I tried this, but don't work...
Have any idea why session vars don't work in a Windows Server???
I have the same version exactly of the system in a server with Linux:
http://www.pentagonoonline.com.ar/soporte
and in a server with Windows: http://www.iracbiogen.com.ar/virtual
Try to login into the system with:
user (usuario): master
password (clave): gh306
In Linux you can login without problems, but in Windows you won't to leave
the login page. This is because in the Windows server the session var that
I'm using to determine if the user has loged correctly don't work...
How can I solve this problem?
I send you the files procesa_login.php (processes login) and controla.php
(controls). The first one verifies the user name and password in the
database (no problems), the second verify that the user has loged correctly
(problems with the session var $_SESSION['autentificado'] (authenticated).)
Well I wait to have explained to myself, and... sorry for my english...
Ahead of time, thank you very much,
Tom.
begin 666 procesa_login.php
M/#\@<V5S<VEO;E]S=&%R="@I.PT*("!I;F-L=61E*")C;VYE>"YP:' B*3LO
M+U!R;W9E92!U;[EMAIL PROTECTED];B!P87)A(&-O;F5C=&%R<[EMAIL PROTECTED]@<V5R=FED
M;W(@9&[EMAIL PROTECTED]<R!->5-13"X-"B @+R\D;&EN:SUC;VYE8W1A
M<G-E*")L;V-A;&AO<W0B+")C;W1O;2(L(F=R965N,S V(BPB8V]T;VU?<&5N
M=&%G;VYO(BD[(" O+W!A<[EMAIL PROTECTED]@<V5R=F5R#0H@("\O)&QI;FL]8V]N96-T
M87)[EMAIL PROTECTED];&]C86QH;W-T(BPB<F]O="(L(B(L(G-O<&]R=&4B*3LO+U)E86QI
M>F$@;&[EMAIL PROTECTED];[EMAIL PROTECTED](&QA(&)A<[EMAIL PROTECTED]&[EMAIL
PROTECTED]&%T;W,-"B @)&YI8VL]
M)%]03U-46R=N:6-K)UT[#0H@("1C;&%V93TD7U!/4U1;)V-L879E)UT[(" -
M"B @)&-U<G-O/21?4$]35%LG8W5R<V\G73L-"B @#0HO+T%U=&5N=&EC86-I
M;[EMAIL PROTECTED]&[EMAIL
PROTECTED])I;RTM+2TM+2TM+2TM+2TM+2TM+2TM+2TM#0HD=7-U87)I
M;W,];7ES<6Q?<75E<GDH(E-%3$5#5" J([EMAIL PROTECTED]:6YI<W1R861O<F5S
M(%=(15)%(&YO;6)R95]U<STG(BXD;FEC:RXB)[EMAIL PROTECTED])R(N)&-L
M879E+B(G(BPD;&EN:RD[#0HD=7-U87)I;SUM>7-Q;%]N=6U?<F]W<[EMAIL PROTECTED]
M87)I;W,I.PT*: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@(" @(" @>R @(" @(" @#0H@(" @(" @(" @(" D:&]R85]A
M8W1U86P]9V5T=&EM96]F9&%Y*"D[+R]/8G1I96YE(&QA(&AO<[EMAIL PROTECTED]
[EMAIL PROTECTED](" @(" @(" @(" @)&AO<F%?96YT<F%D83TD7U-%4U-)3TY;(FAO<F$B
M73LO+T]B=&EE;F4@;&$@:&]R82!D92!L82!U;'1I;6$@<&5T:6-I;VXN#0H@
M(" @(" @(" @(" D9&EF97)E;F-I83TD:&]R85]A8W1U86Q;(G-E8R)=+21H
M;W)A7V5N=')A9&$[+R]#86QC=6QA(&QA(&1I9F5R96YC:[EMAIL PROTECTED]<F4@;&$@
M:&]R82!D92!I;F=R97-O('D-"B @(" @(" @(" @(" @(" @(" @(" @(" @
M(" @(" @(" @(" @(" @(" @(" @(" @(" @(" @(" @(" @(" @(" @(" @
M(" @(" @(" @(" @(" @("\O(&QA(&AO<[EMAIL PROTECTED]@T*(" @(" @(" @
M(" @(&EF*"1D:69E<F5N8VEA/C$R,# I#0H@(" @(" @(" @(" @>R\O4VD@
M;&[EMAIL PROTECTED]&EF97)E;F-I82!E;B!M87EO<B!A(&1I97H@;6EN=71O<[EMAIL
PROTECTED]@=7-U
M87)I;R!E<R!D96-O;F5C=&%D;R!Y(&5N=FEA9&[EMAIL PROTECTED]
M90T*(" @(" @(" @(" @(" @(" @(" @(" @(" @(" @(" @+R]L;V=I;BX-
M"B @(" @(" @(" @(" @(" @('-E<W-I;VY?9&5S=')O>[EMAIL PROTECTED](" @(" @
M(" @(" @(" @(" @:&5A9&5R*"),;V-A=&EO;CH@;&]G:6XN<&AP(BD[#0H@
M(" @(" @(" @(" @('T-"B @(" @(" @(" @(" @96QS90T*(" @(" @(" @
M(" @("![#0H@(" @(" @(" @(" @(" @(" D7U-%4U-)3TY;(FAO<F$B73TD
M:&]R85]A8W1U86Q;(G-E8R)=.R\O06-T=6%L:7IA(&QA(&AO<[EMAIL PROTECTED]&4@;&$@
M=6QT:6UA('!E=&EC:[EMAIL PROTECTED](" @(" @(" @(" @("!](" @(" @(" @(" -
M"B @(" @(" @(" @?2HO#0H)?2 -"@EE;'-E#0H)>PD)(" -"@D))%]315-3
M24].6R=A=71E;G1I9FEC861O)UT](DY/(CL-"@D):&5A9&5R*"),;V-A=&EO
:;CH@;&]G:6XN<&AP(BD[#0H@(" @?0T*/SX`
`
end
--- End Message ---
--- Begin Message ---
I don't use much session variables, but I think the problem is on PHP.INI,
not on Windows.
You are using two different systems, you can only compare them if they are
using the same settings.
Caution
This registers a global variable. If you want to register a session variable
from within a function, you need to make sure to make it global using the
<http://pt.php.net/manual/en/language.variables.scope.php> global keyword or
the $GLOBALS[] array, or use the special session arrays as noted below.
-----Original Message-----
From: Ing. Tomás Liendo [mailto:[EMAIL PROTECTED]
Sent: sábado, 25 de Fevereiro de 2006 19:18
To: [email protected]
Subject: [PHP-WIN] problems with session vars
Hi I have the following problem:
I developed a system that it runs perfec in my PC and in hosting server with
Linux. But the session vars don't work in a hosting server with Windows...
The technical contact of the Server with Windows says me that the problem is
a space before the function session_start() in my code...
I tried this, but don't work...
Have any idea why session vars don't work in a Windows Server???
I have the same version exactly of the system in a server with Linux:
http://www.pentagonoonline.com.ar/soporte
and in a server with Windows: http://www.iracbiogen.com.ar/virtual
Try to login into the system with:
user (usuario): master
password (clave): gh306
In Linux you can login without problems, but in Windows you won't to leave
the login page. This is because in the Windows server the session var that
I'm using to determine if the user has loged correctly don't work...
How can I solve this problem?
I send you the files procesa_login.php (processes login) and controla.php
(controls). The first one verifies the user name and password in the
database (no problems), the second verify that the user has loged correctly
(problems with the session var $_SESSION['autentificado'] (authenticated).)
Well I wait to have explained to myself, and... sorry for my english...
Ahead of time, thank you very much,
Tom.
--- End Message ---