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

http://php.net/manual/en/function.file-get-contents.php


Comments

Popular posts from this blog

php - mySql Join with 4 tables -

css - Text drops down with smaller window -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -