Search found 7 matches

by nike
Sat Nov 23, 2002 5:46 am
Forum: PHP & MySQL Security
Topic: base64_encode() ????
Replies: 7
Views: 5783

Hello, Will! For the security purpose you can use Encode Function ENCODE(str,pass_str) Encrypt str using pass_str as the password. To decrypt the result, use DECODE(). The results is a binary string of the same length as string. If you want to save it in a column, use a BLOB column type. None can se...
by nike
Sat Nov 23, 2002 3:54 am
Forum: PHP coding => General
Topic: some charsets questions
Replies: 1
Views: 1006

Hello! Try to use this: iconv_set_encoding("internal_encoding", "ISO-8859-1"); iconv_set_encoding("output_encoding", "UTF-8"); or somethig like this. I'm from Bulgaria too ----------------------------------------- Bereza Nikita Rapid Internet D...
by nike
Sat Nov 23, 2002 3:49 am
Forum: PHP coding => General
Topic: Age calculation
Replies: 0
Views: 873

Hello! You can use this code: $str = $row[bday].'/'.$row[bmonth].'/'.$row[byear]; $time=time(); if (($timestamp = strtotime($str)) === -1) { echo "The string ($str) is bogus"; } else { $life_in_seconds=$time-$timestamp; $life_in_minute...
by nike
Sat Nov 23, 2002 3:02 am
Forum: PHP coding => General
Topic: Link Problem
Replies: 1
Views: 1281

Hello! This is absolotely ok to use Includes. I think this is a best way. But (to my mind) you can change your script to look this way: ...... <?php $id=$_GET['id']; if($id=='home') include 'home.php'; if($id=='story') include 'story.php'; if($id=='characters') include 'chara...
by nike
Sat Oct 12, 2002 3:46 am
Forum: PHP General
Topic: Cant get past this little part
Replies: 1
Views: 1408

Re: Cant get past this little part

Hello, whitchman! There is very useful Utility WinMySQLAdmin which is located in /mysql/bin directory. With it you can view status of your MySQL Server and set or change your username and password. To install phpmyadmin you need to change it's configuration file. there you need to set up your login/...
by nike
Mon Sep 16, 2002 6:16 am
Forum: PHP coding => General
Topic: Can PHP be compiled?
Replies: 3
Views: 1843

Hi! NO, PHP code cannot be compiled, because it's scripting language, it is running on the fly. --------------------------------------------------------------- Bereza Nikita Rapid Internet Development Department E-mail: nike@alarit.com Alar Information Technologies, URL: http://www.alarit.com
by nike
Fri Sep 06, 2002 8:05 am
Forum: PHP coding => General
Topic: Session Timeouts
Replies: 2
Views: 1541

Hello Ruckus!

you can use next code to set up cookie lifetime
SetCookie ('ftype','TYPE1',time()+$COOKIE_LIFE);
where $COOKIE_LIFE is in seconds.

Best regards!