i restart ISS and i checked all the version of php.ini ,i unquoted in all
php.ini file php_mssql.dll extension. i put this dll into system32 folder .
but still i cant see mssql library in phpinfo() page. i dont understand why?
is there anything besides above things i should do?
YVES SUCAET
enable other extensions on your system (gd2 e.g.)?
HTH,
Yves
- Original Message -
From: Simge RESMOR [EMAIL PROTECTED]
To: php-db@lists.php.net
Sent: Tuesday, June 03, 2008 5:11 AM
Subject: Re: [PHP-DB] mssql_connect()
i restart ISS and i checked all the version of php.ini ,i unquoted
My php.ini is actually in the c:\windows folder. Also: Check to see if you
have multiple versions of php.ini on your system. Maybe you have a version in
c:\php or c:\windows in addition to c:/windows/system32 and the wrong file
gets interpreted.
HTH,
Yves
-- Original Message --
Hi!
That description did not help us very much... I think you're just
connecting using the wrong credentials, or using no at all. From where
do you grab the hostname, username and password? Maybe it's stored in
your session or something, and that session is not working in your
command line
Hi,
thanks for your quick answer,
but in the script I don't use sessions variables to store host, user and
password, I wrote something like that:
$sc=mssql_connect(hostname,1433,userid,password);
Can you please tell me where I can find information about how to design
scripts for either the
Hi!
Please have a look at the manual pages (if you have not allready done
that). There might be some information for you in the user comments:
http://www.php.net/manual/en/function.mssql-connect.php
Manual page about command line scripting:
Hi,
I red the http://www.php.net/manual/en/function.mssql-connect.php in a more
accurate manner, and I found an user contribution note suggesting to substitute
the ntwdblib.dll with a newer one.
The version of the old (original from the PHP v5.2.5 installation) is
2000.2.8.0
and the newer version
Thanks for informing me that CGI and CLI may use a different php.ini and that
they may be compiled differently.
The admin finally admitted that he ran a yum update which overwrote the
manually compiled CLI version.
The reason I missed it was that the build date of the latest CLI version was
From: Chris [EMAIL PROTECTED]
Instruct ICC wrote:
You said something about 2 different configuration files. I'm just making
up this name, but do you have something like:
CLI_Configuration File (php.ini) Path = /etc/cli_php.ini
as well as:
Configuration File (php.ini) Path = /etc/php.ini
I
From: Chris [EMAIL PROTECTED]
Instruct ICC wrote:
Both your command
php -i | grep 'php.ini'
and
find / -name php.ini 2/dev/null
report the single /etc/php.ini
Hmm. do a php -i and look for:
Configuration File (php.ini) Path =
That will tell you where it's looking for the file.
Maybe you
However, a web page that includes the same file with the mssql_connect
call still works fine, and now it makes sense that I see mssql is still
enabled in phpinfo.
The apache version of the php.ini file is different to the cli version.
Make sure you are looking at the right one.
On debian I
However, a web page that includes the same file with the mssql_connect
call still works fine, and now it makes sense that I see mssql is still
enabled in phpinfo.
The apache version of the php.ini file is different to the cli version.
Make sure you are looking at the right one.
On debian
Does the user 'gn' exist?
Are you using the correct password?
Does that user have permissions on the database?
Hint: Login failed for user 'gn' suggests that there is something wrong
with that account...
Regards
Joakim Andersson
-Original Message-
From: Gabor Niederlaender
Hi!
Does the user 'gn' exist?
Are you using the correct password?
Does that user have permissions on the database?
Hint: Login failed for user 'gn' suggests that there is something
wrong with that account...
That would be fine, but it is not the case. It just won't work!
I have read
Sounds like you might be working with 2 different versions of php:
Mod-php for Apache in the web environment, stand-alone php operating in
the shell. You might want to start by ensuring that the stand alone
version is compiled -with mssql. Try running phpinfo() in the shell?
Richard
Erik
snip
mssql_connect( ) function not found.
Could someone tell me how to solve this problem?
/snip
You need to recompile PHP to include MSSQL support
Sincerely,
Craig Vincent
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
16 matches
Mail list logo