Error syntaxerror, unexpected $ end. why?
download
|
warehouse_mix |
warehouse_mix_label_pdf |
mix_pdf_address_label |
mix_pdf_address_label_A4 |
|
|
|
|
|
|
|
|
|
$t){ $hk_label[] = $hk_label_fn; }} } else { $t = date('Ymd', strtotime('-5 day'));$hk_label = array();foreach(glob('download/*_Warehouse_mix*.txt') as $hk_label_fn) { if(substr($hk_label_fn, 8, 8)>$t){ $hk_label[] = $hk_label_fn; { $hk_label[] = $hk_label_fn; }} }$jp_warehouse_count=count($jp_warehouse);$c=max($jp_label_count,$hk_label_count,$hk_warehouse_count,$jp_warehouse_count);for($i=0;$i<$c;$i++){ ?>
"> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
What is the cause of the error ???
Parse error: syntax error, unexpected $ end in E: \ APMServ5.2.6 \ www \ htdocs \ amazon \ download_all.php on line 133
Reply to discussion (solution)
It seems that the matching brackets are wrong. I looked at it and couldn't find it.
The cause of the error is that one is missing}
Just add
Foreach (glob ('Download/* _ Warehouse_mix *. txt ') as $ hk_label_fn ){
If (substr ($ hk_label_fn, 8, 8)> $ t) {$ hk_label [] = $ hk_label_fn;
{
$ Hk_label [] = $ hk_label_fn;
}
}