Re: PHP code to unescape data retrieved from a bytea column

From: "Alexey V(dot) Borzov" <borz_off(at)rdw(dot)ru>
To: huongch(at)bigfoot(dot)com ((Flancer))
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: PHP code to unescape data retrieved from a bytea column
Date: 2001-10-24 19:44:48
Message-ID: 1688164379.20011024234448@rdw.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hello Flancer,

Wednesday, October 24, 2001, 1:18:30 PM, you wrote:

F> If anyone out there can improve this code or already has a better
F> code.. please let me know ;).
Well, I have better code. Sorta. ;]
http://www.php.net/manual/en/function.stripcslashes.php

Of course, you'd have to pass the value thru stripslashes() first
if you have "black magic quotes" enabled.

--
Yours, Alexey V. Borzov, webmaster of RDW.ru

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Peter Pilsl 2001-10-24 20:36:34 variables in functions ..
Previous Message Tom Lane 2001-10-24 19:43:07 Re: Can not input large text data