php-windows Digest 17 Jul 2003 02:01:13 - Issue 1826
Topics (messages 20805 through 20811):
Re: Newbie Q
20805 by: H Marc Bower
20806 by: Gabriel_k
20807 by: H Marc Bower
20808 by: Dick Kurtz
Re: What if there is no file?
20809 by: Neil Smith
connect
I was just reading about this on the MySQL web site.
It seems they have change the authentication protocol
starting with version 4.1
There is a note that clients like PHP, Perl etc will
need to be recompiled to support the NEW protocol. For
now I'm sticking with MySQL 4.0.1
Paul
--- "Michael G.
Code below comes straight out of the manual. I can connect using mysql client on other
pc, and using SQLyog. but Php will not connect. I can run php scripts with no problem
otherwise.
Setup is: Win2k - sp3; php 4.3.2 ; Mysql 4.1; Apache 2.
This is the error I get:
;
Warning: mysql_connect():
At 11:14 16/07/2003 +, you wrote:
Message-ID: <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
From: "Gabriel_k" <[EMAIL PROTECTED]>
Date: Wed, 16 Jul 2003 13:14:57 +0200
Subject: Re: Newbie Q
MIME-Version: 1.0
What if there is no file?
Then how do you propose your PHP script is stored - by osmosis ?
According to the PHP Manual:
11. Where can I find a complete list of pre-set variables available to
me, and why are these not documented in the PHP documentation?
The best way is to stick a part on a page and load
it up. This will show you all sorts of information about your PHP setup,
includ
Well, if you want the path as far as the website is concerned, use
dirname($PHP_SELF). If you want the absolute file system path, use
getcwd().
Example:
Files located on server at
D:\wwwroot\files\uploads\here
By website address at:
http://yourserver.com/files/uploads/here
File being accessed:
h
Well, I want my php script to put the TITLE of a html page to the name of
the directory the script is in.
/Gabbah
"H Marc Bower" <[EMAIL PROTECTED]> skrev i meddelandet
news:[EMAIL PROTECTED]
> Um... the file in which you put that command should be there... :)
>
> What is the purpose for knowing
Um... the file in which you put that command should be there... :)
What is the purpose for knowing the directory name? Maybe there is
something else you can tell us that will get you the answer you're looking
for.
(V)
- Original Message -
From: "Gabriel_k" <[EMAIL PROTECTED]>
> What if
php-windows Digest 16 Jul 2003 11:14:49 - Issue 1825
Topics (messages 20801 through 20804):
Authenticating users on Active Directory using LDAP
20801 by: Igor Portnoy
Re: Newbie Q
20802 by: Heyz
20803 by: Heyz
20804 by: Gabriel_k
Administrivia:
To subscribe
What if there is no file?
/Gabbah
"Heyz" <[EMAIL PROTECTED]> skrev i meddelandet
news:[EMAIL PROTECTED]
> It's simple.
>
> dirname(__FILE__)
>
>
> "Gabriel_k" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > How can I find out (as a string) in what dir my php script is run?
> >
>
10 matches
Mail list logo