Re: [PHP-DB] How to programmatically finding freetds.conf location?

2005-03-12 Thread Jochem Maas
Ashwari Nugraha wrote:
Thanks Joseph,
I understood about your idea. But it can be more than one freetds.conf
found, all I need is finding ones which is used by mssql_connect(). Some
people do not delete FreeTDS installation source that is still contain that
file.
if you know that then you know the structure of the source tree, filter out
freetds.conf files found with a 'source tree' subpath. could be a way to do 
it...
I know nothing about freeTDS, I wouldn't talk to an MSSQL server if it paid me. 
:-)
I had to look up freeTDS and I found out what it was... some more clicking got
me to this page:
http://www.freetds.org/userguide/freetdsconf.htm#FREETDSCONFLOCATION
which is probably a good place to start investigating your options.
(maybe you have seen it already?)

Joseph Crawford wrote:

you could execute the exec command in php and run a locate
freetds.conf or whereis freetds.conf or find freetds.conf, i believe
whereis only locates binary files not sure though.
read up on exec here
http://us2.php.net/manual/en/function.exec.php


--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP-DB] Log in multiple users to MySql

2005-03-12 Thread Jochem Maas
Mahmoud Badreddine wrote:
I authenticate users of my database with the Apache dialog box. I would 
like to know where do these values (usernames and passwords) get stored 
so that I can use this information to log in to the MySql database.
its not a DB related question, you should have posted at php-generals, well
actually you should have STFW but anyway the following should tell you what
you need to know:
$login = isset($_SERVER[ 'PHP_AUTH_USER' ]) ? $_SERVER[ 'PHP_AUTH_USER' ]: 
false;
$pass  = isset($_SERVER[ 'PHP_AUTH_PW' ])   ? $_SERVER[ 'PHP_AUTH_PW' ]: false;


--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP-DB] How to programmatically finding freetds.conf location?

2005-03-12 Thread Ashwari Nugraha
Thanks Joseph,
I understood about your idea. But it can be more than one freetds.conf
found, all I need is finding ones which is used by mssql_connect(). Some
people do not delete FreeTDS installation source that is still contain that
file.


Joseph Crawford wrote:

> you could execute the exec command in php and run a locate
> freetds.conf or whereis freetds.conf or find freetds.conf, i believe
> whereis only locates binary files not sure though.
> 
> read up on exec here
> http://us2.php.net/manual/en/function.exec.php
> 
> 

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



WELCOME to php-db@lists.php.net

2005-03-12 Thread php-db-help
Hi! This is the ezmlm program. I'm managing the
php-db@lists.php.net mailing list.

I'm working for my owner, who can be reached
at [EMAIL PROTECTED]

Acknowledgment: I have added the address

   archive@mail-archive.com

to the php-db mailing list.

Welcome to [EMAIL PROTECTED]

Please save this message so that you know the address you are
subscribed under, in case you later want to unsubscribe or change your
subscription address.


--- Administrative commands for the php-db list ---

I can handle administrative requests automatically. Please
do not send them to the list address! Instead, send
your message to the correct command address:

For help and a description of available commands, send a message to:
   <[EMAIL PROTECTED]>

To subscribe to the list, send a message to:
   <[EMAIL PROTECTED]>

To remove your address from the list, just send a message to
the address in the ``List-Unsubscribe'' header of any list
message. If you haven't changed addresses since subscribing,
you can also send a message to:
   <[EMAIL PROTECTED]>

or for the digest to:
   <[EMAIL PROTECTED]>

For addition or removal of addresses, I'll send a confirmation
message to that address. When you receive it, simply reply to it
to complete the transaction.

If you need to get in touch with the human owner of this list,
please send a message to:

<[EMAIL PROTECTED]>

Please include a FORWARDED list message with ALL HEADERS intact
to make it easier to help you.

--- Enclosed is a copy of the request I received.

Return-Path: 
Received: (qmail 93301 invoked by uid 1010); 12 Mar 2005 19:04:06 -
Delivered-To: [EMAIL PROTECTED]
Delivered-To: [EMAIL PROTECTED]
Received: (qmail 93284 invoked from network); 12 Mar 2005 19:04:06 -
Received: from unknown (HELO pb1.pair.com) (127.0.0.1)
  by localhost with SMTP; 12 Mar 2005 19:04:06 -
Return-Path: 
X-Host-Fingerprint: 209.152.117.190 2b.bz FreeBSD 4.4 (1)
Received: from ([209.152.117.190:3988] helo=usw2.natel.net)
by pb1.pair.com (ecelerity HEAD r(5124)) with SMTP
id F8/67-31540-42D33324 for <[EMAIL PROTECTED]>; Sat, 12 Mar 2005 
14:04:05 -0500
Received: (qmail 74712 invoked from network); 12 Mar 2005 19:04:00 -
Received: from batv-01-044.dialup.netins.net (HELO Htebazile.mail-archive.com) 
(216.248.109.45)
by us-webmasters.com with SMTP; 12 Mar 2005 19:04:00 -
Message-Id: <[EMAIL PROTECTED]>
X-Sender: [EMAIL PROTECTED]
X-Mailer: QUALCOMM Windows Eudora Version 5.1
Date: Sat, 12 Mar 2005 13:03:13 -0600
To: [EMAIL PROTECTED]
From: Mail Archive Dot Com 
Subject:
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"


Re: [PHP-DB] How to programmatically finding freetds.conf location?

2005-03-12 Thread Joseph Crawford
you could execute the exec command in php and run a locate
freetds.conf or whereis freetds.conf or find freetds.conf, i believe
whereis only locates binary files not sure though.

read up on exec here
http://us2.php.net/manual/en/function.exec.php


-- 
Joseph Crawford Jr.
Codebowl Solutions
[EMAIL PROTECTED]

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-DB] How to programmatically finding freetds.conf location?

2005-03-12 Thread Ashwari Nugraha
Anybody know?
please help...

Ashwari Nugraha
[EMAIL PROTECTED]

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php