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

From: Date: Sat, 23 May 2009 09:17:43 +0000
Subject: Re: vbscript not running in php but running as a vbs file
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-29350@lists.php.net to get a copy of this message
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

« previous php.windows (#29350) next »