RE: [PHP-DB] Postgres and gzcompress

2006-09-06 Thread Nathan Harmon
ssing it. on the way out, uncompress, base-64-decode the value and see what you get Bastien From: "Nathan Harmon" <[EMAIL PROTECTED]> To: [email protected] Subject: [PHP-DB] Postgres and gzcompress Date: Wed, 06 Sep 2006 15:39:37 -0700 Hi, I would like to store a compress

[PHP-DB] Postgres and gzcompress

2006-09-06 Thread Nathan Harmon
Hi, I would like to store a compressed string (XML) in my PostgreSQL table. So far, I have been unsuccessful in uncompressing the data that I insert. For example: echo gzuncompress(gzcompress('this is a test')); works fine. But when i store the gzcompressed data in the table, the data that

Re: [PHP-DB] preg_replace help!

2006-05-04 Thread Nathan Heaps
thanks, its fixed now!!! - Original Message - From: Martin Alterisio To: Nathan Heaps Cc: Liber ; John Hicks ; [email protected] Sent: Thursday, May 04, 2006 11:34 AM Subject: Re: [PHP-DB] preg_replace help! 2006/5/4, Martin Alterisio <[EMAIL PROTECTED]>: 2006/5/3, Nathan

Re: [PHP-DB] preg_replace help!

2006-05-03 Thread Nathan Heaps
Ok, scratch that, new problem. what can I replace (.*?) with in order for php to recognise a multi-line quote/bold/italic/code/whatever? - Original Message - From: "Liber" <[EMAIL PROTECTED]> To: "'Nathan Heaps'" <[EMAIL PROTECTED]>; &quo

Re: [PHP-DB] preg_replace help!

2006-05-03 Thread Nathan Heaps
nevermind, I got it fixed. Just had to rearrange it. it was sensing the i in img as italic so if you put it first it would work. - Original Message - From: "Liber" <[EMAIL PROTECTED]> To: "'Nathan Heaps'" <[EMAIL PROTECTED]>; "'John Hic

Re: [PHP-DB] preg_replace help!

2006-05-03 Thread Nathan Heaps
'', // ''); // '>', // ' ', // chr(161), // chr(162), // chr(163), // chr(169), // 'chr(\1)'); return preg_replace($searc

[PHP-DB] preg_replace help!

2006-05-03 Thread Nathan Heaps
Hey, I need some help. I am trying to parse a forum post using php, but it parses it everytime it sees the letter, not the thing in quotes. Any help? function bbcodereplace($subject){ // $document should contain an HTML document. // This will remove HTML tags, javascript sections // and white spa

[PHP-DB] preg_replace help!

2006-05-03 Thread Nathan Heaps
> Hey, I need some help. > I am trying to parse a forum post using php, but it parses it everytime it > sees the letter, not the thing in quotes. Any help? > > function bbcodereplace($subject){ > // $document should contain an HTML document. > // This will remove HTML tags, javascript sections

[PHP-DB] Adding Up MySQL Results

2005-01-15 Thread Nathan Mealey
29.99 I want to display the sum of the values in the first column (450.00+29.99), but I cannot figure out how to do this! Can someone clue me in? Thanks a million, Nathan -- Nathan Mealey Website Manager & Administrative Director Cycle-Smart, Inc. P.O. Box 1482 Northampton, MA 010

[PHP-DB] last insert ID

2005-01-02 Thread Nathan Mealey
when I used pg_last_oid() I got some crazy number that was definitely not the last primary key ID. Thanks, Nathan -- Nathan Mealey Director of Operations Cycle-Smart, Inc. P.O. Box 1482 Northampton, MA 01061-1482 [EMAIL PROTECTED] (413) 210-7984 (512) 681-7043 Fax -- PHP Database Mailing List

[PHP-DB] Redhat-MySQL Issues

2004-12-20 Thread Nathan Mealey
following error message: Fatal error: Call to undefined function: mysql_connect() All I changed in the PHP.ini was the include path. What could have happened? I am so in the dark on how to fix this! Thanks, Nathan -- Nathan Mealey Director of Operations Cycle-Smart, Inc. P.O. Box 1482 Northampton, MA

[PHP-DB] FPDF Help

2004-04-15 Thread Nathan Mealey
n at 1.5 cm from bottom $this->SetY(-15); //Arial italic 8 $this->SetFont('Arial','I',8); //Page number $this->Cell(0,10,'Page '.$this->PageNo().'/{nb}',0,0,'C'); } $pdf=new PDF(); $pdf->AliasNbPages(); $pdf->AddPa

[PHP-DB] PDFLib

2004-04-05 Thread Nathan Mealey
viewable page (as you can imagine). If anyone has any ideas or experience with this, that'd be super. -- Nathan Mealey Director of Operations Cycle-Smart, Inc. P.O. Box 1482 Northampton, MA 01061-1482 [EMAIL PROTECTED] (413) 587-3133 (413) 210-7984 Mobile (512) 681-7043 Fax -- PHP Database Ma

[PHP-DB] PHP Install conflicts w/ MySQL

2003-06-16 Thread Nathan
Hello, I just installed PHP 4.3.2 on my machine running redhat 7.2. The install seems like it went well. However, I've been running MySQL (Ver 11.18) just fine until I installed PHP and now it won't start at all. When I try to start the mysql daemon from the command line, I just get... # ./

[PHP-DB] Mass Mailing

2001-12-03 Thread Nathan Cavicchi
I started writing a set of scripts that would send out mutiple emails to a list of customers. I then realized that most likely this program, and/or snipits had most likely already been written. If so, can some one point me in the right direction and save me 3 or 4 days? Thanks Nathan

[PHP-DB] templates page

2001-10-01 Thread Nathan
ables only pretty much, does anyone have any good suggestions about this, or know if any good tutorials or walk throughs about this subject. Thanks Nathan -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

[PHP-DB] fopen function

2001-08-09 Thread Nathan Cavicchi
any ideas on how to accomplish this. I couldnt really find anything at php.net. Nathan -- PHP Database 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]

Re: [PHP-DB] Problem width SQL on PHP4

2001-01-22 Thread Nathan Crause
Aside from enabling PHP_MSSQL70.DLL extensions in the PHP.INI file, you need to HAVE this file. If you installed PHP from the "Windows Install", then you probably don't have this file. You need to download the PHP ZIP file, which DOES contain the extension DLL's. ""Sebastian A. Davicco"" <[EMAIL

Re: [PHP-DB] php MSSQL problem

2001-01-22 Thread Nathan Crause
What is the problem you're having? Are you trying to change setting in the PHP.INI file and they are not reflecting in the scripts or is PHP returning some other sort of error saying it could not locate PHP.INI? ""Robert"" <[EMAIL PROTECTED]> wrote in message 000c01c080c1$960de3b0$d5245ed1@tech2

Re: [PHP-DB] where to get php-mssql70.dll

2001-01-22 Thread Nathan Crause
Assumably you downloaded a "Windows Install" executable to install PHP - I found that this distribution does not have that file (I had the same problem as you're having when I first installed PHP4). Once you've installed PHP using that installation, you still need to download the Windows ZIP file.