[PHP-DB] Re: Applications using multiple databases

2003-11-14 Thread Kim Steinhaug
Hello! In my opinion what your conclusion is sounds correct. I would not have a system that creates a new database for each and every client. Why? If the sollution is hosted on a random ISP, most of theese does not allow the creation of new databases. However, surtain ISP have packages where

Re: [PHP-DB] using code for multiple sites

2003-11-14 Thread Kim Steinhaug
Well, on the webservers I am using this would mean that the current user has read access to this folder aswell. E.g. /home/users/james /home/users/matt /home/users/patrick /home/users/shared Im used to that *james* only have read access in .../james/* Matt has only in .../matt/* and such, which

[PHP-DB] - ereg_replace

2003-11-14 Thread
Hello list I'm trying to replace the string say a href=http://www.mysite.gr; with a href=http://www.mysite.gr target=_blank with no luck I use the code: ereg_replace(^a href=\([:alnum:])\$, a href=\\\1\ target=\_blank\, $string) I echo the result but nothing changing. What Im doing

Re: [PHP-DB] - ereg_replace

2003-11-14 Thread David T-G
Hi! ...and then ÍÉÊÏÓ ÃÁÔÓÇÓ said... % ... % ereg_replace(^a href=\([:alnum:])\$, a href=\\\1\ % target=\_blank\, $string) % % I echo the result but nothing changing. % What Im doing wrong? Is your string really the only thing on a line, or could it be anywhere in the input? The ^

Re: [PHP-DB] - ereg_replace

2003-11-14 Thread
Thank you for reply, but the a is not the only tag in my string. ... % ereg_replace(^a href=\([:alnum:])\$, a href=\\\1\ % target=\_blank\, $string) % % I echo the result but nothing changing. % What Im doing wrong? Is your string really the only thing on a line, or could it be anywhere in

Re: [PHP-DB] - ereg_replace

2003-11-14 Thread David T-G
Hi again! ...and then ÍÉÊÏÓ ÃÁÔÓÇÓ said... % % Thank you for reply, but the a is not the only tag in my string. You're quite welcome, and now we definitely know that ^ and $ are not what you need. HTH HAND :-D -- David T-G * There is too much animal courage in (play)

Re: [PHP-DB] - ereg_replace

2003-11-14 Thread John W. Holmes
wrote: I'm trying to replace the string say a href=http://www.mysite.gr; with a href=http://www.mysite.gr target=_blank with no luck I use the code: ereg_replace(^a href=\([:alnum:])\$, a href=\\\1\ target=\_blank\, $string) Since it looks like you're changing all of the links, how about a

Re: [PHP-DB] - ereg_replace -SOLVED

2003-11-14 Thread
Thank you all for the replies. I solve it with the following code: eregi_replace(a href=\(.+)\, a href=\\\1\ target=\_blank\ class=\down_txt\, $body); - Original Message - From: John W. Holmes [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: PHP-mailist [EMAIL PROTECTED] Sent: Friday,

Re: [PHP-DB] - ereg_replace -SOLVED

2003-11-14 Thread CPT John W. Holmes
From: [EMAIL PROTECTED] eregi_replace(a href=\(.+)\, a href=\\\1\ target=\_blank\ class=\down_txt\, $body); How is that any different than just doing a str_replace() on a, though? The str_replace() is going to be much faster than the eregi_replace() function and href doesn't _have_ to be the

[PHP-DB] Mulitpart form posts and mysql blobs

2003-11-14 Thread John Ryan
How are files encoded when theyre sent in mulitpart forms??? Is it the same as blob fields in mySQL databased when you use the LOAD_FILE() command?? If not, is it easy to convert from one to the other?? At the moment, Im taking the blob from mySQL and writing it to a file and then uploading that

[PHP-DB] Re: [PHP] Mulitpart form posts and mysql blobs

2003-11-14 Thread John W. Holmes
John Ryan wrote: How are files encoded when theyre sent in mulitpart forms??? Is it the same as blob fields in mySQL databased when you use the LOAD_FILE() command?? If not, is it easy to convert from one to the other?? At the moment, Im taking the blob from mySQL and writing it to a file and then

Re: [PHP-DB] Re: [PHP] Mulitpart form posts and mysql blobs

2003-11-14 Thread John Ryan
Sorry, I should have said. Im trying to send this file to an external multipart form script which converts the file to the desired format. Im using cURL to do this. cURL can send files when given the filename, so I have to write the filename from the database and then give cURL the path. But thats

[PHP-DB] Re: [PHP] Re: [PHP-DB] Re: [PHP] Mulitpart form posts and mysql blobs

2003-11-14 Thread John W. Holmes
John Ryan wrote: cURL can send files when given the filename, so I have to write the filename from the database and then give cURL the path. Kind of begs the question of why you're storing files in the database in the first place... -- ---John Holmes... Amazon Wishlist: