[EMAIL PROTECTED] Delete Blank Lines In A Text File

2005-12-27 Thread Christopher Deeley
Does anyone know how to use PHP to delete blank lines in a text file. I use a text file to store usernames and passwords but with adding and deleting users, blank lines appear which returns an undefined offset error when the 'verify user script' tries to read each line of the text file.   Thanks

Re: [EMAIL PROTECTED] HTTP AUTH

2005-12-27 Thread Christopher Deeley
Hi   Theres no way of passing info from a form to set the variables 'HTTP_AUTH_USER' ad HTTP_AUTH_USER but I have found a way around it but never put it into practice yet. You can still use your existing form to login and create a session variable as their user name eg $_SESSION['username'] = 'use

[EMAIL PROTECTED] Page Title

2005-12-26 Thread Christopher Deeley
If there a way to set the page title (ie the thing that appears in he browser window) using PHP? At the moment all my pages display the full path (ie http://www.mydomain.com/page.php) in the title bar. Is there any way using PHP to change this to display a title I want?   Thanks

[EMAIL PROTECTED] HTTP AUTH

2005-12-24 Thread Christopher Deeley
Can anyone tell me, is there a way of doing the following or any alternate solutions.   I would like to set up a user folder for each user on my site and the only method I know to stop anyone but the user accessing that folder is to use htaccess to require the valid user. I have PHP running as a m