- date: documentation ( source)
- strtotime: documentation ( source)
<?php
$date = date("Y-m-d");
$date2 = strtotime($date)-604800;
$date3 = date("Y-m-d H:i:s", $date2);
$post_data = "pagecount=1&operation=listfax&begin=".$date3;
echo $post_data;