Hi

Try

eregreplace(tab, 4 spaces)

Peter

-----------------------------------------------
Excellence in internet and open source software
-----------------------------------------------
Sunmaia
www.sunmaia.net
[EMAIL PROTECTED]
tel. 0121-242-1473
-----------------------------------------------

> -----Original Message-----
> From: Blue Presley [mailto:[EMAIL PROTECTED]]
> Sent: 01 July 2002 02:33
> To: [EMAIL PROTECTED]
> Subject: Re: text formatting
>
>
> Thanks guys, nl2br works perfectly for preserving my new lines!  I've
> checked over the php string function list and am still experimenting with
> some options.  However, do you know of any function that will
> preserve tabs
> and spacing (used for centering text, etc)
>
>
> in case your wondering, i'm letting people submit their resumes to a mysql
> database.  it has to be in text format so that they can be properly
> searched.  if anyone knows of a better way to do this (ie, using
> .pdf files)
> and still enabling them to be searched, plz let me know.
>
> thx
> blue
> ----- Original Message -----
> From: "Gurhan Ozen" <[EMAIL PROTECTED]>
> To: "Blue Presley" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> Sent: Sunday, June 30, 2002 7:35 PM
> Subject: Re: text formatting
>
>
> > Hi,
> > Yes there are number of functions you can use in php. I don't know what
> you
> > really want to do, i assume that you want the resumes viewed
> over the web,
> > in that case you can use nl2br() function to indicate a new line..
> > Take a look at the following pages:
> > http://www.php.net/manual/en/ref.strings.php
> > http://www.php.net/manual/en/ref.regex.php
> >
> > Gurhan
> >
> > ----- Original Message -----
> > From: "Blue Presley" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Sunday, June 30, 2002 6:31 PM
> > Subject: Re: text formatting
> >
> >
> > > I'm using (and new to) PHP.  any suggestions as to what functions, if
> any
> > > exist, that would be appropriate for pre-formatting?
> > >
> > > thx,
> > > blue
> > > ----- Original Message -----
> > > From: "Gurhan Ozen" <[EMAIL PROTECTED]>
> > > To: "Blue Presley" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> > > Sent: Sunday, June 30, 2002 6:02 PM
> > > Subject: Re: text formatting
> > >
> > >
> > > > This should be handled before the data is even inserted into mysql.
> Have
> > > > your scripting language that you use in the form handle this to have
> the
> > > > resume formatted in the way you'd like and then have it insert the
> data
> > > into
> > > > mysql.
> > > > Gurhan
> > > >
> > > > ----- Original Message -----
> > > > From: "Blue Presley" <[EMAIL PROTECTED]>
> > > > To: <[EMAIL PROTECTED]>
> > > > Sent: Sunday, June 30, 2002 5:34 PM
> > > > Subject: text formatting
> > > >
> > > >
> > > > > hello,
> > > > > I have a web from that allows a user to submit a resume in text
> > format.
> > > > How
> > > > > do i make mysql respect the formatting of the text
> document so that
> it
> > > is
> > > > > pulled from the database as it was inserted?  right now everything
> > comes
> > > > > back as one paragraph.
> > > > >
> > > > > thanks,
> > > > > blue
> > > > >
> > > > >
> > > >
> > ---------------------------------------------------------------------
> > > > > Before posting, please check:
> > > > >    http://www.mysql.com/manual.php   (the manual)
> > > > >    http://lists.mysql.com/           (the list archive)
> > > > >
> > > > > To request this thread, e-mail
> <[EMAIL PROTECTED]>
> > > > > To unsubscribe, e-mail
> > > > <[EMAIL PROTECTED]>
> > > > > Trouble unsubscribing? Try:
> http://lists.mysql.com/php/unsubscribe.php
> > > > >
> > > >
> > > >
> > > >
> ---------------------------------------------------------------------
> > > > Before posting, please check:
> > > >    http://www.mysql.com/manual.php   (the manual)
> > > >    http://lists.mysql.com/           (the list archive)
> > > >
> > > > To request this thread, e-mail <[EMAIL PROTECTED]>
> > > > To unsubscribe, e-mail
> > > <[EMAIL PROTECTED]>
> > > > Trouble unsubscribing? Try:
http://lists.mysql.com/php/unsubscribe.php
> > >
> >
> >
> > ---------------------------------------------------------------------
> > Before posting, please check:
> >    http://www.mysql.com/manual.php   (the manual)
> >    http://lists.mysql.com/           (the list archive)
> >
> > To request this thread, e-mail <[EMAIL PROTECTED]>
> > To unsubscribe, e-mail
> <[EMAIL PROTECTED]>
> > Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
> >
>
>
> ---------------------------------------------------------------------
> Before posting, please check:
>    http://www.mysql.com/manual.php   (the manual)
>    http://lists.mysql.com/           (the list archive)
>
> To request this thread, e-mail <[EMAIL PROTECTED]>
> To unsubscribe, e-mail
<[EMAIL PROTECTED]>
> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
>


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to