Re: Need to call VB from PHP script. Is this hard to do?
| From: | Sek-Mun Wong | Date: | Mon, 08 Sep 2003 23:41:03 +0000 |
| Subject: | Re: Need to call VB from PHP script. Is this hard to do? | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-21331@lists.php.net to get a copy of this message | ||
you can use the ill-named "fopen".
eg,
$fp = fopen (http://www.example.com/vbscript.asp?a=1&b=2, "r");
you then have to parse the output of the asp to determine the result of the
script execution.
ie,
$contents = fread ($fd, filesize ($filename));
fclose ($fd);
then preg_match $contents for success or failure code.
It's not elegant, but I've used this brute force approach and it works.
<karen97214@yahoo.com> wrote in message
news:20030908225513.17149.qmail@web80513.mail.yahoo.com...
> Have visual basic script to open text file and
> validate contents. I would like to call this vb from
> PHP page after a .txt if uploaded but before it makes
> it too far into the process.
>
> Can a use a stored procedure (SQL Server) to call the
> vb script? Or is there a slicker way.
>
> Thanks,
> Karen
>
> __________________________________
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site design software
> http://sitebuilder.yahoo.com