Re: [PHP] multiline text areas and mysql doesn't work :(
In reply to [EMAIL PROTECTED]: > Return-Path: <[EMAIL PROTECTED]> > Received: from toye.php.net (va.php.net [198.186.203.51]) > by cobalt1.intermedia.com.sg (8.10.2/8.10.2) with SMTP id f4DGDXZ25935 > for <[EMAIL PROTECTED]>; Mon, 14 May 2001 00:13:39 +0800 > Received: (qmail 12864 invoked by uid 1013); 13 May 2001 16:15:49 - > Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm > Precedence: bulk > list-help: <mailto:[EMAIL PROTECTED]> > list-unsubscribe: <mailto:[EMAIL PROTECTED]> > list-post: <mailto:[EMAIL PROTECTED]> > Delivered-To: mailing list [EMAIL PROTECTED] > Received: (qmail 12848 invoked by uid 9); 13 May 2001 16:15:49 - > To: [EMAIL PROTECTED] > From: "Ciaron Nixon" <[EMAIL PROTECTED]> > Date: Sun, 13 May 2001 17:22:28 +0100 > Lines: 9 > Message-ID: <9dmbvl$chc$[EMAIL PROTECTED]> > X-Priority: 3 > X-MSMail-Priority: Normal > X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 > X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 > Subject: [PHP] multiline text areas and mysql doesn't work :( > X-UIDL: ;GH!!Oa4!!_P6"!Z&K!! > I'm trying to insert the conents of a submitted textarea into a field of a > db but it seems to be stripping the control characters or not fomatting them > properly. The record updates fine but when I display it all the newlines are > gone ie the whole field appears on 1 line. > Any ideas how to get it to store the control chars? > -Ciaron Use nl2br() to format the display properly in HTML. Goto www.php.net/nl2br for more info. So this would work well: Updating the record works because you probably did something like this: Regards, Keith Ng ___ Co-founder K-Designs Incorporated [EMAIL PROTECTED] http://www.k-designs.com.sg/ -- 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] PDF
Hi all, With regards to the PDF library, I'm wondering if there are any generators that generate the code for the pdf document instead of manually hard-coding everything. Or is there an easy way out by converting an already designed pdf document into the code which pdflib recognises? Thanks very much. Regards, Keith Ng ___ Senior Web Developer K-Systems & Services [EMAIL PROTECTED] http://www.k-systems.com.sg/ -- 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] How can I enable magic_quotes_gpc without editing PHP.ini
In reply to [EMAIL PROTECTED]: > Return-Path: <[EMAIL PROTECTED]> > Received: from toye.php.net (va.php.net [198.186.203.51]) > by cobalt1.intermedia.com.sg (8.10.2/8.10.2) with SMTP id f4GEsVZ09896 > for <[EMAIL PROTECTED]>; Wed, 16 May 2001 22:54:31 +0800 > Received: (qmail 7963 invoked by uid 1013); 16 May 2001 14:57:06 - > Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm > Precedence: bulk > list-help: <mailto:[EMAIL PROTECTED]> > list-unsubscribe: <mailto:[EMAIL PROTECTED]> > list-post: <mailto:[EMAIL PROTECTED]> > Delivered-To: mailing list [EMAIL PROTECTED] > Received: (qmail 7957 invoked from network); 16 May 2001 14:57:06 - > Reply-To: <[EMAIL PROTECTED]> > From: "SED" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Date: Wed, 16 May 2001 15:00:23 - > Message-ID: <[EMAIL PROTECTED]> > MIME-Version: 1.0 > Content-Type: text/plain; > charset="iso-8859-1" > Content-Transfer-Encoding: 7bit > X-Priority: 3 (Normal) > X-MSMail-Priority: Normal > X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) > X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 > In-Reply-To: <9du3pi$te4$[EMAIL PROTECTED]> > Importance: Normal > Subject: [PHP] How can I enable magic_quotes_gpc without editing PHP.ini > X-UIDL: BlS"!FI`"!LJI"!a2_!! > Hi, > I need to enable magic_quotes_qpc for one session (or a script) but I can no > access to the php.ini on the server. Is it possible to do it? And if so, > how? > Regards, > Sumarlidi Einar Dadason > SED - Graphic Design > -- > Phone: (+354) 4615501 > Mobile: (+354) 8960376 > Fax: (+354) 4615503 > E-mail: [EMAIL PROTECTED] > Homepage:www.sed.is <- New Homepage! > -- set_magic_quotes_runtime(); Regards, Keith Ng ___ Co-founder K-Designs Incorporated [EMAIL PROTECTED] http://www.k-designs.com.sg/ -- 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] Barcode in PDF.
Hi, Does anyone know how to go about drawing a barcode in PDFLIB? Regards, Keith Ng ___ Co-founder K-Designs Incorporated [EMAIL PROTECTED] http://www.k-designs.com.sg/ -- 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] Parse error..help!
In reply to [EMAIL PROTECTED]: > Return-Path: <[EMAIL PROTECTED]> > Received: from toye.php.net (va.php.net [198.186.203.51]) > by cobalt1.intermedia.com.sg (8.10.2/8.10.2) with SMTP id f4IDicZ30638 > for <[EMAIL PROTECTED]>; Fri, 18 May 2001 21:44:39 +0800 > Received: (qmail 23365 invoked by uid 1013); 18 May 2001 13:47:20 - > Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm > Precedence: bulk > list-help: <mailto:[EMAIL PROTECTED]> > list-unsubscribe: <mailto:[EMAIL PROTECTED]> > list-post: <mailto:[EMAIL PROTECTED]> > Delivered-To: mailing list [EMAIL PROTECTED] > Received: (qmail 23359 invoked from network); 18 May 2001 13:47:20 - > Reply-To: <[EMAIL PROTECTED]> > From: "Taline Makssabo" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Date: Fri, 18 May 2001 09:49:35 -0400 > Message-ID: <[EMAIL PROTECTED]> > MIME-Version: 1.0 > Content-Type: text/plain; > charset="iso-8859-1" > Content-Transfer-Encoding: 7bit > X-Priority: 3 (Normal) > X-MSMail-Priority: Normal > X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) > Importance: Normal > X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 > Subject: [PHP] Parse error..help! > X-UIDL: #l6"!fL$#!:Bj"!n1f!! > Here is another error i keep on getting, this is suppose to send me an email > each time someone enters in my website but i keep on gettong this error > message: > Parse error: parse error in > /home/virtual/ppcu/home/httpd/html/php2/login.php on line 8 > I don't see anything wrong, please help. > SetLogging(1); > Function AccessHit > ( > $NL = (\n); > $H = getLastHost(); > $R = getLastRef(); > $To = "[EMAIL PROTECTED]"; > $Sub = "Page Accessed"; > $D = Date("D d M y h:ia",time()); > $Msg = $H + $NL + $R + $NL + $D; > mail($To,$Sub,$Msg); > ); > AccessHit(); ?>> $NL = (\n)? It should be $NL = "\n"; Regards, Keith Ng ___ Co-founder K-Designs Incorporated [EMAIL PROTECTED] http://www.k-designs.com.sg/ -- 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] Parse error..help!
In reply to [EMAIL PROTECTED]: > Return-Path: <[EMAIL PROTECTED]> > Received: from toye.php.net (va.php.net [198.186.203.51]) > by cobalt1.intermedia.com.sg (8.10.2/8.10.2) with SMTP id f4IDicZ30638 > for <[EMAIL PROTECTED]>; Fri, 18 May 2001 21:44:39 +0800 > Received: (qmail 23365 invoked by uid 1013); 18 May 2001 13:47:20 - > Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm > Precedence: bulk > list-help: <mailto:[EMAIL PROTECTED]> > list-unsubscribe: <mailto:[EMAIL PROTECTED]> > list-post: <mailto:[EMAIL PROTECTED]> > Delivered-To: mailing list [EMAIL PROTECTED] > Received: (qmail 23359 invoked from network); 18 May 2001 13:47:20 - > Reply-To: <[EMAIL PROTECTED]> > From: "Taline Makssabo" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Date: Fri, 18 May 2001 09:49:35 -0400 > Message-ID: <[EMAIL PROTECTED]> > MIME-Version: 1.0 > Content-Type: text/plain; > charset="iso-8859-1" > Content-Transfer-Encoding: 7bit > X-Priority: 3 (Normal) > X-MSMail-Priority: Normal > X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) > Importance: Normal > X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 > Subject: [PHP] Parse error..help! > X-UIDL: #l6"!fL$#!:Bj"!n1f!! > Here is another error i keep on getting, this is suppose to send me an email > each time someone enters in my website but i keep on gettong this error > message: > Parse error: parse error in > /home/virtual/ppcu/home/httpd/html/php2/login.php on line 8 > I don't see anything wrong, please help. > SetLogging(1); > Function AccessHit > ( > $NL = (\n); > $H = getLastHost(); > $R = getLastRef(); > $To = "[EMAIL PROTECTED]"; > $Sub = "Page Accessed"; > $D = Date("D d M y h:ia",time()); > $Msg = $H + $NL + $R + $NL + $D; > mail($To,$Sub,$Msg); > ); > AccessHit(); ?>> Right... so all in all the code should be: --- --- Regards, Keith Ng ___ Co-founder K-Designs Incorporated [EMAIL PROTECTED] http://www.k-designs.com.sg/ -- 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] monitoring more than two sockets (multitask ?)
Hello, I have a simple question. How do I monitor two or more sockets in PHP? Someone told me about register_tick_function() for multi tasking but I played with it and nothing seems to come out of it. I monitored the first opened socket using a while() loop containing a fgets() function. -- 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]