command line interface - execute remote php scripts using php.exe -
im executing php script using php.exe command. script executes well, under condition (using if condition) must call second 1 in remote server.
i tried adding line "header('location:http:// xxx .php');" works if use iexplorer, line not works if use cli "php.exe".
anyone knows how can call remote script using php.exe command?
thanks in advance.
maybe thinking this:
<?php $homepage = file_get_contents('http://www.example.com/'); echo $homepage; ?>
Comments
Post a Comment