⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 run_cron.php

📁 股票监视器是一个简单的实用工具
💻 PHP
字号:
<?php/** PHP STOCK TRACKER* -----------------* A multi-user utility for creating and managing stock* watchlists and historical analysis.* Copyright (C) 2005 Joshua Eldridge (joshuae74@hotmail.com)*** This program is free software; you can redistribute it and/or modify* it under the terms of the GNU General Public License as published by* the Free Software Foundation; either version 2 of the License, or* (at your option) any later version.** This program is distributed in the hope that it will be useful,* but WITHOUT ANY WARRANTY; without even the implied warranty of* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the* GNU General Public License for more details.** You should have received a copy of the GNU General Public License* along with this program; if not, write to the Free Software* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA** See the COPYING file for full details.*/require_once('../INCLUDES.inc.php');$conn = getConn();$stocks = get_stocks_list();$symbols_array = getSingleArray($stocks, 'stock_symbol');$data = get_batch_yahoo($symbols_array);$date = date("Y-n-j");foreach ( $data as $i ) {	$quote = new Quote( $i[0] );	$quote->last_trade = $i[1];	$quote->trade_date = $date;	$quote->pct_change = $i[4];	$quote->opened = $i[5];	$quote->low = $i[7];	$quote->high = $i[6];	$quote->volume = $i[8];	$quote->save_data();}$conn->Close();?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -