Re: [PHP] crypt() sources c# port

2004-01-29 Thread Martin Luethi
download the source code: http://www.php.net/downloads.php or browse online: http://cvs.php.net the crypt() source is under php-src/ext/standard/ g. tinu Thu, 29 Jan 2004 09:54:39 +0100 gerold kathan <[EMAIL PROTECTED]>: hi there - i have user credentials in my DB encrypted with PHPs crypt() func

Re: [PHP] chunk_split();

2004-01-28 Thread Martin Luethi
Wed, 28 Jan 2004 11:41:56 -0500 Benjamin Trépanier <[EMAIL PROTECTED]>: On 28/01/04 11:29, "Martin Luethi" <[EMAIL PROTECTED]> wrote: maybe its better to use fread() and fseek() 2000 bytes should be 2000 characters in a textfile g. tinu Wed, 28 Jan 2004 11:20:32 -05

Re: [PHP] chunk_split();

2004-01-28 Thread Martin Luethi
maybe its better to use fread() and fseek() 2000 bytes should be 2000 characters in a textfile g. tinu Wed, 28 Jan 2004 11:20:32 -0500 Benjamin TrÃpanier <[EMAIL PROTECTED]>: Hi, I am using the chunk_split(); function to separe a long long text on differents pages. At this time, I can split th

Re: [PHP] Unix-Apache: running apache as different user

2004-01-28 Thread Martin Luethi
Wed, 28 Jan 2004 16:11:59 +0200 Lorderon <[EMAIL PROTECTED]>: > "Mike Migurski" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >> >I have PHP installed on Apache and Unix with several vhosts so each vhost >> >has its own user account on Unix. Now when accessing a webpage, Apache >>

Re: [PHP] Re: help with mysql

2004-01-27 Thread Martin Luethi
line 16: mysql_connect("tflood", "thomas91"); I think you mean: mysql_connect("localhost", "tflood", "thomas91"); otherwise mysql_connect takes "tflood" as Server and "thomas91" as Username (if so, its better to replace passwords with * before posting) -> http://ch.php.net/mysql_connect after

Re: [PHP] >>Remove Dynamic String between StringA and StringB

2004-01-27 Thread Martin Luethi
$pattern = "/$stringA.*?$stringB/"; .*? -> matches everything between $stringA and $stringB the "?" means: stop matching after the first occurence of $stringB (quantifier minimizer). otherwise ".*" would match everything between the first occurence of $stringA and the last

Re: [PHP] Detect language date(F)

2004-01-26 Thread Martin Luethi
/manual/de/function.setlocale.php g. martin luethi Mon, 26 Jan 2004 14:36:04 -0500 John Taylor-Johnston <[EMAIL PROTECTED]>: I see what you are doing, But don't see where to create fr or fr-ca, for my example? John Martin Luethi wrote: the variable $_SERVER["HTTP_ACCEPT_LANGUAGE"] contains the A

Re: [PHP] Fwd: Re: session start

2004-01-26 Thread Martin Luethi
edit "php.ini" and define a session.save_path e.g. on windows: session.save_path = c:\winnt\temp -> http://ch.php.net/en/session g. martin luethi Loh tuck yong wrote: Hi, i have a problem with the method session_start() this is the warning message generated, and for the php, i hav

Re: [PHP] Detect language date(F)

2004-01-26 Thread Martin Luethi
e current locale-informations -> http://ch2.php.net/manual/en/function.strftime.php sample script: g. martin luethi Mon, 26 Jan 2004 03:29:16 -0500 John Taylor-Johnston <[EMAIL PROTECTED]>: Thanks!! :) Getting tired at this hour. Is there a way to detect the language of the browser and echo the

Re: [PHP] date(F) +1

2004-01-26 Thread Martin Luethi
try g. martin luethi Mon, 26 Jan 2004 03:08:30 -0500 John Taylor-Johnston <[EMAIL PROTECTED]>: Did I miss something at the FAQ? date("F"); gives me this month. Can I get it to give me next month? These combinations don't work: What is the minimum version for this t

Re: [PHP] How do I regain the ability to create databases (phpMyAdmin)?

2004-01-23 Thread Martin Luethi
check if the user you defined in phpMyAdmin/config.inc.php ($cfg['Servers'][$i]['user'] = ???) has the right to create new databases (db: mysql / table: user / field: Create_priv='Y') restart the mysql-server after altering the database mysql g. martin luethi F

RE: [PHP] Segmentation fault problem

2004-01-23 Thread Martin Luethi
(on win32 only): [28 Nov 2002 7:06am EST] [EMAIL PROTECTED] Not really a PHP bug; bug is in the PCRE library itself and is because you are asking it to capture a very large number of individual character matches. Increasing your stack size might help (ulimit). g. martin luethi Thu, 22 Jan 2004 14

Re: [PHP] Regexp help (simple)

2004-01-22 Thread Martin Luethi
ttern.syntax.php) g. martin luethi Thu, 22 Jan 2004 15:43:19 +0100 Victor Spång Arthursson <[EMAIL PROTECTED]>: > > 2004-01-22 kl. 10.40 skrev Dagfinn Reiersøl: > >> I assume you mean: >> >> $test = split_bokid("ääö12345"); > > Yes! > >> I don

Re: [PHP] Segmentation fault problem

2004-01-22 Thread Martin Luethi
output... with this information you can see which php-command causing the seg fault -> http://bugs.php.net/bugs-generating-backtrace.php g. martin luethi > Program received signal SIGSEGV, Segmentation fault. > 0x7bacedcc in zend_parse_arg_impl (arg=0x1003853c0, >