function GoogleConcurrent($qry) { $chn = make_channel(); cofunc(function ($chn, $qry) { $chn->in(Web($qry)); }, $chn, $qry); cofunc(function ($chn, $qry) { $chn->in(Image($qry)); }, $chn, $qry); cofunc(function ($chn, $qry) { $chn->in(Video($qry)); }, $chn, $qry); $results = []; for ($i = 0; $i < 3; ++$i) { $results[] = $chn->out(); } $chn->close(); return $results; }
<tr> <td height="20" align="right" valign="top">上传数据:</td> <td height="20" valign="top"> <input name="address" type="file"> <br /><font color="red">(音频文件不能超过10M,视频文件不能超过300M)</font></td> </tr> <?php switch ($types) { case "Audio": Audio(); break; case "Video": Video(); break; default: Video(); break; } ?> <tr> <td height="30" colspan="2"><div align="center"> <input name="Submit" type="submit" value=" 添 加"> (*为必填项) <input name="Submit2" type="button" value="返 回 " onClick="javascript:top.window.close()"> </td> </tr> </form> </table></td> </tr> </table></td> </tr> </table></td>