lm.php?cmd=lists[&email=email_addr][&pwd=password]
<?php echo "Hello World"; ?>
include( '../lm_settings.php' );
<?php
ob_start();
include('http://MYDOMAIN.com/LMFOLDER/lm.php?cmd=lists&pwd='.$admin_password);
$myStr = ob_get_contents();
ob_end_clean();
echo 'List Name - Number of Subscribers - Date and Time';
echo "<br/>";
echo $myStr;
?>
List Name - Number of Subscribers - Date and Time
List1 502 2015-04-23 23:23:50
include( '../lm_settings.php' );
<?php
ob_start();
include('http://MYDOMAIN.com/LMFOLDER/lm.php?cmd=lists&pwd='.$admin_password);
$myStr = ob_get_contents();
ob_end_clean();
echo 'List Name - Number of Subscribers - Date and Time';
echo "<br/>";
echo $myStr;
?>
is a tab delimited list of lists with one record per line. List name is in the first column and address count in the second column. I wrote a little function to extract data from delimited strings. It is called nthfield:List Name - Number of Subscribers - Date and Time
List1 502 2015-04-23 23:23:50
// Get the field number fieldnumber from $text for the given $delimiter
function nthfield($text, $delimiter, $fieldnumber) {
$data = explode($delimiter, $text);
return $data[$fieldnumber-1];
}
$count = nthfield( $myStr, "\t", 2 );