Hi!
I would like to upload binary data into the PorstgreSQL.
Does anyone know how to upload the code? I do not want to use
OID. I want to insert binary direct into table.
I create table field bytea. Is it correct?
Pelase teach me how!
regards,
hiri
--
PHP Database Mailing List (http://www.
Hi,
The problem is the following:
Computer 1:
Apache-2.0.48: ./configure --prefix=/www --enable-so --enable-modules=all
--enable-mods-shared=most
PHP-4.3.4: ./configure --with-apx2=/www/bin/apxs
--with-config-file-paths=/www/conf --enable-sigchild
libphp4.so is in /www/modules. I copied it fr
All questions on the bottom
Right now I am working along with STYS php in 24hrs(Sams)
I am using the following code
$db_rows[0]\n";
//check to see if you are able to select that database
if([EMAIL PROTECTED]($db_rows[0], $link))
{
print "couldn't connect -- ".mysql_error()
It's simple - no need for IF statements, as the SQL Select syntax does that
for you !
Try
UPDATE tablename
SET value2=value1,
value1=0
WHERE value1 > 3
You might also want to look at the REPLACE INTO syntax in the manual too,
for completeness.
Be aware though that this won't work i
Dear friends,
I was trying to make online quiz system using php and mysql.
When I added code to score the quiz, it gives me parse error at line 131. My
total code line isn't more than 120.
Any comments,or any other code to score the quiz, please
--
Good afternoon dear friends:
I want to ask you, how I must setup my PHP.INI file, to send e-mail from my
Web Site if my SMTP server requires authentication. Otherwise, I want to
know if exits some kind of public SMTP sever that I could use.
Thank you very much.
mArK
Heyaz,
You've got some unclosed statements. Try using tabs for each statement to
make it easier on yourself
like:
if ($iusetabs == true){
echo " like this ";
}
And in your code.. things go wrong here:
==
echo "";
echo "";
echo "";
} elseif ($su
I want to ask you, how I must setup my PHP.INI file, to send e-mail from my
Web Site if my SMTP server requires authentication. Otherwise, I want to
know if exits some kind of "public" SMTP sever that I could use.
I think you don't need to adjust your php.ini for that, just use the right
params
From: <[EMAIL PROTECTED]>
> Parse error: parse error, unexpected $end in C:\webroot\display.php on
line
> 131
I'm not going to go through all of your code, but this error means you
missed a quote or bracket somewhere, i.e. you didn't supply a closing
bracket for an IF() condition.
---John Holm
HI!
I wrote the code how to upload and insert binary data into postgresql.
\n");
$fileHandle = fopen($original_tmp, "r");
$binaryContent = fread($fileHandle, $original_size);
$binaryContent = pg_escape_bytea($binaryContent);
fclose($fileHandle);
$sql_insert = "INSERT INTO objects(b_col,
Hello,
On 02/09/2004 11:40 AM, Marco A. Ortiz wrote:
I want to ask you, how I must setup my PHP.INI file, to send e-mail from my
Web Site if my SMTP server requires authentication. Otherwise, I want to
know if exits some kind of “public” SMTP sever that I could use.
No, the mail() function does no
I've since used different combinations and discovered that I can access
the database as long As I don't use Passwords...
I guess it is the Webserver and not the Sql server causing the problem...
Michael G. Tracey wrote:
This is my setup: Not really worried about security.
W2kPro w\sp4
Mysql 5.O
Hi all,
Does anyone knows a way to autheticate mysql database users using kerberos? I'd like to know if I can use Kerberos to validate the authentication data in the mysql_connect command.
Thanks for all help,
Ricardo Oliveira
Dear friends,
I tried to modify submit if elseif statement. That didn't work.I have pasted
code of form and output with error.
Any comments on erros, please.
Asif
--
---
Notice: Undefined varia
I have done the same thing... but still get
"Could not connect: Client does not support authentication protocol
requested by server; consider upgrading MySQL client"
So beside copying the libmySQL.dll's to the System32 folder and the
settings in the .ini... Should'nt there be more files to loca
Maybe you have register globals turned off?
Try this: $_SERVER["PHP_SELF"] instead of $PHP_SELF.
On Mon, Feb 09, 2004 at 07:49:17PM -0500, [EMAIL PROTECTED] wrote:
> From: [EMAIL PROTECTED]
> Date: Mon, 9 Feb 2004 19:49:17 EST
> To: [EMAIL PROTECTED]
> X-Mailer: 9.0 for Windows sub 5003
> Subject
Try using $_SERVER["PHP_SELF"] instead of $PHP_SELF.
I believe $PHP_SELF is only set on servers with register variables turned
on.
ChrisPW
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 10, 2004 12:49 AM
Subject: [PHP-DB] PHP_SELF and par
Friends
Is there a way to read a cookie's with php , that were generated with
javascript ?
I am now usign :
$xidp=$_COOKIE;
print "Xidp $xidp";
Thank you for your help in advanced.
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/uns
Try using $_COOKIE['cookie_name']
- Original Message -
From: "Omelin Morelos" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 10, 2004 12:55 AM
Subject: [PHP-DB] Cookies ?
> Friends
>
> Is there a way to read a cookie's with php , that were generated with
> javascr
-Mensaje original-
De: Omelin Morelos [mailto:[EMAIL PROTECTED]
Enviado el: Monday, February 09, 2004 4:56 PM
Para: [EMAIL PROTECTED]
Asunto: Cookies ?
Friends
Is there a way to read a cookie's with php , that were generated with
javascript ?
I am now usign :
$xidp=$_COOKIE;
I have already tried it , It's not working.
Thanks
-Mensaje original-
De: Chris Wright [mailto:[EMAIL PROTECTED]
Enviado el: Monday, February 09, 2004 5:09 PM
Para: Omelin Morelos; [EMAIL PROTECTED]
Asunto: Re: [PHP-DB] Cookies ?
Try using $_COOKIE['cookie_name']
- Original Messag
Did you refresh the page after setting the cookie?
mt
At 05:00 PM 2/9/2004 -0800, Omelin Morelos wrote:
I have already tried it , It's not working.
Thanks
-Mensaje original-
De: Chris Wright [mailto:[EMAIL PROTECTED]
Enviado el: Monday, February 09, 2004 5:09 PM
Para: Omelin Morelos; [EMA
yes , i tried accesing the cookie from an other page.
thank you
-Mensaje original-
De: Miles Thompson [mailto:[EMAIL PROTECTED]
Enviado el: Monday, February 09, 2004 5:37 PM
Para: [EMAIL PROTECTED]
Asunto: RE: [PHP-DB] Cookies ?
Did you refresh the page after setting the cookie?
mt
At 0
Greetings,
I have search the archives over the last two years and have not found
any help for this question.
The basic setup: An apache/php server exists on the west coast of the
US, and a linux/mysql server on the east coast.
My PHP snippet looks like this:
$result = mysql_query("select acol
24 matches
Mail list logo