[PHP] Re: ereg_replace and quotation marks

2003-06-25 Thread sven
maybe stripslashes() can solve your problem? Paul Nowosielski wrote: > I'm trying to strip quotation marks out of user from input but it > doesn't seem to work correctly. > > $string=ereg_replace("\"","",$string); > > I get a \ mark after I run a quote through the form. When I want the > quote tu

[PHP] Re: ereg_replace question

2003-06-11 Thread Rob Adams
"Todd Cary" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] I have a string, This does not work $fullpath = $HTTP_SERVER_VARS[PATH_TRANSLATED]; $fullpath = ereg_replace("\\[^\\]+$","",$fullpath) . '\\'; What have I missed? Todd -- You could just use: $path = dirname($fullpath

[PHP] Re: ereg_replace()

2002-08-14 Thread Philip Hallstrom
I'd do something like this: $str = " User : [EMAIL PROTECTED] Dir : /home/eXtremail/mbox/i-redlands.net/3/1/liam Forward : Copy : Account mapping : User Disk Quota : 0 Disk Space Used : 0 Max In Mail Size : 0 Max Out Mail Size : 0 Autoreply : No Mailbox Access : POP,IMAP Created : Sat Jul 6 09:21

[PHP] Re: ereg_replace

2001-07-25 Thread CC Zona
In article <079201c1151f$ec6472e0$650a@cicse>, [EMAIL PROTECTED] (Clayton Dukes) wrote: > Can someone tell me why this doesn't work? > > $home street = ereg replace (" " , "+" , $home street); > > The input is "123 happy trail" > I need the output to be "123+happy+trail" Using an ereg her