|
-
Feb 1st, 2001, 07:12 PM
#1
Hey, how about next to the link of an attached file, how about the size of the file? Something like...
PHP Code:
<?
$Size = filesize(File_Name);
$Type = "bytes";
if($Size > 1024)
{$Size = $Size / 1024; $Type = "kb";}
if($Size > 1024)
{$Size = $Size / 1024; $Type = "mb";}
$Size = round($Size, 1);
print "$Size $Type";
?>
I know you could have figured it out your self, but i thought if i did it, you would be more inclined to add it to the page.
-
Feb 1st, 2001, 10:37 PM
#2
New Member
the files are actually stored in the mysql database so it might be a bit harder than that.
-
Feb 2nd, 2001, 07:18 PM
#3
Are you of the people working on V-Bulletin, and if so, is that a no?
-
Feb 2nd, 2001, 07:21 PM
#4
New Member
i am not, the people who are are freedie, ed, jimf, stallion and and john.
i was just saying it would be harder to do than suggested not that either it won't be done or that it can't be done.
-
Feb 2nd, 2001, 07:41 PM
#5
the files are not stored in the mysql database..... I am 99% sure of it....
don't think you can put stuff like that into MySQL....
-
Feb 3rd, 2001, 08:14 AM
#6
Fanatic Member
Well you're 99% wrong then 
They are stored in the database.
John
-
Feb 3rd, 2001, 11:00 AM
#7
Ok, that was unexpected..... how do you do it?
-
Feb 3rd, 2001, 11:08 AM
#8
Monday Morning Lunatic
BLOB fields I expect
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Feb 3rd, 2001, 11:19 AM
#9
-
Feb 3rd, 2001, 11:54 AM
#10
Monday Morning Lunatic
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Feb 3rd, 2001, 11:55 AM
#11
Ahhhh, so how do I use these so called "blob fields"?
-
Feb 3rd, 2001, 11:57 AM
#12
Monday Morning Lunatic
Er...John....do you.......erm....uh.....know at all???
*runs away and hides in corner*
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Feb 3rd, 2001, 01:20 PM
#13
Fanatic Member
Just like you would any other text field - you can just put lots of data into it.
John
-
Feb 3rd, 2001, 01:41 PM
#14
So it's.......
CREATE TABLE ......... pagetext MEDIUMTEXT, exething BLOB.......
and how do you insert the data, do you open the file and retreive the contents, then put it in???

I found a little bit of info on mysql.com but it doesn't really say how to use it:
http://www.mysql.com/doc/B/L/BLOB.html
-
Feb 3rd, 2001, 03:08 PM
#15
Addicted Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|