Re: vbscript not running in php but running as a vbs file

Sascha Meyer <[email protected]>
Newsgroups gmane.comp.php.windows
Message-ID <[email protected]>
Hi Rui,

Rui wrote:
> hi
> im having a problem with a vbscript that sends mail .
first of all, why do you try to send a mail through the use of a vbs 
file? Consider switching to php's mail function 
(http://www.php.net/mail), with your preferred mail server set up in 
php.ini (or you can dynamically switch the server settings by using 
ini_set()).

Let's get back to your initial problem:

if you are using Microsoft IIS, have a look at your webserver's 
application event log. If the web server had any problems executing the 
script (I bet on IUSR permissions problems), you'll have a good chance 
to find the error here (if error reporting was set up to use syslog). 
Otherwise enable error reporting before calling the vbs script from PHP:

[CODE]
error_reporting(E_ALL);
ini_set ("display_errors", "1");
[/CODE]

Could you post the code of your php script calling the vbscript file? 
That'll help a lot!

Regards, Sascha

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.