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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux