Re: [PHP-DB] mssql_connect()

2008-06-03 Thread Yves Sucaet
for this)? Can you enable other extensions on your system (gd2 e.g.)? HTH, Yves - Original Message - From: "Simge RESMOR" <[EMAIL PROTECTED]> To: Sent: Tuesday, June 03, 2008 5:11 AM Subject: Re: [PHP-DB] mssql_connect() i restart ISS and i checked all the version o

Re: [PHP-DB] mssql_connect()

2008-06-03 Thread Simge RESMOR
ystem32 and the wrong file gets interpreted. HTH, Yves -- Original Message -- Received: Mon, 02 Jun 2008 06:31:37 AM CDT From: "simge" <[EMAIL PROTECTED]> To: php-db@lists.php.net Subject: [PHP-DB] mssql_connect() hi, I have a problem to connect MsSQL server 2005 with

Re: [PHP-DB] mssql_connect()

2008-06-02 Thread YVES SUCAET
: Mon, 02 Jun 2008 06:31:37 AM CDT From: "simge" <[EMAIL PROTECTED]> To: php-db@lists.php.net Subject: [PHP-DB] mssql_connect() hi, I have a problem to connect MsSQL server 2005 with mssql_connect() function. the error: fatal error undefined function mssql_connect(). I correct p

[PHP-DB] mssql_connect()

2008-06-02 Thread simge
hi, I have a problem to connect MsSQL server 2005 with mssql_connect() function. the error: fatal error undefined function mssql_connect(). I correct php.ini(unquoting php_mssql.dll) i put it in c:/windows/system32 but still i cany see mssql library in phpinfo() page. Please Help Me. -- PHP

Re: [PHP-DB] mssql_connect error only on command line

2008-04-02 Thread Krister Karlström
Hi again! Allright, great! You see that user manuals can be very useful if they just are read carefully enough! :) The user contributions to the PHP manual are very often quite informative and it's great that people document the problems and solutions. I think you're quite near the truth he

Re: [PHP-DB] mssql_connect error only on command line

2008-04-02 Thread Molteni Davide
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

Re: [PHP-DB] mssql_connect error only on command line

2008-04-02 Thread Krister Karlström
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: http://www.php.net/manual/en/features.commandline.p

Re: [PHP-DB] mssql_connect error only on command line

2008-04-02 Thread Molteni Davide
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

Re: [PHP-DB] mssql_connect error only on command line

2008-04-02 Thread Krister Karlström
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 en

[PHP-DB] mssql_connect error only on command line

2008-04-02 Thread Molteni Davide
Hi, I have a problem with all my php scripts that use MS SQL Server, but only when I start them from the command line I'm using Apache 2.2.4 with PHP 5.2.5 on a server Win2k3 with SP2, and MS SQL Server 2000 on another Win2k3 server. If I run the same script using a webbrower as an internet page

RE: [PHP-DB] mssql_connect not working from command line [RESOLVED]

2007-10-19 Thread Instruct ICC
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 e

Re: [PHP-DB] mssql_connect not working from command line

2007-09-13 Thread Instruct ICC
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

Re: [PHP-DB] mssql_connect not working from command line

2007-09-12 Thread Chris
Instruct ICC wrote: 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 fo

Re: [PHP-DB] mssql_connect not working from command line

2007-09-12 Thread Instruct ICC
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 yo

Re: [PHP-DB] mssql_connect not working from command line

2007-09-11 Thread Chris
Instruct ICC wrote: 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

Re: [PHP-DB] mssql_connect not working from command line

2007-09-11 Thread Instruct ICC
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 h

Re: [PHP-DB] mssql_connect not working from command line

2007-09-10 Thread Chris
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

[PHP-DB] mssql_connect not working from command line

2007-09-10 Thread Instruct ICC
I had cronjobs running fine on Linux which included a file which called mssql_connect. Today when I run the cronjob script directly from the command line, I get: PHP Fatal error: Call to undefined function mssql_connect() in /the/included/file.php on line # Fatal error: Call to undefined fun

