Skip to content

Instantly share code, notes, and snippets.

@rkrx
Created April 27, 2015 12:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rkrx/cf72ebcfb75cb900042b to your computer and use it in GitHub Desktop.
Save rkrx/cf72ebcfb75cb900042b to your computer and use it in GitHub Desktop.
@echo off
set name=Max Mustermann
set ring=1234
echo %name%
echo %ring%
<?php
$p = popen('test.bat', 'r');
$name = trim(fgets($p));
$ring = trim(fgets($p));
pclose($p);
printf("%s - %s\n", $name, $ring);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment