Re: Logins, Users, Passwords, & HTML

From: Date: Thu, 01 Jan 1970 00:00:00 +0000
Subject: Re: Logins, Users, Passwords, & HTML
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-10722@lists.php.net to get a copy of this message
> 1) I have text files which I read into a php page and they create the > html nicely .... example would be a link or lists of links which I would > place inside a cell on a table > > $line = "<CENTER><A HREF="www.somewhere.com>Click Here to go > Somewhere</A></CENTER>" > print("$line \n"); > > How do I get this to display the actual text and not convert it into HTML > that works ... What I am trying to do is display the contents of a file > which is in fact html code, without the html doing it's thing. echo htmlspecialchars($line); See: http://www.php.net/manual/function.htmlspecialchars.php3 I'll pass on the second question. Like you said, there are a million ways to do this. I personally prefer to use an SQL-backed HTTP auth scheme. This also gives you built-in session support since the auth data is available throughout the user's session. See: http://www.php.net/manual/features.http-auth.php3 -Rasmus

« previous php.dev (#10722) next »