[PHP-DB] upload binary into postgres

2004-02-09 Thread Hiro
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

[PHP-DB] Install Apache/PHP where to find libphp4.so?

2004-02-09 Thread Alain Barthlemy
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

[PHP-DB] field type, field length and field flags not working???

2004-02-09 Thread Daniel Audette
All questions on the bottom Right now I am working along with STYS php in 24hrs(Sams) I am using the following code ?php //connect to the mysql database $link = mysql_connect(localhost, $user, $pass); //make sure it worked if (!$link) die(Couldn't connect to MySQL); //get

[PHP-DB] Re: Grab and update values (Was Re: php-db Digest 8 Feb 2004)

2004-02-09 Thread Neil Smith [MVP, Digital media]
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

[PHP-DB] Question

2004-02-09 Thread Remember14a
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

[PHP-DB] SMTP authentication

2004-02-09 Thread Marco A. Ortiz
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

Re: [PHP-DB] Question

2004-02-09 Thread Fedde van Feggelen
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 /table; echo input type='submit' value='See

Re: [PHP-DB] SMTP authentication

2004-02-09 Thread Fedde van Feggelen
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

Re: [PHP-DB] Question

2004-02-09 Thread John W. Holmes
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. ?php

[PHP-DB] binary data into postgresql in bytea

2004-02-09 Thread Hiro
HI! I wrote the code how to upload and insert binary data into postgresql. ?php $original_tmp = $_FILES['UploadedFile']['tmp_name']; $original_name = $_FILES['UploadedFile']['name']; $original_size = $_FILES['UploadedFile']['size']; $original_type = $_FILES['UploadedFile']['type'];

[PHP-DB] Re: SMTP authentication

2004-02-09 Thread Manuel Lemos
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 not

[PHP-DB] Re: php to mysql client problem.

2004-02-09 Thread michael
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

[PHP-DB] Mysql and Kerberos

2004-02-09 Thread Ricardo Oliveira
Hi all, Does anyone knows a way to autheticate mysql database usersusing 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

[PHP-DB] PHP_SELF and parse error

2004-02-09 Thread Remember14a
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

[PHP-DB] Re: php5/MySQL 4.1.1 connection error

2004-02-09 Thread michael
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

Re: [PHP-DB] PHP_SELF and parse error

2004-02-09 Thread ppi
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:

Re: [PHP-DB] PHP_SELF and parse error

2004-02-09 Thread Chris Wright
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 parse

[PHP-DB] Cookies ?

2004-02-09 Thread Omelin Morelos
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:

Re: [PHP-DB] Cookies ?

2004-02-09 Thread Chris Wright
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 javascript ?

[PHP-DB] Cookies ?

2004-02-09 Thread Omelin Morelos
-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;

RE: [PHP-DB] Cookies ?

2004-02-09 Thread Omelin Morelos
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

RE: [PHP-DB] Cookies ?

2004-02-09 Thread Miles Thompson
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;

RE: [PHP-DB] Cookies ?

2004-02-09 Thread Omelin Morelos
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

[PHP-DB] msql perfomance: fast through mysql, slow through php

2004-02-09 Thread jde
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