SitePoint Sponsor

User Tag List

Results 1 to 8 of 8
  1. #1
    SitePoint Zealot
    Join Date
    Jul 2006
    Posts
    114
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Are these problems normal?

    When I started the book Build your own Database driven website 4th edition, I started getting problems in chapter 4 (I can't remember what) that I had to upgrade to PHP version 5.3 to solve. Not a big deal afterall, I was upgrading.

    Then about a week ago, I started getting an fatal error for mysqli_connect which I had to DOWNGRADE to 5.2.11 to resolve (weird but whatever as long as it worked).

    Now I started getting an error that the Apache http server stopped working when I tried to query a table in the database that was populated. The interesting thing was that while the EXACT same table was unpopulated the script ran fine...nothing came from the query, but at least I wouldn't get the error.

    Now the way I corrected the problem is to REUPGRADE to PHP 5.3.

    I have two questions...

    1. Am I the only one these type of issues are happening to?

    2. How stable is PHP?

  2. #2
    Follow Me On Twitter: @djg gold trophysilver trophybronze trophy Dan Grossman's Avatar
    Join Date
    Aug 2000
    Location
    Philadephia, PA
    Posts
    20,578
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    PHP is stable, though virtually no web hosts are on 5.3 yet (too new). It sounds like you have broken something in the midst of all the upgrading and downgrading. File version mismatches or configuration, who knows.

  3. #3
    SitePoint Guru
    Join Date
    Oct 2006
    Location
    Queensland, Australia
    Posts
    852
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'd suggest you start with a fresh copy of Apache, Mysql and PHP, ensuring you use a thread-safe VC6 binary of PHP if you're running on Windows and using Apache. It's all very straight forward. You can use the Apache and Mysql install packages (MSI's) available on both sites. Fianlly, getting PHP to work with Apache isn't very hard at all. There are plenty of quick and simple guides available online which provide step by step instructions.

    I'm of course assuming you're running windows on your development workstation/server.

  4. #4
    SitePoint Zealot
    Join Date
    Jul 2006
    Posts
    114
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    To be honest I think windows is the problem... I just hope WIndows 7 is as awesome as everyone says it is...

  5. #5
    Follow Me On Twitter: @djg gold trophysilver trophybronze trophy Dan Grossman's Avatar
    Join Date
    Aug 2000
    Location
    Philadephia, PA
    Posts
    20,578
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Windows is not the problem and Windows 7 is not the solution.

  6. #6
    SitePoint Wizard silver trophybronze trophy Cups's Avatar
    Join Date
    Oct 2006
    Location
    France, deep rural.
    Posts
    6,869
    Mentioned
    17 Post(s)
    Tagged
    1 Thread(s)
    If you are using installers check they don't leave any old php.ini files or mysql conf files lying around, this can be maddening. Check you only have one of each.

  7. #7
    SitePoint Zealot
    Join Date
    Jul 2006
    Posts
    114
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    There were times when did a complete rebuild of the system and the same problems occured, so that tells me there is a good chance that it could be windows...

  8. #8
    SitePoint Enthusiast
    Join Date
    Jun 2009
    Posts
    39
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    start fresh. that would be good for u..


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
  •