Re: [PHP-DB] MySQL performance and crash

2004-10-02 Thread Mikhail U. Petrov
MySQL is stable enough. May be it'll be better to rewrite your code or to add some indexes to Users? I can help you with ideas of refactoring. Murat BIYIKLI wrote: I use a Linux web server with PHP-MySQL. The hardware is good enough with 2GHz CPU and 1 GB RAM. and 7200 Cycle/min Serial ATA IDE

Re: [PHP-DB] which DB to use?

2004-10-02 Thread M Saleh EG
I'd say never be subjective n say i'm not a fan of MS. Choose what works the best for you. Check ur budget... ur time ur method of programming and ur DB knowlede. And ofcorse the size of your project. For website(not web applications) i'd prefer mySQL For webapps I'd preffer MSSQL. For intranet

[PHP-DB] What is PHPBB?

2004-10-02 Thread Lic. Daniel Alfredo Betancourt Reboso
Hi folks!!!: Somebody wrote: for example, the phpBB web app, multiple people log into the bulletin board. but the account that is used to connect to the MYSQL (in this case) backend is a single account that is created when you first install phpBB. phpBB then uses this account to do all the

RE: [PHP-DB] What is PHPBB?

2004-10-02 Thread Mike
Google is your friend: http://www.google.com/search?hl=enie=UTF-8q=PHPBBbtnG=Google+Search -Original Message- From: Lic. Daniel Alfredo Betancourt Reboso [mailto:[EMAIL PROTECTED] Sent: Saturday, October 02, 2004 9:22 AM To: '[PHP-DB] Mailing List' Subject: [PHP-DB] What is PHPBB? Hi

[PHP-DB] newlines to BR tag

2004-10-02 Thread Murat BIYIKLI
if there are unknown number of newlines repeating like (\r\n\r\n\r\n) in a post var and if I want to change them to a SINGLE newline, what kind of an iteration should be used? The message may like below in DB and as you see the \r\n newline codes may repeat severaltimes and should be changed to

RE: [PHP-DB] newlines to BR tag

2004-10-02 Thread Tom Crimmins
Murat BIYIKLI wrote: if there are unknown number of newlines repeating like (\r\n\r\n\r\n) in a post var and if I want to change them to a SINGLE newline, what kind of an iteration should be used? The message may like below in DB and as you see the \r\n newline codes may repeat severaltimes

[PHP-DB] Re: Passing url parameters

2004-10-02 Thread Amit Arora
You can set this to anything you want. http://www.url.com?new_field=value And you can get the value using the $_GET['new_field'] Amit www.digitalamit.com Stuart Felenstein wrote: I swear this is not a repeat of earlier post :) When passing variables via URL, my understanding is that the value

[PHP-DB] Re: newlines to BR tag

2004-10-02 Thread Amit Arora
You can use something like this .. $new_str = preg_replace('/(\r\n){2,20}/', \r\n, $old_str); Amit www.digitalamit.com Murat Biyikli wrote: if there are unknown number of newlines repeating like (\r\n\r\n\r\n) in a post var and if I want to change them to a SINGLE newline, what kind of an

[PHP-DB] Re: What is PHPBB?

2004-10-02 Thread Amit Arora
PHPBB is a bulletin board written in PHP. It very good and completely free. http://www.phpbb.com Amit www.digitalamit.com Lic. Daniel Alfredo Betancourt Reboso wrote: Hi folks!!!: Somebody wrote: for example, the phpBB web app, multiple people log into the bulletin board. but the account that

[PHP-DB] Re: String handling

2004-10-02 Thread Amit Arora
Try using the intval() function intval('1000'); // will result in 1000 intval('1000ABC'); // will result in 1000 Amit www.digitalamit.com Darryl wrote: Hay, Is there a way to make a string into an integer? I have a value coming from a textbox and I want to check if the amount in it is

Re: [PHP-DB] Re: Convert plain text to HTML tagged text

2004-10-02 Thread Bastien Koert
just run them in order $test=str_replace(...); $test=str_replace(...); $test=str_replace(...); $test=str_replace(...); bastien From: GH [EMAIL PROTECTED] Reply-To: GH [EMAIL PROTECTED] To: Felipe Alcacibar [EMAIL PROTECTED] CC: [EMAIL PROTECTED] Subject: Re: [PHP-DB] Re: Convert plain text to

[PHP-DB] Re: Office document upload to website (and inserting in MySQL if possible)

2004-10-02 Thread Phill
Pugi! [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, I would like to upload office-document (doc, xls, ...) using a form to a website (apache, php, mysql) in a specific directory and if possible insert it into a table (MySQL-db). Is this possible. If yes, how ? You don't

RE: [PHP-DB] Re: Office document upload to website (and inserting in MySQL if possible)

2004-10-02 Thread Bastien Koert
here is some code i wrote for a guy. ?php session_start(); // redefine the user error constants - PHP 4 only define(FATAL, E_USER_ERROR); define(ERROR, E_USER_WARNING); define(WARNING, E_USER_NOTICE); // set the error reporting level for this script error_reporting(FATAL); //Declarations $myfile