php-windows Digest 8 Feb 2006 15:19:02 -0000 Issue 2884
Topics (messages 26684 through 26685):
Re: PHP 5 - MySQL extensions : MYSQL_CONNECT fails to complete
26684 by: G. Eggold
SESSIONS and include()
26685 by: Fredrik Tillman
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 ---
PROBLEM SOLVED
The ultimate key was to make sure the all the php_xx.dll extension files AND
libmysql.dll where located in the same place (C:\PHP5). Despite what the
documentation might lead you to believe, they need to all be in the same
place.
The php.ini param EXTENSION_DIR is set to C:\PHP5. I suspect that if I had
set it to C:\PHP5\EXT and then copied LIBMYSQL.DLL into the EXT folder I
would have had the same result. However, if you do this, you may need to
include C:\PHP\EXT in the windows PATH environment variable.(??
Greg
""G. Eggold"" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> SETUP: PHP 5.0.5 on Windows 2003 Server/ IIS 6
>
> PROBLEM: php_info() display correctly when called and basic PHP
> functionality appears to be working UNTIL I attempt to connect to a MySQL
> 4.0.21 or 4.1.15 database.
>
> WHAT I DID:
> 1) copied mysqli.dll and mysql.dll to SYSTEM32 folder along with
> LIBMYSQL.DLL, just to be sure.
> 2) enabled mysqli.dll extension in PHP.INI
>
> I understand that in PHP 5, you need to "enable" the extension=mysqli.dll
> in PHP.INI, but when I do that php_info() webpage fails (never returns).
> If I comments that config line out, php_info() works again.
>
> What am I doing wrong?
--- End Message ---
--- Begin Message ---
Hi
PROBLEM:
I want to let certain users use certain funcions on my page. To manage
that I start a session and define $_SESSION[user_level] to a value from
a mySQL table. So far so good. Users with $_SESSION[user_level]=="1" can
access things on the .php page they are on. I made a simple if-statement
to handle that.
Now the problem is that i want to use include("page.php") and let the
users with user_level=1 access special things on that included page. The
if statements that let them change things work if I access the page
directly from my browser but not when it is included in that main page.
Whats am I missing?
--- End Message ---