php-windows Digest 9 Dec 2004 11:30:14 -0000 Issue 2500

Topics (messages 25135 through 25137):

Re: mssql functions - command line
        25135 by: Cenk Uysal
        25136 by: Cenk Uysal

fopen and ftp, help please
        25137 by: Iker Landajuela

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
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","[EMAIL PROTECTED]");

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 <[EMAIL PROTECTED]> 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

--- End Message ---
--- Begin Message ---
is there any other php.ini for command line execution???


--- Robert Twitty <[EMAIL PROTECTED]> wrote:

> Make sure the php.ini file used by the PHP command line interpreter
> has
> 
> extension=php_mssql.dll
> 
> The php.ini file used by PHP under Apache probably has this already
> specified. You can also just simply copy the php.ini for Apache
> over the
> the one used for command line execution.
> 
> -- bob
> 
> On Tue, 7 Dec 2004, Cenk Uysal 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
> >
> >
> 
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 



                
__________________________________ 
Do you Yahoo!? 
Yahoo! Mail - 250MB free storage. Do more. Manage less. 
http://info.mail.yahoo.com/mail_250

--- End Message ---
--- Begin Message ---
Hi, I�m newbie in PHP programming.
Iit�s about opening files in an

ftp with php, I have the same problem like you, mi script opens the file

correctly the first time but no longer, what`s the problem?

Thanks.



if(!($filehandle=fopen("ftp://user:[EMAIL PROTECTED]/html/BIOCAB/".$CFG['Fi
leLogTrace'],"a"))) {

--- End Message ---

Reply via email to