php-windows Digest 2 Jun 2002 12:18:51 -0000 Issue 1172

Topics (messages 14041 through 14042):

Re: Line feeds and WRAP="soft" TEXTAREA element
        14041 by: Scott Hurring

a problem.
        14042 by: D.Terziev

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
Or, as always, try a preg ;)

$string = preg_replace("/\n/", "<BR>\n", $string);

---
Scott Hurring
Systems Programmer
EAC Corporation
[EMAIL PROTECTED]
Voice: 201-462-2149
Fax: 201-288-1515

> -----Original Message-----
> From: Nikolai Jeliazkov [mailto:[EMAIL PROTECTED]]
> Sent: Friday, May 31, 2002 2:27 AM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: Re: [PHP-WIN] Line feeds and WRAP="soft" TEXTAREA element
> 
> 
> try nl2br
> http://www.php.net/manual/en/function.nl2br.php
> 
> Nikolai Jeliazkov
> 
> 
> 
> Ross Fleming wrote:
> > Thanks for that, if only because I didn't know PHP included 
> the "foreach"
> > function, useful to know. :)
> > 
> > Ross
> > 
> > 
> >>-----Original Message-----
> >>From: Michael Reynolds [mailto:[EMAIL PROTECTED]]
> >>Sent: 31 May 2002 04:36
> >>To: [EMAIL PROTECTED]
> >>Subject: Re: [PHP-WIN] Line feeds and WRAP="soft" TEXTAREA element
> >>
> >>
> >>
> >>--- Michael Reynolds <[EMAIL PROTECTED]> wrote:
> >>
> >>>--- Matt Babineau <[EMAIL PROTECTED]> wrote:
> >>>
> >>>>Is there any way to detect linefeeds and replace them 
> with <BR> for
> >>>>output in html?
> >>>>
> >>>
> >>>$data=explode("\n",$data);
> >>>foreach ($data as $line) {
> >>>print($data."<br>\n");
> >>
> >>(oops) replace that with:
> >>print($line."<br>\n");
> >>
> >>
> >>>}
> >>>$data=implode("\n",$data);
> >>>
> >>
> >>
> >>__________________________________________________
> >>Do You Yahoo!?
> >>Yahoo! - Official partner of 2002 FIFA World Cup
> >>http://fifaworldcup.yahoo.com
> >>
> >>--
> >>PHP Windows Mailing List (http://www.php.net/)
> >>To unsubscribe, visit: http://www.php.net/unsub.php
> >>
> > 
> > 
> > 
> 
> 
> 
> 
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
--- End Message ---
--- Begin Message ---
Hi

I have a problem and I hope that you can help me.

It's my second time when I install PHP on Win XP Pro useing IIS WebServices.
The first time
all was Ok. I use the CGI version of PHP (php.exe). So, the problem is that
when i type
http://localhost/php/myscript.php?var=something

PHP  return error that $var is undefined variable.
when I set $var = something in the source code all is working Ok, but it
doesn't via Web Browser.

Can you help me? What's wrong?

Are you need any other info about my system?

Thanks in advance.



--- End Message ---

Reply via email to