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

2005-08-04 Thread Al
Brandon Ryan wrote: Are you running this php code in windows, where a line break is made up of a carriage return and a line feed? The file was probably created on unix/linux where the line break is just a line feed. If you try to read this file in windows, it will think everything is on one li

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

2005-08-04 Thread Brandon Ryan
Are you running this php code in windows, where a line break is made up of a carriage return and a line feed? The file was probably created on unix/linux where the line break is just a line feed. If you try to read this file in windows, it will think everything is on one line. You either have t

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

2005-08-04 Thread Al
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)); echo "$lines "; ?> I'm trying to show the number of subscribers to my visitors from a text file, but it returns a value of 1 when it sh

[PHP] Re: Using @file

2001-12-18 Thread Chris Lee
haha, I bet it cant resolve, and I doubt it works on other machines :) www.myserver,com www.myserver.com see the diff? ditch the comma and put a period in insted :) trust me it happens to the best of us. -- Chris Lee [EMAIL PROTECTED] "Jeff Lewis" <[EMAIL PROTECTED]> wrote in message 01