Error notice:undefined offset: one

Source: Internet
Author: User
Tags glob
Error notice:undefined Offset:1


Include ("conn.php");

if (isset ($_post[' text '))
{
$text =$_post[' text '];
$t = Date (' Ymd ', Strtotime ("-$text Day"));

}
Else
{
$t = Date (' Ymd ', Strtotime ('-5 day '));

}

Warehouse_mix.txt
$HK _warehouse = Array ();
foreach (Glob (' Download/hk_warehouse_mix*.txt ') as $hk _warehouse_fn) {
if (substr ($HK _warehouse_fn, 8) > $t)
{
$HK _warehouse[] = $HK _warehouse_fn;
}
}
$JP _warehouse=array ();
foreach (Glob (' Download/jp_warehouse_mix*.txt ') as $jp _warehouse_fa) {
if (substr ($JP _warehouse_fa, 8) > $t)
{
$JP _warehouse[] = $JP _warehouse_fa;
}
}

$mix _warehouse=array ();
foreach (Glob (' Download/mix_warehouse_mix*.txt ') as $mix _warehouse_fa) {
if (substr ($mix _warehouse_fa, 8) > $t)
{
$mix _warehouse[] = $mix _warehouse_fa;
}
}

$sum _warehouse=array ();
foreach (Glob (' Download/sum_warehouse_mix*.txt ') as $sum _warehouse_fa) {
if (substr ($sum _warehouse_fa, 8) > $t)
{
$sum _warehouse[] = $sum _warehouse_fa;
}
}


Warehouse_mix_label.pdf

$HK _warehouse_pdf = Array ();
foreach (Glob (' download/hk_warehouse_mix*.pdf ') as $hk _warehouse_pdf_fn) {
if (substr ($HK _warehouse_pdf_fn, 8) > $t)
{
$HK _warehouse_pdf[] = $HK _warehouse_pdf_fn;
}
}
$JP _warehouse_pdf=array ();
foreach (Glob (' download/jp_warehouse_mix*.pdf ') as $jp _warehouse_pdf_fa) {
if (substr ($JP _warehouse_pdf_fa, 8) > $t)
{
$JP _warehouse_pdf[] = $JP _warehouse_pdf_fa;
}
}

$mix _warehouse_pdf=array ();
foreach (Glob (' download/mix_warehouse_mix*.pdf ') as $mix _warehouse_pdf_fa) {
if (substr ($mix _warehouse_pdf_fa, 8) > $t)
{
$mix _warehouse_pdf[] = $mix _warehouse_pdf_fa;
}
}

Pdf_mix


$HK _pdf = Array ();
foreach (Glob (' download/hk_print_mix*.pdf ') as $hk _pdf_fn) {
if (substr ($HK _pdf_fn, 8) > $t)
{
$HK _pdf[] = $HK _pdf_fn;
}
}
$JP _pdf=array ();
foreach (Glob (' download/jp_print_mix*.pdf ') as $jp _pdf_fa) {
if (substr ($JP _pdf_fa, 8) > $t)
{
$JP _pdf[] = $JP _pdf_fa;
}
}

$mix _pdf=array ();
foreach (Glob (' download/mix_print_mix*.pdf ') as $mix _pdf_fa) {
if (substr ($mix _pdf_fa, 8) > $t)
{
$mix _pdf[] = $mix _pdf_fa;
}
}

Pdf_mix_a4

$HK _pdf_a4 = Array ();
foreach (Glob (' download/hk_print_mix_a4_*.pdf ') as $hk _pdf_a4_fn) {
if (substr ($HK _pdf_a4_fn, 8) > $t)
{
$HK _pdf_a4[] = $HK _pdf_a4_fn;
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.