RE: [PHP] How to remove new line character?
Hi, try it with the 'chop()'-function. Note, that this also removes any other whitespace-characters like tabulators and spaces. HTH, Simon -Original Message- From: Shu Hung Yeung [mailto:[EMAIL PROTECTED] Sent: Sunday, November 02, 2003 5:14 PM To: [EMAIL PROTECTED] Subject: [PHP] How to remove new line character? Hello, I am a beginner of PHP. I know a little about Perl. In Perl, there is a chomp() function to remove newline (return) character in a long string. How about PHP? Can I do the same in PHP Thankyou -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] How to remove new line character?
Sorry, one correction: the 'chop()'-function only removes the whitespaces an the END of the string. But if you want to remove the newline (and only this) at the end of the string try this: $new_string = preg_replace(/\n$/, , $old_string); HTH, Simon -Original Message- From: Koala Yeung [mailto:[EMAIL PROTECTED] Sent: Sunday, November 02, 2003 5:43 PM To: [EMAIL PROTECTED] Subject: RE: [PHP] How to remove new line character? Thanks a lot I'd like to remove newline only. Is there any simple way? Koala From: Simon Stiefel [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: RE: [PHP] How to remove new line character? Date: Sun, 2 Nov 2003 17:25:53 +0100 Hi, try it with the 'chop()'-function. Note, that this also removes any other whitespace-characters like tabulators and spaces. HTH, Simon -Original Message- From: Shu Hung Yeung [mailto:[EMAIL PROTECTED] Sent: Sunday, November 02, 2003 5:14 PM To: [EMAIL PROTECTED] Subject: [PHP] How to remove new line character? Hello, I am a beginner of PHP. I know a little about Perl. In Perl, there is a chomp() function to remove newline (return) character in a long string. How about PHP? Can I do the same in PHP Thankyou -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php _ No masks required! Use MSN Messenger to chat with friends and family. http://go.msnserver.com/HK/25382.asp -- 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] PHP and Apace setup
Hi, can you give us some lines from your error_log-file? Usually found in /var/log/apache[2]/. Thanks, Simon -Original Message- From: Teren [mailto:[EMAIL PROTECTED] Sent: Sunday, November 02, 2003 8:43 PM To: [EMAIL PROTECTED] Subject: [PHP] PHP and Apace setup Hi, I just loaded up all of the packages using the packages from Openbsd since i was having issues with ports, and then I activated them all and that worked fine. However, when I put the line to load the php4 module in to httpd.conf, apache won't start. It finds the module fine, but that's it. When i run apachectl start, it says it can't be started, when I do apachectl configtest, it says the Syntax is OK. Anyone have any ideas? Thanks Teren -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Using PHP to generate Acrobat PDF...
On 12 Sep 2003 at 13:17, Scott Fletcher wrote: Anyone have experience with it? Anyone of good information where I can do some research on? Have a look at www.pdflib.com. They also have a great documentation for it. We use it to put our company logo at the top af some PDF documents. Works perfectly! Thanks... HTH, Simon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] snmpget errors
Hi there, First of all, the snmpset-function works without any problems. But I've got that problem with the snmpget-function. The return value is s.th. like that: Ôÿ¿EÔÿ¿. Cool, huh? The command-line snmpget works also very fine. Any hints? Thanks in advance. Greets, Simon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php