Anybody know how to do this?
Printable View
Anybody know how to do this?
you have to have a server and php installed.
fiddles...any other ideas?
I beleive it was asked before in this forum. try a search
try calling the PHP-CLI exe directly
I do believe for the new PHP5.0.0b1 you would find it to be something like this:
C:/path/to/php_folder/CLI/php.exe "C:/path/to/script.php"
Older versions of PHP would probably use this:
C:/path/to/php_folder/php-cli.exe "C:/path/to/script.php"
Then, from VB, you could just pull a shell call like so
Shell("C:/path/to/php_folder/php-cli.exe \"C:/path/to/script.php\"")
I think that would work
where are you getting this
php-cli.exe
no exe file called that.
Sorry about that, I was thinking back to an older version of PHP. both recent versions of PHP (4.3.2 and 5.0.0b1) have a seperate PHP.exe file in the /cli folder that is tuned for handling command line use (CLI = Command Line Interface)
Sorry about the confusion