Re: [PHP] Someone Help please

2002-07-18 Thread Analysis & Solutions

On Thu, Jul 18, 2002 at 11:06:11AM -0400, Chris Crane wrote:
> Well, I posted it the first time and no one responded so I figured the
> subject did not interest anyone. I changed it. I am not sure how the third
> one started.

We're all here volunteering, trying to help each other out.  If you want
an instant response, hire someone.  Otherwise, you need to be patient.

Sure, if you don't get a reply in a few days, your request probably
slipped through the cracks, post again.  But, in this case, you're being
unreasonable:  First post was at 10:00.  Second at 11:58.  Third at 13:16.

Posting to the list multiple times makes the list less pleasant for the
people trying to help and those trying to learn.

--Dan

-- 
   PHP classes that make web design easier
SQL Solution  |   Layout Solution   |  Form Solution
sqlsolution.info  | layoutsolution.info |  formsolution.info
 T H E   A N A L Y S I S   A N D   S O L U T I O N S   C O M P A N Y
 4015 7 Av #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Someone Help please

2002-07-18 Thread Chris Crane

Well, I posted it the first time and no one responded so I figured the
subject did not interest anyone. I changed it. I am not sure how the third
one started.

But hey thanks for watching and giving you unwanted opinion.

"Analysis & Solutions" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Chris:
>
> Geez, this is your third thread on this today...  Lame.
>
> --Dan
>
> --
>PHP classes that make web design easier
> SQL Solution  |   Layout Solution   |  Form Solution
> sqlsolution.info  | layoutsolution.info |  formsolution.info
>  T H E   A N A L Y S I S   A N D   S O L U T I O N S   C O M P A N Y
>  4015 7 Av #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Someone Help please

2002-07-17 Thread David Robley

In article <[EMAIL PROTECTED]>, 
[EMAIL PROTECTED] says...
> Chris:
> 
> Geez, this is your third thread on this today...  Lame.
> 
> --Dan
> 
> 

There is none deafer than (s)he who won't listen :-)

-- 
David Robley
Temporary Kiwi!

Quod subigo farinam

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Someone Help please

2002-07-17 Thread Analysis & Solutions

Chris:

Geez, this is your third thread on this today...  Lame.

--Dan

-- 
   PHP classes that make web design easier
SQL Solution  |   Layout Solution   |  Form Solution
sqlsolution.info  | layoutsolution.info |  formsolution.info
 T H E   A N A L Y S I S   A N D   S O L U T I O N S   C O M P A N Y
 4015 7 Av #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Someone Help please

2002-07-17 Thread Chris Crane

I will try it now...Thank you.
"John Holmes" <[EMAIL PROTECTED]> wrote in message
000301c22dbe$b5caacf0$b402a8c0@mango">news:000301c22dbe$b5caacf0$b402a8c0@mango...
> File() will read the file into an array, each element of the array will
> be a line from the file. Explode() will then split that line by the
> delimiter you choose...
>
> So something like this:
>
> $file = file("filename.txt");
> foreach($file as $line)
> {
>   $part = explode(',',$line);
>   //now you have an array, $part[],
>   //that holds each element of the
>   //current line, do what you will
> }
>
> ---John Holmes...
>
> > -Original Message-
> > From: Chris Crane [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, July 17, 2002 1:17 PM
> > To: [EMAIL PROTECTED]
> > Subject: [PHP] Someone Help please
> >
> > I am getting data froma website for stock information. If I type in
> the
> > brower the URL I get a text file display list this;
> >
> > Date,Open,High,Low,Close,Volume
> > 16-Jul-02,7.92,8.10,7.68,7.82,605500
> > 15-Jul-02,7.98,8.02,7.59,8.02,577200
> > 12-Jul-02,7.80,8.00,7.57,7.95,411100
> > 11-Jul-02,7.82,7.94,7.34,7.80,802400
> >
> > Now I want to break each line and then seperate each line by the
> commas.
> > The
> > amount of linesin the file is never known so I assume I have to use
> > something like a foreach or while statement,but I am not sure the best
> way
> > to do it. This is what I have so far.
> >
> >  $Symbol = "IKN"; $LookupUrl =
> > "http://demos.inxdesign.com/download?sym=$Symbol&format=.txt";;
> $Results =
> > implode('', file("$LookupUrl"));
> >  $Data = array(); split("\n", $Results) = array_push($Data, $line)
> >
> > The end result I am trying to get is each line to be an element in an
> > array.
> > Later I will go back and stepthrough each element of the array and
> then
> > split that by the commas and have it output into an HTML table.At
> least
> > this
> > is the best way I can think to deal with it. I suppose a better way to
> do
> > this would be to make this an associative array and have the data of
> each
> > line be associated with the date then I could producea variable
> something
> > like $StockData[16-Jul-02][value], but I don't know how to do any of
> that.
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Someone Help please

2002-07-17 Thread John Holmes

File() will read the file into an array, each element of the array will
be a line from the file. Explode() will then split that line by the
delimiter you choose...

So something like this:

$file = file("filename.txt");
foreach($file as $line)
{
  $part = explode(',',$line);
  //now you have an array, $part[], 
  //that holds each element of the 
  //current line, do what you will
}

---John Holmes...

> -Original Message-
> From: Chris Crane [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, July 17, 2002 1:17 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Someone Help please
> 
> I am getting data froma website for stock information. If I type in
the
> brower the URL I get a text file display list this;
> 
> Date,Open,High,Low,Close,Volume
> 16-Jul-02,7.92,8.10,7.68,7.82,605500
> 15-Jul-02,7.98,8.02,7.59,8.02,577200
> 12-Jul-02,7.80,8.00,7.57,7.95,411100
> 11-Jul-02,7.82,7.94,7.34,7.80,802400
> 
> Now I want to break each line and then seperate each line by the
commas.
> The
> amount of linesin the file is never known so I assume I have to use
> something like a foreach or while statement,but I am not sure the best
way
> to do it. This is what I have so far.
> 
>  $Symbol = "IKN"; $LookupUrl =
> "http://demos.inxdesign.com/download?sym=$Symbol&format=.txt";;
$Results =
> implode('', file("$LookupUrl"));
>  $Data = array(); split("\n", $Results) = array_push($Data, $line)
> 
> The end result I am trying to get is each line to be an element in an
> array.
> Later I will go back and stepthrough each element of the array and
then
> split that by the commas and have it output into an HTML table.At
least
> this
> is the best way I can think to deal with it. I suppose a better way to
do
> this would be to make this an associative array and have the data of
each
> line be associated with the date then I could producea variable
something
> like $StockData[16-Jul-02][value], but I don't know how to do any of
that.
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php