Re: [PHP] 【N級、 S級、AAA級 財布、バッグ!】【ブランド館】
On 2011年06月21日 11:21, ◆送料無料◆ブランド激安市場 wrote: 【N級、 S級、AAA級 財布、バッグ!】【ブランド館】 日本最大級コピーブランド激安市場 ☆*.http://www.special-price.biz/ ☆*. ■主要取扱商品: バッグ、財布、腕時計、ベルト、ライタ! ≡≡≡ 海外ブランド品安心ショッピング バッグや財布等がお買得! 【新作入荷】●●●【超人気質屋】◆最新作 ヴィトン 財布新品、新素材入荷 ① ★GUCCI 2011年新作バッグ大量入荷超人気 ★ http://www.special-price.biz/ ② ★LOUIS VUITTON 2011年新作バッグ大量入荷超人気 ★ http://www.special-price.biz/ ③ ★LOUIS VUITTON 2011年新作財布大量入荷 !!! http://www.special-price.biz/ 【News】★ROLEX -ロレックスN級最高等級時計大量入荷超人気 ★ http://www.special-price.biz/ ■宜しくお願い申し上げます。 ≡≡≡ ◆誠実な接待、長い間取引する友達(^o^) ■URL:http://www.special-price.biz/ ■店長:『ブランド激安市場』 土田健一 ≡◆送料無料◆ Advertisement?! -- Best regards, Sharl.Jimh.Tsin (From China *Obviously Taiwan INCLUDED*) Using Gmail? Please read this important notice: http://www.fsf.org/campaigns/jstrap/gmail?10073.
RE: [PHP] 【N級、 S級、AAA級 財布、バッグ!】【ブランド館】
I see that it is actually from rjck...@gmail.com I am not bilingual in Japanese but this is what I can make out it is an Advertisement. (A/the N class, S class, AAA class purse, bag! ) (A/the brand mansion) Japanese highest level copy brand 激 cheap market ☆*. http://www.special-price.biz/ ☆*. Main operation merchandise: a/the bag, purse, wrist watch, belt, writer! A foreign country brand-name goods safe shopping bag and purse etc. be a/the good buy! (New work arrival) ● ● ● (an ultra popular pawnshop) Most new work Vitton purse new article, new material arrival ① ★ GUCCI in 2011 new work bag voluminous arrival ultra popular ★ ② ★ LOUIS VUITTON in 2011 new work bag voluminous arrival ultra popular ★ 3 ★ Louis 2011 Vuitton new large fiscal the Dutch! ! ! (News) ★ ROLEX-ロレックス N class highest grade clock voluminous arrival ultra popular ★ Manager: 'a brand 激 cheap market' Tsuchida Kenichi I request it very much. Friend who deals, for long sincere reception (^o^) ≡ ≡ ≡ ≡ ≡ ≡ ≡ ≡ ≡ ≡ ≡ ≡ ≡ The carriage free ≡ ≡ ≡ ≡ ≡ ≡ ≡ ≡ ≡ ≡ ≡ ≡ ≡ ≡ ≡ ≡ Richard L. Buskirk -Original Message- From: Sharl.Jimh.Tsin [mailto:amoiz.sh...@gmail.com] Sent: Monday, June 20, 2011 11:28 PM To: php-general@lists.php.net Subject: Re: [PHP] 【N級、 S級、AAA級 財布、バッグ!】【ブランド館】 ・EURー葦・ぢ年06月21日 11:21, ◆送料無料◆ブランド激安市場 wrote: 【N級、 S級、AAA級 財布、バッグ!】【ブランド館】 日本最大級コピーブランド激安市場 ☆*.http://www.special-price.biz/ ☆*. ■主要取扱商品: バッグ、財布、腕時計、ベルト、ライタ! ≡≡≡ 海外ブランド品安心ショッピング バッグや財布等がお買得! 【新作入荷】●●●【超人気質屋】◆最新作 ヴィトン 財布新品、新素材入荷 ① ★GUCCI 2011年新作バッグ大量入荷超人気 ★ http://www.special-price.biz/ ② ★LOUIS VUITTON 2011年新作バッグ大量入荷超人気 ★ http://www.special-price.biz/ ③ ★LOUIS VUITTON 2011年新作財布大量入荷 !!! http://www.special-price.biz/ 【News】★ROLEX -ロレックスN級最高等級時計大量入荷超人気 ★ http://www.special-price.biz/ ■宜しくお願い申し上げます。 ≡≡≡ ◆誠実な接待、長い間取引する友達(^o^) ■URL:http://www.special-price.biz/ ■店長:『ブランド激安市場』 土田健一 ≡◆送料無料◆ Advertisement?! -- Best regards, Sharl.Jimh.Tsin (From China *Obviously Taiwan INCLUDED*) Using Gmail? Please read this important notice: http://www.fsf.org/campaigns/jstrap/gmail?10073. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] 【N級、 S級、AAA級 財布、バッグ!】【ブランド館】
ban it :) 2011/6/21 ad...@buskirkgraphics.com I see that it is actually from rjck...@gmail.com I am not bilingual in Japanese but this is what I can make out it is an Advertisement. (A/the N class, S class, AAA class purse, bag! ) (A/the brand mansion) Japanese highest level copy brand 激 cheap market ☆*. http://www.special-price.biz/ ☆*. Main operation merchandise: a/the bag, purse, wrist watch, belt, writer! A foreign country brand-name goods safe shopping bag and purse etc. be a/the good buy! (New work arrival) ● ● ● (an ultra popular pawnshop) Most new work Vitton purse new article, new material arrival ① ★ GUCCI in 2011 new work bag voluminous arrival ultra popular ★ ② ★ LOUIS VUITTON in 2011 new work bag voluminous arrival ultra popular ★ 3 ★ Louis 2011 Vuitton new large fiscal the Dutch! ! ! (News) ★ ROLEX-ロレックス N class highest grade clock voluminous arrival ultra popular ★ Manager: 'a brand 激 cheap market' Tsuchida Kenichi I request it very much. Friend who deals, for long sincere reception (^o^) ≡ ≡ ≡ ≡ ≡ ≡ ≡ ≡ ≡ ≡ ≡ ≡ ≡ The carriage free ≡ ≡ ≡ ≡ ≡ ≡ ≡ ≡ ≡ ≡ ≡ ≡ ≡ ≡ ≡ ≡ Richard L. Buskirk -Original Message- From: Sharl.Jimh.Tsin [mailto:amoiz.sh...@gmail.com] Sent: Monday, June 20, 2011 11:28 PM To: php-general@lists.php.net Subject: Re: [PHP] 【N級、 S級、AAA級 財布、バッグ!】【ブランド館】 ・EURー葦・ぢ年06月21日 11:21, ◆送料無料◆ブランド激安市場 wrote: 【N級、 S級、AAA級 財布、バッグ!】【ブランド館】 日本最大級コピーブランド激安市場 ☆*.http://www.special-price.biz/ ☆*. ■主要取扱商品: バッグ、財布、腕時計、ベルト、ライタ! ≡≡≡ 海外ブランド品安心ショッピング バッグや財布等がお買得! 【新作入荷】●●●【超人気質屋】◆最新作 ヴィトン 財布新品、新素材入荷 ① ★GUCCI 2011年新作バッグ大量入荷超人気 ★ http://www.special-price.biz/ ② ★LOUIS VUITTON 2011年新作バッグ大量入荷超人気 ★ http://www.special-price.biz/ ③ ★LOUIS VUITTON 2011年新作財布大量入荷 !!! http://www.special-price.biz/ 【News】★ROLEX -ロレックスN級最高等級時計大量入荷超人気 ★ http://www.special-price.biz/ ■宜しくお願い申し上げます。 ≡≡≡ ◆誠実な接待、長い間取引する友達(^o^) ■URL:http://www.special-price.biz/ ■店長:『ブランド激安市場』 土田健一 ≡◆送料無料◆ Advertisement?! -- Best regards, Sharl.Jimh.Tsin (From China *Obviously Taiwan INCLUDED*) Using Gmail? Please read this important notice: http://www.fsf.org/campaigns/jstrap/gmail?10073. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] 【N級、 S級、AAA級 財布、バッグ!】【ブランド館】
interesting ... 2011/6/21 Fatih P. fatihpirist...@gmail.com: ban it :) 2011/6/21 ad...@buskirkgraphics.com I see that it is actually from rjck...@gmail.com I am not bilingual in Japanese but this is what I can make out it is an Advertisement. (A/the N class, S class, AAA class purse, bag! ) (A/the brand mansion) Japanese highest level copy brand 激 cheap market ☆*. http://www.special-price.biz/ ☆*. Main operation merchandise: a/the bag, purse, wrist watch, belt, writer! A foreign country brand-name goods safe shopping bag and purse etc. be a/the good buy! (New work arrival) ● ● ● (an ultra popular pawnshop) Most new work Vitton purse new article, new material arrival ① ★ GUCCI in 2011 new work bag voluminous arrival ultra popular ★ ② ★ LOUIS VUITTON in 2011 new work bag voluminous arrival ultra popular ★ 3 ★ Louis 2011 Vuitton new large fiscal the Dutch! ! ! (News) ★ ROLEX-ロレックス N class highest grade clock voluminous arrival ultra popular ★ Manager: 'a brand 激 cheap market' Tsuchida Kenichi I request it very much. Friend who deals, for long sincere reception (^o^) ≡ ≡ ≡ ≡ ≡ ≡ ≡ ≡ ≡ ≡ ≡ ≡ ≡ The carriage free ≡ ≡ ≡ ≡ ≡ ≡ ≡ ≡ ≡ ≡ ≡ ≡ ≡ ≡ ≡ ≡ Richard L. Buskirk -Original Message- From: Sharl.Jimh.Tsin [mailto:amoiz.sh...@gmail.com] Sent: Monday, June 20, 2011 11:28 PM To: php-general@lists.php.net Subject: Re: [PHP] 【N級、 S級、AAA級 財布、バッグ!】【ブランド館】 ・EURー葦・ぢ年06月21日 11:21, ◆送料無料◆ブランド激安市場 wrote: 【N級、 S級、AAA級 財布、バッグ!】【ブランド館】 日本最大級コピーブランド激安市場 ☆*.http://www.special-price.biz/ ☆*. ■主要取扱商品: バッグ、財布、腕時計、ベルト、ライタ! ≡≡≡ 海外ブランド品安心ショッピング バッグや財布等がお買得! 【新作入荷】●●●【超人気質屋】◆最新作 ヴィトン 財布新品、新素材入荷 ① ★GUCCI 2011年新作バッグ大量入荷超人気 ★ http://www.special-price.biz/ ② ★LOUIS VUITTON 2011年新作バッグ大量入荷超人気 ★ http://www.special-price.biz/ ③ ★LOUIS VUITTON 2011年新作財布大量入荷 !!! http://www.special-price.biz/ 【News】★ROLEX -ロレックスN級最高等級時計大量入荷超人気 ★ http://www.special-price.biz/ ■宜しくお願い申し上げます。 ≡≡≡ ◆誠実な接待、長い間取引する友達(^o^) ■URL:http://www.special-price.biz/ ■店長:『ブランド激安市場』 土田健一 ≡◆送料無料◆ Advertisement?! -- Best regards, Sharl.Jimh.Tsin (From China *Obviously Taiwan INCLUDED*) Using Gmail? Please read this important notice: http://www.fsf.org/campaigns/jstrap/gmail?10073. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] \n problems when creating an email
If the recipient is gmail, then you need to use \r\n because Gmail is following in the Windows way of ignoring standards... :-( On Mon, February 11, 2008 6:10 am, Angelo Zanetti wrote: Hi guys, I am making email text based on some fields the user fills in and then email the admin the details. I am having a problem where sometimes the \n (new line) works and sometimes it just does nothing. Im not sure the cause but I cant seem to figure it out. Here is a segment of code: .\nHow far would they be prepared to travel to .\n event venue? \n\t\t\t\t\t. $travel .\nDo you have a specific location . \n of preference? \n\t\t\t\t\t. $locationPref .\n City or country preference:\t. $cityPref Here is the output: How far would they be prepared to travel to event venue? Z Logic e Business Cape Do you have a specific location of preference? Z Logic e Business Cape City or country preference: Z Logic e Business Cape As you can see the first line doesn't go to the next row before event But it works fine for the location \n preference Is there any reason it works for the 1 piece of code and not the next? Do spaces affect anything? Kind regards, Angelo Zanetti Application Developer Telephone: +27 (021) 552 9799 Mobile: +27 (0) 72 441 3355 Fax:+27 (0) 86 681 5885 Web: http://www.elemental.co.za E-Mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Some people have a gift link here. Know what I want? I want you to buy a CD from some indie artist. http://cdbaby.com/from/lynch Yeah, I get a buck. So? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] \n problems when creating an email
I've found it to be a lost cause to add pure white space in tabs during emails. Most clients are helpful in making things user friendly by removing leading white space. What i found did work on most machines at the time was either just a newline or a Q: question\nA: answer\n which isn't as formatted, but does the readabilty job. Wolf -Original Message- From: Angelo Zanetti [EMAIL PROTECTED] Sent: Monday, February 11, 2008 7:23 AM To: 'Stut' [EMAIL PROTECTED] Cc: php-general@lists.php.net Subject: RE: [PHP] \n problems when creating an email Looks like you're using Outlook. It has an annoying feature where it helpfully removes extra line breaks. This would appear to be what's happening here. When it does this it usually displays a notice somewhere to say it's done this and offers a way to undo it. Thanks, dam I been wasting my time trying to figure out the solution... However I see that with the tabbed (\t) formatting its very inconsistent in many email and web clients... Do you have a solution to ensure that the output is consistent always? Please send some links or any advice, TIA -- 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] \n problems when creating an email
exactly as stut said, try using double /n's or convert the email to html. whilst testing always view email source to verify what your creating. Nath Stut wrote: Angelo Zanetti wrote: I am making email text based on some fields the user fills in and then email the admin the details. I am having a problem where sometimes the \n (new line) works and sometimes it just does nothing. Im not sure the cause but I cant seem to figure it out. Looks like you're using Outlook. It has an annoying feature where it helpfully removes extra line breaks. This would appear to be what's happening here. When it does this it usually displays a notice somewhere to say it's done this and offers a way to undo it. -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] \n problems when creating an email
Angelo Zanetti wrote: I am making email text based on some fields the user fills in and then email the admin the details. I am having a problem where sometimes the \n (new line) works and sometimes it just does nothing. Im not sure the cause but I cant seem to figure it out. Looks like you're using Outlook. It has an annoying feature where it helpfully removes extra line breaks. This would appear to be what's happening here. When it does this it usually displays a notice somewhere to say it's done this and offers a way to undo it. -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] \n problems when creating an email
On Feb 11, 2008 7:10 AM, Angelo Zanetti [EMAIL PROTECTED] wrote: Hi guys, I am making email text based on some fields the user fills in and then email the admin the details. I am having a problem where sometimes the \n (new line) works and sometimes it just does nothing. Im not sure the cause but I cant seem to figure it out. Try using HEREDOC syntax instead: $message =EOM How far would they be prepared to travel to event venue? $travel Do you have a specific location of preference? $locationPref City or country preference:$cityPref EOM; It may not prevent the client from reformatting the message on delivery, as Stut, Nathan, and Wolf already correctly mentioned, but placing it in a HEREDOC will improve readability, send an exact structure without need for interpretation (of newlines-vs-carriage-return-newlines and number of spaces per tab), and allow you to freely use quotes without having to remember to escape them (or escape to insert a variable). -- /Dan Daniel P. Brown Senior Unix Geek ? while(1) { $me = $mind--; sleep(86400); } ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] \n problems when creating an email
Looks like you're using Outlook. It has an annoying feature where it helpfully removes extra line breaks. This would appear to be what's happening here. When it does this it usually displays a notice somewhere to say it's done this and offers a way to undo it. Thanks, dam I been wasting my time trying to figure out the solution... However I see that with the tabbed (\t) formatting its very inconsistent in many email and web clients... Do you have a solution to ensure that the output is consistent always? Please send some links or any advice, TIA -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] N/A
R. Ragunathan wrote: can we implement lock to a table using postgres with php. if any of u all knows the solution do reply back. You may also want to look at the following URL: http://www.postgresql.org/docs/8.0/interactive/explicit-locking.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] N/A
R. Ragunathan wrote: hi, can we implement lock to a table using postgres with php. if any of u all knows the solution do reply back. http://www.catb.org/~esr/faqs/smart-questions.html Pay close attention to the sections dealing with Before you ask, and Use meaningful, specific subject headers -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] N/A
As Ireland's property developers scramble to snap up every last square metre of prime Dublin real estate, a green oasis in the heart of this booming capital is standing firm against the tide of change. All this may seem highly irrelevent, but when you have a N/A subject, then anything is in. Consider yourself lucky, that Jay, and Jasper, gave your question enough seriousness to direct you to the manual. Personally I would have simply directed you to ESR's essay on Smart Questions(available from John Nichels response) On 8/9/05, R. Ragunathan [EMAIL PROTECTED] wrote: hi, can we implement postgres transactions with php. if anyone knows the solution please reply back. -- 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] N/A
Rory Browne wrote: As Ireland's property developers scramble to snap up every last square metre of prime Dublin real estate, a green oasis in the heart of this booming capital is standing firm against the tide of change. fantastic Rory! lol All this may seem highly irrelevent, but when you have a N/A subject, then anything is in. Consider yourself lucky, that Jay, and Jasper, gave your question enough seriousness to direct you to the manual. Personally I would have simply directed you to ESR's essay on Smart Questions(available from John Nichels response) On 8/9/05, R. Ragunathan [EMAIL PROTECTED] wrote: hi, can we implement postgres transactions with php. if anyone knows the solution please reply back. -- 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] N/A
[snip] can we implement postgres transactions with php. if anyone knows the solution please reply back. [/snip] Have you read http://www.php.net/postgres ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] N/A
R. Ragunathan wrote: can we implement lock to a table using postgres with php. if any of u all knows the solution do reply back. Please, for the second time, simply read the manual. http://www.php.net/pgsql It explains both the issues you have recently posted about very well. If you have a specific question then post back to the list. Oh, and a descriptive subject rather than N/A may help if you want people to read your message. Jasper -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] \n doesnt work in error_log and windows?
[snip] i have this sort of a log string: error_log(\n.$date.:.$_SESSION['username'].:Logged in:normal login\n, 3, $LogPath.admin.log); problem is when it writes the entry in a file the first one shows up fine but when you get 2 or more in it then it either strings the lines together (the second entry will start on the same line as the one before it) so i added the \n at the front of it to force the next one to the next line... this works but now there is a blank space before each entry and its annoying... how to fix?? [/snip] Since this is Windows try \r\n at the EOL -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] \n doesnt work in error_log and windows?
everything works now tnx - Original Message - From: Jay Blanchard [EMAIL PROTECTED] To: Andy B [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, April 09, 2004 10:45 AM Subject: RE: [PHP] \n doesnt work in error_log and windows? [snip] i have this sort of a log string: error_log(\n.$date.:.$_SESSION['username'].:Logged in:normal login\n, 3, $LogPath.admin.log); problem is when it writes the entry in a file the first one shows up fine but when you get 2 or more in it then it either strings the lines together (the second entry will start on the same line as the one before it) so i added the \n at the front of it to force the next one to the next line... this works but now there is a blank space before each entry and its annoying... how to fix?? [/snip] Since this is Windows try \r\n at the EOL -- 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] \n is not working!
On Sun, 2004-04-04 at 17:58, Labunski wrote: \n isn't working properly. Why do this line $new_topic = $post_0.'|'.$post_1.'|'.'$post_2\n'; writes to the document one|two|three\n but not one|two|three (and break) Because it's in single quotes versus a double quotes. Cheers, Rob. -- .. | InterJinn Application Framework - http://www.interjinn.com | :: | An application and templating framework for PHP. Boasting | | a powerful, scalable system for accessing system services | | such as forms, properties, sessions, and caches. InterJinn | | also provides an extremely flexible architecture for | | creating re-usable components quickly and easily. | `' -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] \n is not working!
--- Labunski [EMAIL PROTECTED] wrote: Why do this line $new_topic = $post_0.'|'.$post_1.'|'.'$post_2\n'; writes to the document one|two|three\n Actually, that's not true. Assuming: $post_0 = 'one'; $post_1 = 'two'; $post_2 = 'three'; The code you posted will store the following in $new_topic: one|two|$post_2\n While others were able to answer your question anyway (anything within single quotes is interpreted literally), this demonstrates how providing misinformation can make it very difficult for people to help you. As a courtesy to those who spend their time answering questions, please test your code. It really only takes a moment of your time. Thanks. :-) Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming Fall 2004 HTTP Developer's Handbook - Sams http://httphandbook.org/ PHP Community Site http://phpcommunity.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] \n and br
Chris Shiflett wrote: --- Eugene Lee [EMAIL PROTECTED] wrote: Warning: nl2br() is not safe because it emits br / tags which do not always work on all browsers (especially browsers not explicitly advertised to be XHTML-compliant). Can you name a single browser that cannot properly render a br / tag? I know NN 4.x has problems with br/ /found this out the hard way/ but I don't know of any browser that can't render br /. Although I would love to be proved wrong here :P -- Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com --- Documentation is like sex: when it is good, it is very, very good; and when it is bad, it is better than nothing. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] \n and br
On Mon, 2003-11-10 at 20:21, Eugene Lee wrote: On Mon, Nov 10, 2003 at 04:05:07PM -0800, Chris Shiflett wrote: : : --- Eugene Lee [EMAIL PROTECTED] wrote: : : Warning: nl2br() is not safe because it emits br / tags which do : not always work on all browsers (especially browsers not explicitly : advertised to be XHTML-compliant). : : Can you name a single browser that cannot properly render a br / tag? There were rendering problems discovered with one popular web forum software called vBulletin. So just change it $string = nl2br($content-page_content); $string = eregi_replace(br /, br, $string); In light of this perhaps something like: nl2br(string, int) would be a nice addition where int is 1 or 2 for xhtml or html tags. Although it's odd that this would break anything as it's purpose is backward compatibility. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] \n and br
Brian V Bonini wrote: So just change it $string = nl2br($content-page_content); $string = eregi_replace(br /, br, $string); Why not directly str_replace(array(\r\n,\r,\n), 'br', $content-page_content); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] \n and br
On Tue, 2003-11-11 at 14:51, Marek Kilimajer wrote: Brian V Bonini wrote: So just change it $string = nl2br($content-page_content); $string = eregi_replace(br /, br, $string); Why not directly str_replace(array(\r\n,\r,\n), 'br', $content-page_content); You say tomato I say ;-) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] \n and br
[snip] is \n same as br I found that \n does the same function as br for some users, but not for me. I know that \n creates a break in source and not in display. Is it possible to make \n does the same function as br [/snip] http://us3.php.net/nl2br -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] \n and br
\n is the code to write a new line, between double quotes. Actually it translates to a 0D or 0A code. If there is a 0D or 0A in a text or file (or normal text email) it works as a newline. If you look at the _source_ of your HTML file you will see it too. BR is the HTML code for new line. Browsers understand only BR (well and P and H1-6 also cause a new line), they are taught to ignore the 0A and 0D. If you have a piece of text coming in from a textarea or database, it usually will have the \n type code. To show such texts in a HTML page you have to translate the \n to BR. Because this is so common, PHP has the function nl2br(). If you pronounce this say: NewLine To BReak. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] \n and br
--- PHPLover [EMAIL PROTECTED] wrote: is \n same as br This is not true. I know that \n creates a break in source and not in display. Is it possible to make \n does the same function as br No, but you can convert your newlines to the HTML equivalent: http://www.php.net/nl2br Hope that helps. Chris = My Blog http://shiflett.org/ HTTP Developer's Handbook http://httphandbook.org/ RAMP Training Courses http://www.nyphp.org/ramp -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] \n and br
On Mon, Nov 10, 2003 at 06:57:54AM -0800, Chris Shiflett wrote: : : --- PHPLover [EMAIL PROTECTED] wrote: : : is \n same as br : : This is not true. : : I know that \n creates a break in source and not in display. : Is it possible to make \n does the same function as br : : No, but you can convert your newlines to the HTML equivalent: : : http://www.php.net/nl2br Warning: nl2br() is not safe because it emits br / tags which do not always work on all browsers (especially browsers not explicitly advertised to be XHTML-compliant). -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] \n and br
Eugene Lee mailto:[EMAIL PROTECTED] on Monday, November 10, 2003 3:58 PM said: Warning: nl2br() is not safe because it emits br / tags which do not always work on all browsers (especially browsers not explicitly advertised to be XHTML-compliant). My original response (in my mind) was Which happens to be none. But then I got curious. Pray tell Eugene, which browsers (text or graphical) do not support the br / and other XHTML type tags? Chris. -- Don't like reformatting your Outlook replies? Now there's relief! http://home.in.tum.de/~jain/software/outlook-quotefix/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] \n and br
--- Eugene Lee [EMAIL PROTECTED] wrote: Warning: nl2br() is not safe because it emits br / tags which do not always work on all browsers (especially browsers not explicitly advertised to be XHTML-compliant). Can you name a single browser that cannot properly render a br / tag? Chris = My Blog http://shiflett.org/ HTTP Developer's Handbook http://httphandbook.org/ RAMP Training Courses http://www.nyphp.org/ramp -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] \n and br
Chris Shiflett wrote: --- Eugene Lee [EMAIL PROTECTED] wrote: Warning: nl2br() is not safe because it emits br / tags which do not always work on all browsers (especially browsers not explicitly advertised to be XHTML-compliant). Can you name a single browser that cannot properly render a br / tag? Chris The old Prodigy 'browser' from the early 90's? ;) -- By-Tor.com It's all about the Rush http://www.by-tor.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] \n and br
Eugene Lee wrote: On Mon, Nov 10, 2003 at 06:57:54AM -0800, Chris Shiflett wrote: : : --- PHPLover [EMAIL PROTECTED] wrote: : : is \n same as br : : This is not true. : : I know that \n creates a break in source and not in display. : Is it possible to make \n does the same function as br : : No, but you can convert your newlines to the HTML equivalent: : : http://www.php.net/nl2br Warning: nl2br() is not safe because it emits br / tags which do not always work on all browsers (especially browsers not explicitly advertised to be XHTML-compliant). If that is the case and you would not like the xhtml compliancy, then just do a str_replace('br /','br',$data); after you do the nl2br, everything cured :) Rolf Brusletto http://www.phpExamples.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] \n and br
--- John Nichel [EMAIL PROTECTED] wrote: The old Prodigy 'browser' from the early 90's? ;) Is that a guess or an answer? I don't see it here: http://browsers.evolt.org/ That's the only place I know to find old browsers with which to test things like this. If you have any other information, I'd be glad to do the research. Still, I doubt any browser that is used by more than 0.1% of Web users mishandles an XHTML-compliant br tag. Chris = My Blog http://shiflett.org/ HTTP Developer's Handbook http://httphandbook.org/ RAMP Training Courses http://www.nyphp.org/ramp -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] \n and br
Chris Shiflett wrote: --- John Nichel [EMAIL PROTECTED] wrote: The old Prodigy 'browser' from the early 90's? ;) Is that a guess or an answer? It was a joke. Maybe I'm just too old. *G* -- By-Tor.com It's all about the Rush http://www.by-tor.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] \n and br
John Nichel mailto:[EMAIL PROTECTED] on Monday, November 10, 2003 5:18 PM said: It was a joke. Maybe I'm just too old. *G* Or maybe you're just not funny. OOOH MOTED! :) Why does it feel like Friday??? p.s. i got your joke and no offense, just teasing. please feel free to make fun of me too. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] \n and br
On Mon, Nov 10, 2003 at 04:05:07PM -0800, Chris Shiflett wrote: : : --- Eugene Lee [EMAIL PROTECTED] wrote: : : Warning: nl2br() is not safe because it emits br / tags which do : not always work on all browsers (especially browsers not explicitly : advertised to be XHTML-compliant). : : Can you name a single browser that cannot properly render a br / tag? There were rendering problems discovered with one popular web forum software called vBulletin. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] \n and br
Chris W. Parker wrote: John Nichel mailto:[EMAIL PROTECTED] on Monday, November 10, 2003 5:18 PM said: It was a joke. Maybe I'm just too old. *G* Or maybe you're just not funny. OOOH MOTED! :) Why does it feel like Friday??? p.s. i got your joke and no offense, just teasing. please feel free to make fun of me too. This could be why HBO hasn't been knocking on my door and offering me a few million to do my stand-up routine. -- By-Tor.com It's all about the Rush http://www.by-tor.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] \n and br
--- Eugene Lee [EMAIL PROTECTED] wrote: Can you name a single browser that cannot properly render a br / tag? There were rendering problems discovered with one popular web forum software called vBulletin. That's not a browser. Chris = My Blog http://shiflett.org/ HTTP Developer's Handbook http://httphandbook.org/ RAMP Training Courses http://www.nyphp.org/ramp -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] \n and br
On Mon, 2003-11-10 at 20:30, John Nichel wrote: This could be why HBO hasn't been knocking on my door and offering me a few million to do my stand-up routine. This appears to be off-topic, and so to drive the point home in your own self-righteous drivel: John Nichel spewed one day: If something as trivial as this is where you want to make your big stand in life, please do it offlist Have a nice day. Rob. -- .. | InterJinn Application Framework - http://www.interjinn.com | :: | An application and templating framework for PHP. Boasting | | a powerful, scalable system for accessing system services | | such as forms, properties, sessions, and caches. InterJinn | | also provides an extremely flexible architecture for | | creating re-usable components quickly and easily. | `' -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] \n and br
--- Robert Cummings [EMAIL PROTECTED] wrote: This appears to be off-topic, and so to drive the point home in your own self-righteous drivel: Robert, that is enough of this. Please take your pesonal differences elsewhere. Chris = My Blog http://shiflett.org/ HTTP Developer's Handbook http://httphandbook.org/ RAMP Training Courses http://www.nyphp.org/ramp -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] \n and br
On Mon, 2003-11-10 at 21:44, Chris Shiflett wrote: --- Robert Cummings [EMAIL PROTECTED] wrote: This appears to be off-topic, and so to drive the point home in your own self-righteous drivel: Robert, that is enough of this. Please take your pesonal differences elsewhere. I was merely trying to keep the list on-topic. I felt so berated by John Nichel yesterday that I felt myself suddenly inclined to only post on-topic and to help enforce the standard across all of the PHP general list. I can retract this behaviour if you wish, but it strikes me as a tad biased that what is good for one, is not good for another. Smells like a veritable double standard. Perhaps I've learned the wrong lesson. This will be the last you'll hear from me on this thread. Cheers, Rob. -- .. | InterJinn Application Framework - http://www.interjinn.com | :: | An application and templating framework for PHP. Boasting | | a powerful, scalable system for accessing system services | | such as forms, properties, sessions, and caches. InterJinn | | also provides an extremely flexible architecture for | | creating re-usable components quickly and easily. | `' -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] N/A
Hey Peter-- If the file is always local and you're using a relatively recent version of PHP, you can use file_get_contents instead: http://ca.php.net/file_get_contents Cheers, Marco -- php|architect -- The magazine for PHP professionals Try us free at http://www.phparch.com Searchable PHP Mailing Archive at http://phparch.com/mailinglists Peter Flachbart wrote: I'm trying to use this function to outpot the content of a file that I change time to time so I'd like to see the added text into file to appear in the browser window. Could you help me? (stream_select doesn't work???) ? $fh = fopen('debug.txt','r+'); stream_set_blocking($fh ,true); while(true){ $text = fgets($fh,10); echo $text; flush(); ob_flush(); } fclose($fh); ? Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] \n \t don't work!!!
At 13:22 13-10-03, you wrote: Guys, These codes are copied from the manual: * echo (this is the simplest, an SGML processing instruction\n); echo This spans multiple lines. The newlines will be output as well; echo This spans\nmultiple lines. The newlines will be\noutput as well.; ** None of them works. They do work but you will not see that in the rendered html page (in a browser). Have a look at the source of the produced page and you will see the linebreaks. I suppose your manual was not intending on making html pages, or it was a very lousy one. I would recommend reading the first chapters of the manual on www.php.net to get a general idea of PHP. Then read some tutorials on for instance phpfreaks.com. I mean there're not any new lines generated in my browser and I have to use the echobr to print a new line. But why doesn't the \n work? BTW, the \t doesn't work either. (WindowsXP Pro + PHP Version 4.1.1) Please advise. cheers, feng -- 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] \n \t don't work!!!
It DOES work, look at the source html code. Wang Feng wrote: Guys, These codes are copied from the manual: * echo (this is the simplest, an SGML processing instruction\n); echo This spans multiple lines. The newlines will be output as well; echo This spans\nmultiple lines. The newlines will be\noutput as well.; ** None of them works. I mean there're not any new lines generated in my browser and I have to use the echobr to print a new line. But why doesn't the \n work? BTW, the \t doesn't work either. (WindowsXP Pro + PHP Version 4.1.1) Please advise. cheers, feng -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] \n \t don't work!!!
They do work but you will not see that in the rendered html page (in a browser). Have a look at the source of the produced page and you will see the linebreaks. The page source shows: htmlbody/body/html I suppose your manual was not intending on making html pages, or it was a very lousy one. I do want to just make a html page. The following is my source code, and what I expect is to see the new lines when the \n appears, ok? * html headtitleHello World Program/title/html body ?php echo (this is the simplest, an SGML processing instruction\n); echo This spans multiple lines. The newlines will be output as well; echo This spans\nmultiple lines. The newlines will be\noutput as well.; ? /body /html ** So, what's the problem here? cheers, feng -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] \n \t don't work!!!
Ok, Now I see what happen (maybe). So, the \n is not for the browser output, but for the *view source*? So, it's different from the echo br? If so, what's the deal to do that? --- Makes it look nice if the user view the source code? cheers, feng - Original Message - From: Chris Hayes [EMAIL PROTECTED] To: Wang Feng [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, October 13, 2003 9:29 PM Subject: Re: [PHP] \n \t don't work!!! At 13:22 13-10-03, you wrote: Guys, These codes are copied from the manual: * echo (this is the simplest, an SGML processing instruction\n); echo This spans multiple lines. The newlines will be output as well; echo This spans\nmultiple lines. The newlines will be\noutput as well.; ** None of them works. They do work but you will not see that in the rendered html page (in a browser). Have a look at the source of the produced page and you will see the linebreaks. I suppose your manual was not intending on making html pages, or it was a very lousy one. I would recommend reading the first chapters of the manual on www.php.net to get a general idea of PHP. Then read some tutorials on for instance phpfreaks.com. I mean there're not any new lines generated in my browser and I have to use the echobr to print a new line. But why doesn't the \n work? BTW, the \t doesn't work either. (WindowsXP Pro + PHP Version 4.1.1) Please advise. cheers, feng -- 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] \n \t don't work!!!
Wang Feng wrote: The page source shows: htmlbody/body/html The problem might be right here --+ (closing html tag)| html | headtitleHello World Program/title/html body ?php echo (this is the simplest, an SGML processing instruction\n); echo This spans multiple lines. The newlines will be output as well; echo This spans\nmultiple lines. The newlines will be\noutput as well.; ? /body /html ** Simple: html headtitleHello World Program/title body ?php echo (this is the simplest, an SGML processing instructionbr); echo This spansbrmultiple lines. The newlines will bebroutput as well; echo This spansbrmultiple lines. The newlines will bebroutput as well.; ? /body /html In html you cannot use newlines for formating, use br if you need newline. You can use pre tag for preformated text however. So, what's the problem here? cheers, feng -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] \n \t don't work!!!
On Mon, Oct 13, 2003 at 09:48:56PM +1000, Wang Feng wrote: : : Ok, Now I see what happen (maybe). : : So, the \n is not for the browser output, but for the *view source*? So, : it's different from the echo br? : : If so, what's the deal to do that? --- Makes it look nice if the user view : the source code? When normally rendering HTML text, multiple continuous whitespace characters (i.e. \s+) as a single space. So HTML source code: pHow are you? I am fine. What else is new? /p gets displayed as this: How ar you. I am fine. What else is new? To force a visual linebreak in rendered HTML pages, as you already discovered you need to manually insert br tags. However, if you don't want to litter your HTML source code with a bunch of gratuitous br tags all over the place, use the pre container tag to make the browser render newlines as visual linebreaks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] \n \t don't work!!!
If you want it to work with \n, then you will need to use the pre/pre tags. Otherwise you need to translate the \n's into br tags. \n is NOT an html tag so when you print them to the browser, it adds lines to the source, but as you might already know, a new line in the source of an html page does NOT give a new line in the output unless you use an html tag that would give the new line. Steve At 06:39 AM 10/13/2003, you wrote: They do work but you will not see that in the rendered html page (in a browser). Have a look at the source of the produced page and you will see the linebreaks. The page source shows: I suppose your manual was not intending on making html pages, or it was a very lousy one. I do want to just make a html page. The following is my source code, and what I expect is to see the new lines when the \n appears, ok? * body ?php echo (this is the simplest, an SGML processing instruction\n); echo This spans multiple lines. The newlines will be output as well; echo This spans\nmultiple lines. The newlines will be\noutput as well.; ? /body /html ** So, what's the problem here? cheers, feng -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- This message has been scanned for viruses and dangerous content by the MailScanner at ow4, and is believed to be clean. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] \n \t don't work!!!
Do what I do, use both the \n and the br tags. I am not worried about anybody else thinking the source is nice looking, I do it for debugging so that I can see how the source comes out in a readable format. Steve At 06:48 AM 10/13/2003, you wrote: Ok, Now I see what happen (maybe). So, the \n is not for the browser output, but for the *view source*? So, it's different from the echo br? If so, what's the deal to do that? --- Makes it look nice if the user view the source code? cheers, feng - Original Message - From: Chris Hayes [EMAIL PROTECTED] To: Wang Feng [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, October 13, 2003 9:29 PM Subject: Re: [PHP] \n \t don't work!!! At 13:22 13-10-03, you wrote: Guys, These codes are copied from the manual: * echo (this is the simplest, an SGML processing instruction\n); echo This spans multiple lines. The newlines will be output as well; echo This spans\nmultiple lines. The newlines will be\noutput as well.; ** None of them works. They do work but you will not see that in the rendered html page (in a browser). Have a look at the source of the produced page and you will see the linebreaks. I suppose your manual was not intending on making html pages, or it was a very lousy one. I would recommend reading the first chapters of the manual on www.php.net to get a general idea of PHP. Then read some tutorials on for instance phpfreaks.com. I mean there're not any new lines generated in my browser and I have to use the echobr to print a new line. But why doesn't the \n work? BTW, the \t doesn't work either. (WindowsXP Pro + PHP Version 4.1.1) Please advise. cheers, feng -- 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 -- This message has been scanned for viruses and dangerous content by the MailScanner at ow4, and is believed to be clean. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] \n \t don't work!!!
Thank you all for pointing me to the *right* direction!!! Now I really understand why and what I can do with the \n in php. :-) cheers, feng - Original Message - From: Eugene Lee [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, October 13, 2003 10:58 PM Subject: Re: [PHP] \n \t don't work!!! On Mon, Oct 13, 2003 at 09:48:56PM +1000, Wang Feng wrote: : : Ok, Now I see what happen (maybe). : : So, the \n is not for the browser output, but for the *view source*? So, : it's different from the echo br? : : If so, what's the deal to do that? --- Makes it look nice if the user view : the source code? When normally rendering HTML text, multiple continuous whitespace characters (i.e. \s+) as a single space. So HTML source code: pHow are you? I am fine. What else is new? /p gets displayed as this: How ar you. I am fine. What else is new? To force a visual linebreak in rendered HTML pages, as you already discovered you need to manually insert br tags. However, if you don't want to litter your HTML source code with a bunch of gratuitous br tags all over the place, use the pre container tag to make the browser render newlines as visual linebreaks. -- 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] \n \t don't work!!!
To give tabs in html, you might want to try using nbsp; nbsp; nbsp; instead of \t Steve At 06:57 AM 10/13/2003, you wrote: Wang Feng wrote: The page source shows: htmlbody/body/html The problem might be right here --+ (closing html tag)| html | headtitleHello World Program/title/html body ?php echo (this is the simplest, an SGML processing instruction\n); echo This spans multiple lines. The newlines will be output as well; echo This spans\nmultiple lines. The newlines will be\noutput as well.; ? /body /html ** Simple: ?php echo (this is the simplest, an SGML processing instruction ); echo This spans multiple lines. The newlines will be output as well; echo This spans multiple lines. The newlines will be output as well.; ? In html you cannot use newlines for formating, use br if you need newline. You can use pre tag for preformated text however. So, what's the problem here? cheers, feng -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- This message has been scanned for viruses and dangerous content by the MailScanner at ow4, and is believed to be clean. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] \n \t don't work!!!
[snip] To give tabs in html, you might want to try using nbsp; nbsp; nbsp; instead of \t [/snip] And one other thing I didn't see mentioned http://www.php.net/nl2br -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] \n \t don't work!!!
On Mon, Oct 13, 2003 at 08:10:39AM -0500, Jay Blanchard wrote: : : [snip] : To give tabs in html, you might want to try using nbsp; nbsp; nbsp; : instead of \t : [/snip] : : And one other thing I didn't see mentioned http://www.php.net/nl2br Note that nl2br() is XHTML compliant, which means it sends out br / tags instead of br tags. This is a problem on browsers that do poorly with mixed HTML and XHTML tag styles in the same body content. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] \n \t don't work!!!
--- Eugene Lee [EMAIL PROTECTED] wrote: Note that nl2br() is XHTML compliant, which means it sends out br / tags instead of br tags. This is a problem on browsers that do poorly with mixed HTML and XHTML tag styles in the same body content. Which browsers does this refer to? Chris = My Blog http://shiflett.org/ HTTP Developer's Handbook http://httphandbook.org/ RAMP Training Courses http://www.nyphp.org/ramp -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] /n not working
Thomas Hochstetter wrote: Hi there. I got a question from someone why the following (from the manual) will not bring the desired output: ?php /* if I open the following txt file and in explorer*/ $text = The quick brown fox jumped over the lazy dog.; $newtext = wordwrap($text, 20); echo $newtext\n; /*my output is the following The quick brown fox jumped over the lazy dog. */ /*this should however have the following output according to the php manual The quick brown fox jumped over the lazy dog. */ ? Is this a php.ini setting? HTML does not render newlines. You need to use br /. View the source of this code in your browser and you'll see everything is on it's own line. -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ PHP|Architect: A magazine for PHP Professionals www.phparch.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] /n not working
* Thus wrote John W. Holmes ([EMAIL PROTECTED]): Thomas Hochstetter wrote: $text = The quick brown fox jumped over the lazy dog.; $newtext = wordwrap($text, 20); echo $newtext\n; [...] HTML does not render newlines. You need to use br /. View the source of this code in your browser and you'll see everything is on it's own line. Yes the documentation is a little misleading. I'm in the process of getting that changed in the documentation. Curt -- I used to think I was indecisive, but now I'm not so sure. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] /n not working
I must suggest to just add like header(Content-Type: text/plain); // Don't use HTML To the top of examples like that... -- // DvDmanDT MSN: [EMAIL PROTECTED] Mail: [EMAIL PROTECTED] Curt Zirzow [EMAIL PROTECTED] skrev i meddelandet news:[EMAIL PROTECTED] * Thus wrote John W. Holmes ([EMAIL PROTECTED]): Thomas Hochstetter wrote: $text = The quick brown fox jumped over the lazy dog.; $newtext = wordwrap($text, 20); echo $newtext\n; [...] HTML does not render newlines. You need to use br /. View the source of this code in your browser and you'll see everything is on it's own line. Yes the documentation is a little misleading. I'm in the process of getting that changed in the documentation. Curt -- I used to think I was indecisive, but now I'm not so sure. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] \n outputs \r\n ??
At 2003-05-29 11:38 -0700, Michael Isaacs wrote: Still new to PHP - any assistance would be very much appreciated... I am using a php script to send info to a local file for mail filtering. Whe the php script sends the following: fputs($nf, MAILDIR=$MAILDIR # Default mail directory\n); the output actually has a chr 13, 10 You're probably running under Windows. Try using fopen('file','wb'). The 'b' stands for 'binary' and it should prevent the expansion of LF to CRLF. It's mentioned in a note on the manual page of fopen(); Greetings, Jaap -- Chip Directory -- http://www.chipdir.biz/ -- http://www.chipdir.info/ -- http://www.chipdir.net/ -- http://www.chipdir.nl/ -- http://www.chipdir.org/ -- And about 30 other mirror sites world-wide. -- -- To subscribe to a free 'chip issues, questions and answers' -- mailing list, send a message to [EMAIL PROTECTED] with -- in the body 'subscribe chipdir-L'. About 500 experts are -- willing to think with you about electronics problems etc. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] \n
Hi John, Nothing fancy. Can't get it to echo ¶ Is that a pilcrow sign? If so, have you tried para; instead, like this: $inputresult = str_replace('\n', 'para;\n', $testtextarea); Cheers Jon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] \n
Jon, Anyone, Paragraph sign actually. I'm filterting some data for MySQL. I need a field delimiter. I don't want to use \n. Contents of each field are on a signel line of text. I have come up with this, unless someone can suggest better: if ($testtextarea) { $inputresult = str_replace(\r, , $testtextarea); $inputresult = str_replace(\n, ¶\n, $inputresult); echo textarea cols=30 rows=5 name=testtextarea$inputresult/textarea; } Thanks, John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] \n
That should be done like $inputresult = str_replace(\n, para;\n, $testtextarea); unless he really wants to output \n, not line change. ? $foo = lines; print this is\ntwo $foo; ? outputs: this is two lines ? $foo = lines; print 'this is\ntwo lines $foo'; ? outputs: this is\ntwo $foo String in enclosed by ' is exact, unlike . Niklas -Original Message- From: Jon Haworth [mailto:[EMAIL PROTECTED] Sent: 4. maaliskuuta 2003 11:06 To: '[EMAIL PROTECTED]' Subject: RE: [PHP] \n Hi John, Nothing fancy. Can't get it to echo ¶ Is that a pilcrow sign? If so, have you tried para; instead, like this: $inputresult = str_replace('\n', 'para;\n', $testtextarea); Cheers Jon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php ### This message has been scanned by F-Secure Anti-Virus for Internet Mail. For more information, connect to http://www.F-Secure.com/ ### This message has been scanned by F-Secure Anti-Virus for Internet Mail. For more information, connect to http://www.F-Secure.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] \n to BR Problem
try this function nltobr() -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] \n to BR Problem
on 07/09/02 1:51 AM, N. Pari Purna Chand ([EMAIL PROTECTED]) wrote: $newstr = ereg_replace (\n, BR, $newstr); Instead, I think you'd have to escape the slash: \\n... but it's irrelevant, because there's a function that does this for you: $newstr = nl2br($newstr); Also, you should try to use str_replace('was', 'is', $str), because it's less resource intensive than ereg* Justin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] \n to BR Problem
Chandu, et al -- ...and then N. Pari Purna Chand said... % % I have a small problem in converting a plain text to html. Son of a gun... Maybe it's world consciousness working on this :-) I've just posted a similar question. Be sure to watch both threads just in case. HTH HAND :-D -- David T-G * It's easier to fight for one's principles (play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie (work) [EMAIL PROTECTED] http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg! msg78073/pgp0.pgp Description: PGP signature
Re: [PHP] \n to BR Problem
At 23:51 09/06/2002, you wrote: I have a small problem in converting a plain text to html. snip $newstr = ereg_replace (\n, BR, $newstr); try $newstr = ereg_replace(\n\r|\n|\r, BR, $newstr); notice it looks for all types of line feeds -jacob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] \n to BR Problem
At 23:51 09/06/2002, you wrote: I have a small problem in converting a plain text to html. snip $newstr = ereg_replace (\n, BR, $newstr); try $newstr = ereg_replace(\n\r|\n|\r, BR, $newstr); notice it looks for all types of line feeds -jacob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] \n Seems not to work fine
I cannot get a breakline or line appart with \n with printf or print, I've to use always BR. \n shows only a space. HTML does not break lines on newlines in the source code. That's why BR is there. If you look at the source code, you'll see there is a newline in the source. Remember that HTML source code tells the browser how to render the page. Jason -- Jason Murray [EMAIL PROTECTED] Web Developer, Melbourne IT Work now, freak later! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] \n not working
Browsers don't parse \n as a new line, try using br which will make a new line Andrew - Original Message - From: alpherjo [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, September 16, 2001 9:51 PM Subject: [PHP] \n not working I am just learning PHP. I have it installed on my Win 2000 IIS to practice, and after I save PHP files in my wwwroot folder, I go ahead and access my practice pages through IE via my full (universal) server address. However, the \n code (to start a new line) never works. Any ideas? Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] \n
In html? If it is then you should be using BR. An \n will just put a newline in your source code. Nick. On Fri, 24 Aug 2001, Jeremy Morano wrote: Sorry to bother you with what probably seems like a useless question but why is this not skipping a line? echo $team \n ; Its in a while loop and the output is: Bears Giants Jets etc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] \n
you do know you need to put br to make it go to a new line :D one of the stupidest mistakes, but done alot :D - Original Message - From: Jeremy Morano [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, August 25, 2001 1:18 AM Subject: [PHP] \n Sorry to bother you with what probably seems like a useless question but why is this not skipping a line? echo $team \n ; Its in a while loop and the output is: Bears Giants Jets etc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] \n
are you on windows or *nix? paste more code On Fri, 24 Aug 2001, Jeremy Morano wrote: Sorry to bother you with what probably seems like a useless question but why is this not skipping a line? echo $team \n ; Its in a while loop and the output is: Bears Giants Jets etc -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] \n
On 24 Aug 01, at 11:18, Jeremy Morano wrote: echo $team \n ; echo $teambr\n; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] \n
So sprach »Jeremy Morano« am 2001-08-24 um 11:18:10 -0400 : echo $team \n ; HTML? echo nl2br( $team \n ); Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://www.digitalprojects.com | http://www.iso-top.de iso-top.de - Die günstige Art an Linux Distributionen zu kommen Uptime: 13 hours 38 minutes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] /n for PC Unix
Just use \n. Both OS's understand this to be a linefeed and will behave accordingly. With the exception of a class that performs POP3 queries, I've never had to use \r\n in my code. Regards, Toby Butzon Todd Cary wrote: When I write to a file with PHP, I get double line spacing when read on a PC. Is there a way to handle this so that a text file can be created by PHP and be read correctly by Linux or a WIN based computer? In my PHP code, I have been using \r\n to duplicate the 0Dh 0Ah that a WIN based computer needs. Todd -- Todd Cary Ariste Software [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]