php-windows Digest 5 Dec 2004 20:25:03 -0000 Issue 2496
Topics (messages 25118 through 25119):
php+mysql+apache
25118 by: AB
Urgent: How do I disallow a php/html file to act as a folder?
25119 by: Daniel Anderson
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 ---
Hi,
i have a problem: i installed apache 2.0.52, php 4.3.9 and mysql 4.1 on
win xp sp2 machine.
When i try to connect to mysql database with the mysql_connect() php
function, the returned message is "Client does not support
authentication protocol requested by server: consider upgrading MySQL
client in C:\php\file.php on line 11" (php.exe and browser).
Why? Could you help me?
Thanks
Angelo
--- End Message ---
--- Begin Message ---
I recently noticed that for some reason, if I type the filename as a folder
("http://localhost/folder/") it runs the nearest file called that.
I have several .php on a server, which can run without the extention.
("http://localhost/folder/file"), but if I typed
("http://localhost/folder/file/") it'll still run that file. And to save time,
I have made a header and footer for each of the pages I make, so it does not
consume more time re-adding them everytime I create a new document.
Is there a way that I can disable this?
So that a file (php, html, jsp, etc.) can't be launched as a folder, but can
still be launched without the file extension?
So:
http://localhost/folder/file works,
http://localhost/folder/file.php works
but:
http://localhost/folder/file/ doesn't unless there is a folder called "file".
I don't know if this is a PHP problem, or an Apache problem.
Thanks,
Dan
--- End Message ---