|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
how can i find out the size of a table
Hi all
i am working on a content managment system using PHP and MySQL and i would like to put a little summary of the status of the database on the log on screen. I have been going through PHP.net looking for a function that will return the size of various tables in bytes. In a very similar way to phpMYadmin does when you click on a table. anyone know of a function that will do this? or what i would need to do to write one? thanks all toby |
|
#2
|
||||
|
||||
|
I don't know a function right off, but the quickest thing might be for you to take a quick look at the code for PHPMyAdmin and see how they're doing it.
|
|
#3
|
|||
|
|||
|
Got it
I needed a SQL statment rather than a PHP function this seems to do the trick nicely PHP Code:
there is more information stored in the array but it isn't really that interesting to me. here is a full list Go to MySQL bye toby |
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > how can i find out the size of a table |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|