brown2005 Posted November 22, 2007 Share Posted November 22, 2007 Hi. you know the items check table optimize table repair table analyze table be run from a php file. or does it have to be in my phpmyadmin thing? Quote Link to comment https://forums.phpfreaks.com/topic/78374-table-checking/ Share on other sites More sharing options...
~n[EO]n~ Posted November 22, 2007 Share Posted November 22, 2007 I think PHP has PDO Functions for these kinds of work... The PHP Data Objects (PDO) extension defines a lightweight, consistent interface for accessing databases in PHP. Each database driver that implements the PDO interface can expose database-specific features as regular extension functions. Note that you cannot perform any database functions using the PDO extension by itself; you must use a database-specific PDO driver to access a database server. PDO provides a data-access abstraction layer, which means that, regardless of which database you're using, you use the same functions to issue queries and fetch data. PDO does not provide a database abstraction; it doesn't rewrite SQL or emulate missing features. You should use a full-blown abstraction layer if you need that facility. PDO ships with PHP 5.1, and is available as a PECL extension for PHP 5.0; PDO requires the new OO features in the core of PHP 5, and so will not run with earlier versions of PHP. Quote Link to comment https://forums.phpfreaks.com/topic/78374-table-checking/#findComment-396578 Share on other sites More sharing options...
brown2005 Posted November 22, 2007 Author Share Posted November 22, 2007 thanks for that mate, but does anyone know how to do this then? Quote Link to comment https://forums.phpfreaks.com/topic/78374-table-checking/#findComment-396587 Share on other sites More sharing options...
fenway Posted November 22, 2007 Share Posted November 22, 2007 These are mysql commands -- you can run them from anywhere. Quote Link to comment https://forums.phpfreaks.com/topic/78374-table-checking/#findComment-396696 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.