hello there,
i'm not sure what is wrong.Just a simple application using header
<?php
header('location:
http://192.168.80.5/info.php');
?>
save as justinfo.php
when i type 192.168.80.5/justinfo.php from 192.168.80.10 browser will direct me to 192.168.80.5. ok fine. Confirm this with access_log in 192.168.80.5 showed incoming request from 192.168.80.10
but execution in cron job or run as batch does not take place.
example:
/usr/bin/php5 -q justinfo.php will not show any incoming request in access_log
i'm sending get variable to another server triggered by cron job and target server is on windows.
example
<?php
...get record from db
header('location: http://anotherserver/fromme.aspx?var1=$var&var2=$var2');
?>
how to do that?