PostgreSQL and BLOBS w/ PHP

admin

Administrator
Staff member
I'm storing encrypted info as a blob in postgres. When extract the info(decrypt it) I need to exec() it. My script:
exec("/path/to/program url 443 \"string1=$string1&string2=$string2\"",$array,$status);
Ok, problem is, the blob does not return the decrypted info as a string. And it's throwing an error on the exec() statement. What gives? I can't typcast() the $string.
I've tried all kinds of functions, nothing works. If I do something ugly like:
$string1="\"$string1\"";
it works. Somethings wierd.
 
Back
Top