[PHP] New Session Variable unset doesn't work

2002-05-03 Thread Sascha Ragtschaa

Hi,

I somehow cannot unset Session variables. If I set for example
$_SESSION[error]=formcheck (the new style) and I want to unset it at the
end of the page (unset($_SESSION[error])), it's there again on the next
page.

Is there a special way to unset the new Session variables?

I am using Windows 2000 Server + PHP4.2.0.

Thanks in advance...

Sascha Ragtschaa





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Substr and HTML tags - Problem...

2002-02-25 Thread Sascha Ragtschaa

Hi,

I got a small problem:

I need to limit a teaser-text via substr($teaser,0,100). The Problem I now
have is, if the last 4 string chars are a html tag like br and this tag
will be cut by the substr to something like that: br - it will mess up the
webpage...

How can I avoid that the html tags are cut by the substr function? Is there
a way to make the function know, that it has to leave html tags uncut??

Thanks in advance...

Sascha Ragtschaa



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




AW: [PHP] Substr and HTML tags - Problem...

2002-02-25 Thread Sascha Ragtschaa

Thanks, found a way - the PHP function wordwrap does it just perfect
(recognizes the tags, too) ...

Sometimes it's just good to browse a little bit through PHP.net (*g*)

Sascha Ragtschaa




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Substr + Text + HTML - Problem

2002-02-25 Thread Sascha Ragtschaa

Hi,

I still have one problem, which seems to be not solveable in a easy and
smooth way:

I have a text file like this:

$text=This is a html extended textbrwhich needs to be cut after 100
charsbr;

Than I do a substring to limit it to only 100 words (teaser-format):

$teaser_1=substr($text, 0, 100);
$teaser_2=...a[click here for more]/a;

The Output of $teaser_1 will sometimes be like this:
This is a html extended textbrwhich needs to be cut after 100 charsbr

The br is displayed as br and not properly closed due to the limitation
of 100 chars, and therefore messes up my whole webpage! Is there a way to
let the function recognize, if the last part of the string is a unclosed
html tag?

Does anyone have a idea how to do it? Tried around a couple of things, but
nothing worked out yet...

Sascha Ragtschaa



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Creating a installer...

2002-02-25 Thread Sascha Ragtschaa

Just curious to know if someone already has a approach on that...

Are there any experiences on a installer for php projects?  

Sascha Ragtschaa





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Digit Grouping Function

2001-11-29 Thread Sascha Ragtschaa

Hi,

I have a small question? Does anyone know (or has written) a function about
digit grouping symbols, that means:
when I have a value of 1000, it should print out like this: 1.000
The same when I have a value of 100, it should give 1.000.000

Does anyone know how to do it? Thanks in advance...

Sascha


-- 
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]