Error Notice: Undefinedoffset: 1

Source: Internet
Author: User
Tags glob
Error Notice: Undefinedoffset: 1
 
 $ 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, 16, 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, 17, 8)> $ t) {$ mix_warehouse [] = $ mix_warehouse_fa;} $ sum_ware House = array (); foreach (glob ('Download/sum_warehouse_mix *. txt ') as $ sum_warehouse_fa) {if (substr ($ sum_warehouse_fa, 17, 8)> $ t) {$ sum_warehouse [] = $ sum_warehouse_fa ;}} // warehouse_mix_label=$ hk_warehouse_pdf = array (); foreach (glob ('Download/hk_warehouse_mix *. pdf ') as $ repository) {if (substr ($ hk_warehouse_assist_fn, 16, 8)> $ t) {$ hk_warehouse_pdf [] = $ hk_warehouse_assist_fn;} $ jp_warehouse _ Pdf = array (); foreach (glob ('Download/jp_warehouse_mix *. pdf ') as $ jp_warehouse_pai_fa) {if (substr ($ jp_warehouse_pai_fa, 16, 8)> $ t) {$ jp_warehouse_pdf [] = $ jp_warehouse_pai_fa ;}} $ mix_warehouse_pdf = array (); foreach (glob ('Download/mix_warehouse_mix *. pdf ') as $ mix_warehouse_pai_fa) {if (substr ($ mix_warehouse_pai_fa, 17, 8)> $ t) {$ mix_warehouse_pdf [] = $ mix_warehouse_pai_fa ;}} // pai_mix $ hk_pdf = array (); Foreach (glob ('Download/HK_print_Mix *. pdf ') as $ hk_pdf_fn) {if (substr ($ hk_pdf_fn, 12, 8)> $ t) {$ hk_pdf [] = $ hk_pdf_fn ;}} $ jp_pdf = array (); foreach (glob ('Download/JP_print_Mix *. pdf ') as $ jp_pai_fa) {if (substr ($ jp_pai_fa, 12, 8)> $ t) {$ jp_pdf [] = $ jp_pai_fa ;}} $ mix_pdf = array (); foreach (glob ('Download/Mix_print_Mix *. pdf ') as $ mix_pdf_fa) {if (substr ($ mix_pdf_fa, 13, 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, 16, 8) >$ t) {$ hk_pdf_a4 [] = $ hk_pdf_a4_fn ;}} $ jp_pdf_a4 = array (); foreach (glob ('Download/JP_print_Mix_A4 _*. pdf ') as $ jp_1__a4_fa) {if (substr ($ jp_1__a4_fa, 16, 8) >$ t) {$ jp_1__a4 [] = $ jp_1__a4_fa ;}} $ mix_pdf_a4 = array (); foreach (glob ('Download/Mix_print_Mix_A4 _*. pdf ') $ Mix_0000_a4_fa) {if (substr ($ mix_0000_a4_fa, 17, 8)> $ t) {$ mix_0000_a4 [] = $ mix_0000_a4_fa ;}// counts the number of files of each type, to cycle $ Tables = count ($ hk_warehouse); $ Tables = count ($ jp_warehouse); $ mix_warehouse_count = count ($ mix_warehouse); $ sum_warehouse_count = count ($ sum_warehouse ); $ hk_warehouse_pdf_count = count ($ hk_warehouse_pdf); $ jp_warehouse_count _count = count ($ jp_warehouse_pdf); $ mix_warehouse_pdf_count = co Unt ($ mix_warehouse_pdf); $ hk_pdf_count = count ($ hk_pdf); $ jp_pdf_count = count ($ jp_pdf); $ mix_pdf_count = count ($ mix_pdf ); $ hk_pdf_a4_count = count ($ hk_pdf_a4); $ jp_1__a4_count = count ($ jp_1__a4); $ mix_1__a4_count = count ($ mix_1__a4); $ c = max ($ hour, $ hour, $ mix_warehouse_count, $ sum_warehouse_count, $ hk_warehouse_wash_count, $ jp_warehouse_wash_count, $ mix_warehouse_count, $ hk_wash_count, $ jp _ count _ Pdf_count, $ mix_0000_count, $ hk_0000_a4_count, $ jp_0000_a4_count, $ mix_0000_a4_count); echo $ c; for ($ I = 1; $ I <$ c; $ I ++) {?>         ">
  ">
        ">
        ">
                                                                      
 


The following error is reported:
Notice: Undefined offset: 1 in/var/www/html/amazon/download_all.php on line 203

When is it wrong?


Reply to discussion (solution)

How do you know
$ Metrics, $ hk_1__count, $ jp_1__count, $ mix_1__count, $ hk_1__a4_count, $ jp_1__a4_count, $ mix_1__a4_count
Are all greater than 0?

Xuzuning is huge. now, I have a judgment.

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.