On Thu, Jul 18, 2002 at 11:35:55AM -0400, Chris Crane wrote:
> Hey thank Dan, I will try this.
> Does List waste lots of time and memory?
It does if you don't need to do it.
Just put the data you really need into memory. Forget about the rest.
If you already have something in memory, don't dup
ok here is what I came up with:
How's this?
function HistoricalStock($sym) {
$row = 1;
$Data =
fopen("http://table.finance.yahoo.com/table.csv?a=7&b=1&c=2002&d=7&e=17&f=20
02&s=$sym&y=0&g=d&ignore=.csv","r");
print '';
while ($Line = fgetcsv ($Data, 1000, ",")) {
if($row == 1) {
echo " $
Hey thank Dan, I will try this.
Does List waste lots of time and memory?
Normally, I create a function and global a bunch of variables to be used
later on the HTML/PHP file. After I global the variables I split the string
using the List function. I do that for stock quotes from YAHOO so I can cod
On Thu, Jul 18, 2002 at 10:14:25AM -0400, Chris Crane wrote:
> Warning: Undefined offset: 5 in
Means your array doesn't have that key in it. I bet you're running into
blank lines in your file.
> $Results = implode('', file("$LookupURL"));
> $Data = explode("\n", $Results);
Uh, you do realiz
I am trying some code and it works except I get the following errors...
Warning: Undefined offset: 5 in
c:\www\htdocs\demos\havasuinternet\havasuinternet-lib.php on line 247
Warning: Undefined offset: 4 in
c:\www\htdocs\demos\havasuinternet\havasuinternet-lib.php on line 247
Warning: Undefined off
5 matches
Mail list logo