What about using a SQL query that does something like this : show tables Or, if needed, specifying the database : show tables from crawler And, if you only want to get some tables : show tables from crawler like 'site%' Actually, even if the mysql_list_tables() function exists, its manual page state