Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Jun 2003
    Location
    Belgium
    Posts
    174

    Default Using php to list all database in my account

    The result of the below code is a blank page, while on another server it lists all db's in my account. Why I get this blank page on a cpanel server?

    The code I'm using is attached.
    Attached Files

  2. #2
    Member
    Join Date
    Jun 2003
    Location
    Belgium
    Posts
    174

    Default

    Anyone who managed to display the databases using the attached code ?

  3. #3
    Member bamasbest's Avatar
    Join Date
    Jan 2004
    Posts
    531

    Default

    Remember, cpanel prepends the main account username to both the database name and database username.

    So, if the main account is owned by joe,

    the database would more than likely be joe_testdb

    and the login would be joe_<user>

Similar Threads & Tags
Similar threads

  1. assigning new database to user account using php?
    By -Roger- in forum Database Discussions
    Replies: 7
    Last Post: 03-24-2011, 07:19 AM
  2. Database driven list software?
    By akreider in forum E-mail Discussions
    Replies: 4
    Last Post: 08-02-2010, 02:57 PM
  3. Allow access to IP list from database?
    By ne0shell in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 06-05-2009, 11:12 AM
  4. Using list account function to get IP address in php
    By fransisco in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 10-23-2005, 09:41 AM
  5. List stuff from a cPanel account with php
    By snakex in forum cPanel and WHM Discussions
    Replies: 10
    Last Post: 08-13-2005, 11:16 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube