php-windows Digest 27 Jul 2005 11:22:41 -0000 Issue 2740

Topics (messages 26236 through 26239):

php and Windows 2003 Server
        26236 by: Danny Willis
        26237 by: Danny Willis
        26238 by: Frank M. Kromann

Re: Run a program
        26239 by: Jacob Waller

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 ---
I am installing it the old fashioned way, manually setting it up.

When I attempt to run a php script I get the following error:

"The application has failed to start because ntwdblib.dll was not found.
Re-installing teh application may fix this problem."

However, looking at another php install that I have, I am unable to track
down where the path is to locate these dlls, found in my c:\php\dlls\
folder.

Any ideas?

Thanks

--- End Message ---
--- Begin Message ---
Ah.  That explains it.  Thank you very much!

Regards,
- Dan

-----Original Message-----
From: Frank M. Kromann [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 26, 2005 2:39 PM
To: Danny Willis
Cc: [email protected]
Subject: Re: [PHP-WIN] php and Windows 2003 Server

ntwdblib.dll is used by php_mssql.dll (the MSSQL Extension) and should be
located in \windows\system32. It will only be there if you have installed
the MSSQL Server or at least the client tools for MSSQL Server.

You can copy the file from another box, but you will not be able to
configure options, rotocols or aliases without the client tools
installed.

- Frank

> I am installing it the old fashioned way, manually setting it up.
> 
> When I attempt to run a php script I get the following error:
> 
> "The application has failed to start because ntwdblib.dll was not
found.
> Re-installing teh application may fix this problem."
> 
> However, looking at another php install that I have, I am unable to
track
> down where the path is to locate these dlls, found in my
c:\php\dllsfolder.
> 
> Any ideas?
> 
> Thanks
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 

--- End Message ---
--- Begin Message ---
ntwdblib.dll is used by php_mssql.dll (the MSSQL Extension) and should be
located in \windows\system32. It will only be there if you have installed
the MSSQL Server or at least the client tools for MSSQL Server.

You can copy the file from another box, but you will not be able to
configure options, rotocols or aliases without the client tools
installed.

- Frank

> I am installing it the old fashioned way, manually setting it up.
> 
> When I attempt to run a php script I get the following error:
> 
> "The application has failed to start because ntwdblib.dll was not
found.
> Re-installing teh application may fix this problem."
> 
> However, looking at another php install that I have, I am unable to
track
> down where the path is to locate these dlls, found in my
c:\php\dllsfolder.
> 
> Any ideas?
> 
> Thanks
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 

--- End Message ---
--- Begin Message ---
Hi!

Jon wrote:
"Jacob,
echo your command and make sure that it is calling shell_exec(); correctly"

Ehm... I'm not sure if I get what you mean, Jon. Could you please explain this further?

Yong wrote:
"just run D:/usr/bin/php.exe -q script.php arg1 arg2 in the command window.
It's no need using shell."

I'm not sure, but I think I do have to run it through bash, because the program (fontforge) isn't really made for Windows, so it uses Cygwin (some kind of Linux-like environment) to be able to run on Windows. This is why I have to (I think) use the Cygwin bash to be able to run it.

I've discovered something curious - the command doesn't not only work when I run it from the Run-dialog, but also when I run it from the PHP CLI! However, when I run exactly the same script with the PHP CGI it does NOT work. How is that possible? I hope you're able to help me, 'cause my poor brain isn't capable of taking it anymore ;)
/Jacob

----- Original Message -----
From: ""Jacob Waller"" <[EMAIL PROTECTED]>
Newsgroups: php.windows
To: <[email protected]>
Sent: Monday, July 25, 2005 6:11 PM
Subject: Run a program


Hi!
I'd like to be able to run a program from a php-script. I've tried running
the following command, and it works when I run it from the Run-dialog:
D:\Cygwin\bin\bash.exe --login -i script.sh arg1 arg2
(the shell script runs another program (fontforge) which too runs a script)

However, when I try to run the same command from a php-script nothing
happens. Or rather, bash starts, but it doesn't do what it does when i run
the same command from the Run-dialog. I'm not even sure if I'm using the
right php-command and syntax. Could you please tell me how to do?
I'm on Win XP Home if that matters...
Thanks in advance! /Jacob

--- End Message ---

Reply via email to