Re: [PHP] Using File to count number of lines

2005-08-04 Thread Sebastian
sorry, i forgot to put file(); Sebastian wrote: do this: $file = 'http://www.mysite.co.uk/mailing_list_database.list'; echo ''; print_r($file); echo ''; im pretty sure you'll only see 1 key.. if each has its own line, you would see something like: Array ( [0] => foo [1] => foo [2]

Re: [PHP] Using File to count number of lines

2005-08-04 Thread Sebastian
do this: $file = 'http://www.mysite.co.uk/mailing_list_database.list'; echo ''; print_r($file); echo ''; im pretty sure you'll only see 1 key.. if each has its own line, you would see something like: Array ( [0] => foo [1] => foo [2] => foo [3] => foo ) etc... Tom Chubb wrote:

RE: [PHP] Using File to count number of lines

2005-08-04 Thread Jay Blanchard
[snip] When I open the list in notepad everything is on one line with a square box character. When I open it in wordpad, it's one email address on each line. [/snip] Sounds like that there are not any newline characters in the file. You could do something like this... $theFile = fopen("http://www

Re: [PHP] Using File to count number of lines

2005-08-04 Thread Tom Chubb
When I open the list in notepad everything is on one line with a square box character. When I open it in wordpad, it's one email address on each line. On 04/08/05, Sebastian <[EMAIL PROTECTED]> wrote: > you sure each is on its own line (\n) ? > > if you're only getting a value of 1 it is likely

Re: [PHP] Using File to count number of lines

2005-08-04 Thread Sebastian
you sure each is on its own line (\n) ? if you're only getting a value of 1 it is likely putting everything on a single array key.. Tom Chubb wrote: I'm having a problem with the following code: $file = "http://www.mysite.co.uk/mailing_list_database.list";; $lines = count(file($file));

RE: [PHP] Using @file

2001-12-10 Thread Darren Gamble
AIL PROTECTED]] Sent: Monday, December 10, 2001 1:50 PM To: Darren Gamble; [EMAIL PROTECTED] Subject: Re: [PHP] Using @file Again, this works on some servers and othes not. Does IIS support this particular function? Jeff - Original Message - From: "Darren Gamble" <[EMAIL PR

Re: [PHP] Using @file

2001-12-10 Thread Jeff Lewis
iginal Message- > From: Jeff Lewis [mailto:[EMAIL PROTECTED]] > Sent: Monday, December 10, 2001 1:32 PM > To: Darren Gamble; [EMAIL PROTECTED] > Subject: Re: [PHP] Using @file > > > Sorry that was a typo, it is a period, I mistyped into the email. If it > cant resolve the nam

RE: [PHP] Using @file

2001-12-10 Thread Darren Gamble
Avenue SW Calgary, Alberta, Canada T2P 4L4 (403) 781-4948 -Original Message- From: Jeff Lewis [mailto:[EMAIL PROTECTED]] Sent: Monday, December 10, 2001 1:32 PM To: Darren Gamble; [EMAIL PROTECTED] Subject: Re: [PHP] Using @file Sorry that was a typo, it is a period, I mistyped into the

Re: [PHP] Using @file

2001-12-10 Thread Jeff Lewis
PROTECTED]> Sent: Monday, December 10, 2001 3:19 PM Subject: RE: [PHP] Using @file > Good day, > > The error means that it can not resolve the name. > > Replace the comma in the name with a period. > > > Darren Gamble > Planner, Region

RE: [PHP] Using @file

2001-12-10 Thread Darren Gamble
Good day, The error means that it can not resolve the name. Replace the comma in the name with a period. Darren Gamble Planner, Regional Services Shaw Cablesystems GP 630 - 3rd Avenue SW Calgary, Alberta, Canada T2P 4L4 (403) 781-4948 -Original Message- Fr