> How can I get the file() function to ignore the first three lines of a
> file it is reading in?
> 
> I have a site with:
> 
> <?PHP
>         require("membercheck.php");
> ?>
> ... rest of file
> 
> 
> 
> at the top of all the pages to control user logins. The problem is the
> file() function only reads in the contents of that file, not the rest
of
> the contents after the require statement.
> 
> Is there a way to tell file() to ignore the first three lines?

I don't understand what you're asking... it's not making sense. The
file() function takes the path to a file and reads it into an array,
each element of the array being a line in the file. It could care less
if the first three lines were PHP code. It simply reads text and does
not evaluate anything (unless you are opening the file with a HTTP
connection, i.e. file('http://www...'))

Can you show your exact code and what the output is?

---John W. Holmes...

PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/



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

Reply via email to