[PHP-DB] [PHP] PHP and MYSQL Security`

2002-01-27 Thread Duky Yuen

How can I secure my username and password? In 1 of my files, it contains
the following:

$conn = mysql_connect( "12.34.56.78", "username", "password");
mysql_select_db("database",$conn);

What should I do, so people can't get this information?

Duky


-- 
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]




[PHP-DB] [PHP] File uploading like hotmail

2002-01-27 Thread Duky Yuen

I want to make something like when you are attaching something to an
email in hotmail. I want to make something that searches your own
computer for files on your harddisk that you want to upload to the
server.

But I don't know if this is possible. If this is possible.Can somebody
tell me which function I should use? Or if someone have an example...
please...

Duky


-- 
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]




[PHP-DB] [PHP]please help

2002-01-27 Thread Duky Yuen

I want to make something like when you are attaching something to an
email in hotmail. I want to make something that searches your own
computer for files on your harddisk that you want to upload to the
server.

But I don't know if this is possible. If this is possible.Can somebody
tell me which function I should use? Or if someone have an example...
please...

Duky


-- 
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] PHP how to compare?

2001-03-14 Thread Duky

Hmm.. maybe I wasn't clear enough... what I want is to check is WHEN the
two passwords aren't the same, then it should echo "password doesn't
match!". So when NOT the same, then echo. What to use for the NOT??
should it then be something like this with the exlamationmark?

if ($PASS !== $PASSNOG) {
   echo "password doesn't match! $back";
   exit;
   }


Duky
   

Duky wrote:
> 
> Can somebody tell me what the proper statement is for this? I want two
> variables to match with eachother but this doesn't seems to work. Help
> please? THNX
> 
>if ($PASS != $PASSNOG) {
>   echo "password doesn't match! $back";
>   exit;
>   }
> 
> Duky
> 
> --
> 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]

-- 
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] PHP how to compare?

2001-03-14 Thread Duky

The variables are the right ones...

"Fabio Ottolini (EDB)" wrote:
> 
> Duky,
> 
> Did you check if you have named correctly your variables in your form? Your 
>statement is more than corret. Try "echoing" your variables before making the 
>comparision to verify if they are set. If not probabily you have a spelling problem 
>on the form variables.
> 
> BR,
> 
> Fábio Ottolini
> 
> P.S.: The correct list for these issues is [EMAIL PROTECTED]
> 
> > -Original Message-
> > From: Duky [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, March 14, 2001 4:34 PM
> > To: [EMAIL PROTECTED]
> > Subject: [PHP-DB] PHP how to compare?
> >
> >
> > Can somebody tell me what the proper statement is for this? I want two
> > variables to match with eachother but this doesn't seems to work. Help
> > please? THNX
> >
> >if ($PASS != $PASSNOG) {
> >   echo "password doesn't match! $back";
> >   exit;
> >   }
> >
> > Duky
> >
> > --
> > 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]
> >

-- 
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] PHP how to compare?

2001-03-14 Thread Duky

Ànd what statement for not matching? this maybe?

if ($PASS !== $PASSNOG) {
# do whatever.
}

Duky

Duky wrote:
> 
> Can somebody tell me what the proper statement is for this? I want two
> variables to match with eachother but this doesn't seems to work. Help
> please? THNX
> 
>if ($PASS != $PASSNOG) {
>   echo "password doesn't match! $back";
>   exit;
>   }
> 
> Duky
> 
> --
> 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]

-- 
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]




[PHP-DB] PHP how to compare?

2001-03-14 Thread Duky

Can somebody tell me what the proper statement is for this? I want two
variables to match with eachother but this doesn't seems to work. Help
please? THNX

   if ($PASS != $PASSNOG) {
  echo "password doesn't match! $back";
  exit;
  }

Duky

-- 
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]




[PHP-DB] Interbase INSERTION error?

2001-03-13 Thread Duky

hey all.. 

I really don't get why I am getting this error.. Can somebody help me
out? what does a parse error mean?

Error:
Parse error: parse error in /home/httpd/html/test/php-test/CVzenden.php
on line 35

CVzenden.php:

$conn=ibase_connect("localhost:/home/httpd/html/test/php-test/CV.gdb",
"SYSDBA", "masterkey"); 
   if (!$conn) { 
  echo "Accesso Denied! $back";
  exit; 
  } 

$query="insert into PERSOON values
('0','$TITELVOOR','$ROEPNAAM','$VOORNAAM','$INITIALEN','$TUSSENVOEG','$ACHTERNAAM','$TITELACHTER','$GESLACHT','$BURGSTAAT','$GEBOORTEDATUM','$GEBOORTEPLAATS','$NATIONALITEIT','$STRAAT','$HUISNR','$POSTCODE','$PLAATSNAAM','$PROVINCIE','$LAND','$TELPRIVE','$TELWERK','$MOBIEL','$FAX','$BESCHIKBAAR','$EMAIL','NOW','NOW');";
$result=ibase_query($conn,$query); 
  if (!$result) {
 echo "Error. Can't insert the record with the query: $query!
$back"; 
 exit; 
 }
echo "Record saved: $name $back";
ibase_close($conn); ?>

-- 
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] Interbase + PHP

2001-02-25 Thread Duky

my own OS is win98.

Duky wrote:
> 
> I am using a Unix/Linux server. How can I recompile my php to use
> interbase?? Where can I find that, to recompile? what do I need to
> recompile and what do I have to include into that file? I am new to
> this. so if somebody can help me out.. really thanks.
> 
> Duky
> 
> --
> 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]

-- 
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]




[PHP-DB] Interbase + PHP

2001-02-25 Thread Duky

I am using a Unix/Linux server. How can I recompile my php to use
interbase?? Where can I find that, to recompile? what do I need to
recompile and what do I have to include into that file? I am new to
this. so if somebody can help me out.. really thanks.

Duky

-- 
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]




[PHP-DB] PHP + interbase connection problem

2001-02-23 Thread Duky

Can somebody help me out? I have some problems with connecting my gdb
file with PHP. it is giving me this error: 

Fatal error: Call to undefined function: () in
/home/sites/site156/web/columbus/ibconnect.php on line 9

What can I do now?

Thnx,

Duky

-- 
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]




[PHP-DB] Interbase connection problem

2001-02-23 Thread Duky

Can somebody help me out? I have some problems with connecting my gdb
file with PHP. it is giving me this error: 

Fatal error: Call to undefined function: () in
/home/sites/site156/web/columbus/ibconnect.php on line 9

What can I do now?

Thnx,

Duky

-- 
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]