[PHP-DB] mssql_connect

2005-01-06 Thread Philip Thompson
Hi again all! Right after I sent the email... I think I figured out what it was! I do not have it `uncommented` in my php.ini file! Therefore, none of the mssql_* functions would work. Sorry for that last email. ~Philip -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: ht

[PHP-DB] mssql_connect issues

2005-01-06 Thread Philip Thompson
Hi all. I have worked with a MySQL database a whole lot, but never really an MS SQL database before. Here's the problem I'm having. I call this function and then nothing else happens. No other information shows up on the page. $link = mssql_connect("myServer", "me", "pw"); Of course, I replace

RE: [PHP-DB] MSSQL_connect() won't work

2002-07-09 Thread 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 re

RE: [PHP-DB] MSSQL_connect() won't work

2002-07-09 Thread joakim . andersson
- > From: Gabor Niederlaender [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, July 09, 2002 12:26 PM > To: [EMAIL PROTECTED] > Subject: [PHP-DB] MSSQL_connect() won't work > > > Hello all! > > I am desperately trying to connect to a Win2000 SQL-Server, but I > always

[PHP-DB] MSSQL_connect() won't work

2002-07-09 Thread Gabor Niederlaender
Hello all! I am desperately trying to connect to a Win2000 SQL-Server, but I always get the error message: Warning: MS SQL message: Login failed for user 'gn'. (severity 14) in c:\inetpub\wwwroot\test.php on line 11 Warning: MS SQL: Unable to connect to server: SERVER1 in c:\inetpub\wwwroot\te

[PHP-DB] mssql_connect problem

2002-05-29 Thread Brian
I removed some 'security' settings that Microsoft had recommended which had prevented Named Pipe connections to our Microsoft SQL server. Basically requiring everyone to use TCPIP connections. Which is very simple when using a sYstem DSN or ADODB or any number of ASP connection types. But the l

Re: SV: [PHP-DB] mssql_connect() commandline problem

2001-08-14 Thread Richard Chauvaux
Erik, Having only set up PHP once on Windoze and once with Apache on Linux, I would have to reference the installation docs on php.net. On Windoze, you edit the php.ini file-- maybe that's also true for the stand-alone on Linux? You need the stand-alone version if you want to bypass the Apac

SV: [PHP-DB] mssql_connect() commandline problem

2001-08-14 Thread Erik
I wrote a script () and executed it from the commandline (php script.php > test.txt) turns out text.txt doesnt have sybase support listed at all - which the apache version of phpinfo has. could this be the problem? and if so, how do i enable sybase support for the commandline php? or can i setup s

Re: [PHP-DB] mssql_connect() commandline problem

2001-08-14 Thread Richard Chauvaux
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 wrote

[PHP-DB] mssql_connect() commandline problem

2001-08-14 Thread Erik
When running a (php 4.0.6) script (on redhat 6.1) using mssql_connect() directly on the shell with "php -q script.php" i get a fatal error: Call to undefined function: mssql_connect() But this error does not occur when running the script through a browser (apache webserver) What's the deal

AW: [PHP-DB] mssql_connect() function not found when I load the page...

2001-06-20 Thread Stefan Siefert
You need to uncomment the mssql.dll (or something called like this) in your php.ini (In the section Windows DLL's). Greetings, Stefan -Ursprüngliche Nachricht- Von: lwneo [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 20. Juni 2001 06:21 An: [EMAIL PROTECTED] Betreff: [P

RE: [PHP-DB] mssql_connect() function not found when I load the page...

2001-06-20 Thread Craig Vincent
mssql_connect( ) function not found. Could someone tell me how to solve this problem? 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 commands, e-mail

[PHP-DB] mssql_connect() function not found when I load the page...

2001-06-20 Thread lwneo
Hi, I am running PHP with apache as server at Windows 98 platform. When I open a page I write that will connect to Microsoft SQL Server 7.0 in my intranet, I get the error : mssql_connect( ) function not found. Could someone tell me how to solve this problem? Thanks. lwneo. -- PHP Data