[PHP-WIN] Re: Need to call VB from PHP script. Is this hard to do?

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

 



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
20030908225513.17149.qmail@web80513.mail.yahoo.com">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

-- 
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