ok, i found the answer. although i could not find the reason, u have to load php_mssql.dll dynamically from the code with following line(it is not enough to set from php.ini): dl("php_mssql.dll"); but do not forget to put the DLL in directory C:\php4 .This is the default directory for dl() function. Just create if it doesnt exist. then there was a need to use php mail() function from the same script. and i got some more errors because of it. the first error was that it could not find the default sender of mails(). and after a few investigation i decided to set it dynamically(still it is not enough to set it in php.ini): ini_set("sendmail_from","someone@somehost"); but errors did not stop. this time SMTP server could not find the receipents despite they were in the same domain with SMTP server. so i decided to use a class for this email sending process: http://www.phpclasses.org/browse/package/14.html it works fine. i dont know why the original mail() function of php doesnt work. thanks to Manuel Lemos for this class. --- Cenk Uysal <cenk_uysal@xxxxxxxxx> wrote: > hi, > > php: 4.3.3 > apache: 1.3.24 > mssql: sql 2000 server > os: windows 2000 > > i try to run a php script from command line. it contains some mssql > functions. when i call it by browser, everthing works fine. but > when > i call the same script from command line i get the error message: > > Fatal Error: Couldn't find the function mssql_connect() > > sql client is installed, dll exists in system folder, php.ini mssql > extension is set. everthing seems to be ok. do u have any idea? > thanks... > > > > __________________________________ > Do you Yahoo!? > All your favorites on one personal page ? Try My Yahoo! > http://my.yahoo.com > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > __________________________________ Do you Yahoo!? Yahoo! Mail - Helps protect you from nasty viruses. http://promotions.yahoo.com/new_mail -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php