RE: [PHP] print html code
Hi, > I would bet that it would be easier to come up with a browser that > supports 100% of the HTML standard (which is IMHO the minimum the > browser HAS to support) than it would be to come up with a browser that > supports 100% of the nonstandard. :) > > As the old saying goes two wrongs don't make a right. There's no such thing. Its SQL servers, some support the full language, some don't. -Dan Joseph -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] print html code
On Wed, 2 Jul 2003 14:23:23 -0700, Jim Lucas wrote: >well, tell me. What browser follows the standards 100% ?? I would bet that it would be easier to come up with a browser that supports 100% of the HTML standard (which is IMHO the minimum the browser HAS to support) than it would be to come up with a browser that supports 100% of the nonstandard. :) As the old saying goes two wrongs don't make a right. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] print html code
Jim Lucas wrote: well, tell me. What browser follows the standards 100% ?? Yeah...that's the attitude...if none of the existing browsers follow standards, then it must be okay for us to break them too. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] print html code
Jim Lucas wrote: well, tell me. What browser follows the standards 100% ?? Most likely none. That doesn't mean you should violate the standards for absolutley no reason, though! Future browsers will most likely drop . -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] print html code
On Jul 2, 2003, "Jim Lucas" claimed that: |well, tell me. What browser follows the standards 100% ?? The same one that is 100% bug free? -- Registered Linux user #304026. "lynx -source http://jharris.rallycentral.us/jharris.asc | gpg --import" Key fingerprint = 52FC 20BD 025A 8C13 5FC6 68C6 9CF9 46C2 B089 0FED Responses to this message should conform to RFC 1855. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] print html code
well, tell me. What browser follows the standards 100% ?? - Original Message - From: "Leif K-Brooks" <[EMAIL PROTECTED]> To: "Jim Lucas" <[EMAIL PROTECTED]> Cc: "Wendell Brown" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; "Karina S" <[EMAIL PROTECTED]> Sent: Wednesday, July 02, 2003 12:57 PM Subject: Re: [PHP] print html code > In browsers that refuse to follow standards, maybe. Breaking standards > is a bad thing. > Jim Lucas wrote: > > >So what, it would do what was requested. :) > > > > -- > The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law. > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] print html code
On Jul 2, 2003, "Karina S" claimed that: |Hello, | |I want to make a php site which can generate a html code and display it on |the screen. (Display the code itself.) |I use htmlspecialchars() function. It works fine, but now I have to add |about 200 lines of static html code to print it out. If I put all of the |code in a string than it will appear in a single line. (Maybe it works, but |not nice) | |How can I easy print out more lines of html code with php? | |Thanks! | Make sure you're putting \n in the string, then print nl2br(htmlspecialchars($string)); Use php's wordwrap() or find another word_wrap function then print wordwrap(htmlspecialchars($string)); -- Registered Linux user #304026. "lynx -source http://jharris.rallycentral.us/jharris.asc | gpg --import" Key fingerprint = 52FC 20BD 025A 8C13 5FC6 68C6 9CF9 46C2 B089 0FED Responses to this message should conform to RFC 1855. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] print html code
In browsers that refuse to follow standards, maybe. Breaking standards is a bad thing. Jim Lucas wrote: So what, it would do what was requested. :) -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] print html code
So what, it would do what was requested. :) Jim Lucas - Original Message - From: "Leif K-Brooks" <[EMAIL PROTECTED]> To: "Jim Lucas" <[EMAIL PROTECTED]> Cc: "Wendell Brown" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; "Karina S" <[EMAIL PROTECTED]> Sent: Wednesday, July 02, 2003 12:30 PM Subject: Re: [PHP] print html code > Jim Lucas wrote: > > >You could always use at the top of the screen. > > > And violate every single HTML standard. AFAIK, was never a > real tag. > > -- > The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law. > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] print html code
Jim Lucas wrote: You could always use at the top of the screen. And violate every single HTML standard. AFAIK, was never a real tag. -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] print html code
You could always use at the top of the screen. Jim Lucas - Original Message - From: "Wendell Brown" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; "Karina S" <[EMAIL PROTECTED]> Sent: Wednesday, July 02, 2003 11:27 AM Subject: Re: [PHP] print html code > On Wed, 2 Jul 2003 19:40:37 +0200, Karina S wrote: > > >I want to make a php site which can generate a html code and display it on > >the screen. (Display the code itself.) > > See if this will do what you want: > > > http://us2.php.net/manual/en/function.highlight-string.php > > or > > > http://us2.php.net/manual/en/function.highlight-file.php > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] print html code
On Wed, 2 Jul 2003 19:40:37 +0200, Karina S wrote: >I want to make a php site which can generate a html code and display it on >the screen. (Display the code itself.) See if this will do what you want: > http://us2.php.net/manual/en/function.highlight-string.php or > http://us2.php.net/manual/en/function.highlight-file.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] print html code
Karina S wrote: Hello, I want to make a php site which can generate a html code and display it on the screen. (Display the code itself.) I use htmlspecialchars() function. It works fine, but now I have to add about 200 lines of static html code to print it out. If I put all of the code in a string than it will appear in a single line. (Maybe it works, but not nice) How can I easy print out more lines of html code with php? This has nothing to do with PHP, but try putting and tags around the HTML. -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] print html code
Hello, I want to make a php site which can generate a html code and display it on the screen. (Display the code itself.) I use htmlspecialchars() function. It works fine, but now I have to add about 200 lines of static html code to print it out. If I put all of the code in a string than it will appear in a single line. (Maybe it works, but not nice) How can I easy print out more lines of html code with php? Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php