SitePoint Sponsor

User Tag List

Page 2 of 2 FirstFirst 12
Results 26 to 31 of 31

Thread: Blank Page

  1. #26
    SitePoint Addict bkennedy's Avatar
    Join Date
    Aug 2004
    Location
    michigan
    Posts
    251
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    no, just copy php.ini-dist as php.ini into the php folder
    ----------------
    bob.kennedy
    ----------------

  2. #27
    SitePoint Enthusiast
    Join Date
    Feb 2005
    Posts
    25
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    done. Still says:

    debug 1
    debug 2
    debug 3

    Fatal error: Call to undefined function mysql_connect() in c:\program files\apache group\Apache\htdocs\jokes.php on line 30

  3. #28
    Sell crazy someplace else markl999's Avatar
    Join Date
    Aug 2003
    Location
    Manchester, UK
    Posts
    4,007
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Create a new test php page with the following in it:
    <?php phpinfo() ?>
    When you look at that page it will tell you where your php.ini file should be. That's the file that needs the php_mysql.dll uncommenting.

  4. #29
    SitePoint Enthusiast
    Join Date
    Feb 2005
    Posts
    25
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ok, i've sorted the php_mysql.dll thing, but now when i load the file in apache it says:

    debug 1
    debug 2
    debug 3
    debug 4

    Unable to locate the joke database at this time.

  5. #30
    SitePoint Enthusiast
    Join Date
    Feb 2005
    Posts
    25
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    problem fixed, cheers for the help

  6. #31
    SitePoint Addict Kakarot720's Avatar
    Join Date
    Feb 2001
    Location
    Washington DC
    Posts
    219
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I was originally having the blank page problem. I copied markl999's code with the debugging echos in it and the page appeared. I then changed

    $dbcnx = @mysql_connect('localhost', 'root', 'mypasswd');
    to:
    $dbcnx = mysql_connect('localhost', 'root', 'mypasswd') or die(mysql_error());

    And received this error: Fatal error: Call to undefined function mysql_connect() in c:\Inetpub\wwwroot\jokes.php on line 22

    Next I uncommented the php_mysql.dll line. The browser then gave me an error saying php_mysql.dll could not be found. That is when I realized that the extension folder didn't exist. So I downloaded it and made sure all the necessary dll's are there. When I go to run jokes.php It's now giving me this error:

    PHP Warning: PHP Startup: Unable to load dynamic library 'C:\php\ext\php_mysql.dll' - Access is denied. in Unknown on line 0

    Why is it saying access denied? All permissions on that folder/file are normal.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •