[PHP] md5() and string-length?

2004-01-09 Thread Michael Müller
Hi,
is anybody here who knows the max_length of a string which is encoded by
md5()?

thx, Michael
Berlin, Germany

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] md5() and string-length?

2004-01-09 Thread Michael Müller
mhm, I think there was a missunderstanding ;)
I want to know, how long the input-string could be (so that the encoded
strings, that you get, are unique)

Michael


[PHP] function: global, static and...?

2003-07-25 Thread Michael Müller
Hi,
I was just thinking about functions, and I believe there were more than two
keywords like global and static, which could be used in functions...
does anybody know them and their functions?

thx for help
Michi



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] File upload

2003-07-25 Thread Michael Müller
i think ['name'] isn't empty, it contains the real name whereas tmp_name
contains the full path to the temp_file on the server

maybe you should try $HTTP_POST_FILES?



Jonas Thorell [EMAIL PROTECTED] schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
 The upload_single.php script is just this:
 ?php
 $ime = $_FILES[thefile][name];
  print ($ime);
 ?

 I just want for begining to print the name of file.

 But It doesn't work.

 Do you get anything if you change name to
 tmp_name to beging with? If I'm not mistaken
 ,name isn't filled in with anything unless
 You've used move_uploaded_file() first.

 Also check if uploads are enabled in php.ini.
 Oh, and if you have permissions to write in
 The tmp directory as well.

 /Jonas

 ---
 Outgoing mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.501 / Virus Database: 299 - Release Date: 2003-07-14





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] popping up download dialog box

2003-07-21 Thread Michael Müller
try this:
?php
function download($file , $name) {
$size = filesize($file);
header(Content-type: application/octet-stream);
header(Content-disposition: attachment; filename=.$name);
header(Content-Length: .$size);
header(Pragma: no-cache);
header(Expires: 0);
readfile($file);
}

download(file_on_server.dat,download_as_.dat);
?




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] constants

2003-07-21 Thread Michael Müller
hi,
why should I use constants?
thx for help

Michael



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php