phpWebLog

find
story index | search | archive | submit story | downloads | stats | contact
Topics
  • General (953)
  • Announcements (20)
  • Development (524)
  • Mods & Hacks (33)


  • phpWebLog
  • Latest Unstable - 0.5.3
  • Latest Stable - 0.5.2
  • ChangeLog
  • TODO / Roadmap
  • BUGS

    CVS WEB

  • New XL fork 0.5.2
  • Unstable branch 0.5.3


  • phpWebLog Addons
    See Romarin.org for phpWebLog addons and more support.

    Major error...
    Posted under Development by Twyst (---.hs.telusplanet.net) on Sunday September 24 2000 @ 05:43AM EDT
    Development Well, i've run into a rather severe error. If I try to access a mysql db for my own code, invariably I get errors with phpweblog not being able to connect to the right db. I can USUALLY fix this by closing my connection, but I have no idea why this happens...




    < Story URL feature in unstable | http resouces? >

    jason writes on Sunday September 24 2000 @ 01:39PM EDT: [ reply | parent ]
    When you include "/include/common.inc.html", this opens a non-persistant connection to your phpWebLog database. I'm not sure exactly whats going on here though. What is the error message, and are you including common.inc.php?
    Twyst writes on Sunday September 24 2000 @ 02:48PM EDT: [ reply | parent ]
    Yep, I'm including common.inc.php.

    A workaround that I've been using is either to do all my mySQL processing BEFORE I call common.inc.php, or use this code before I call footer.inc.php:

    $db = mysql_connect($G_HOST,$G_USER,$G_PASS);
    @mysql_select_db($G_DB) or die("Unable to connect to database $G_DB. Be sure to edit include/common.inc.php.");
    include("/phpweblog/include/footer.inc.html");

    If it's in a function, I have to declare $G_HOST, $G_USER,$G_PASS and $G_DB as global.
    Post a Comment
    Name: Anonymous
    Email: Anonymous
    URL:
    Comment:
    * Your email will not be made public.
    Save As:

    PHP.net
  • Get Your Pocket PHP Reference and Help Hurricane Relief
  • PHP 5.0.5 Released
  • PHP 5.1 Release Candidate 1 Available
  • International PHP Conference 2005 - Program available
  • web|works and php|works 2005 Program Online
  • PHP 4.4.0 Released
  • PEAR XML_RPC Vulnerability and PHP 4.4.0RC2 release
  • Zend/PHP Conference 2005
  • 10 years since PHP 1.0 was released!
  • Forum AFUP 2005 Call for Papers

  • PHPBuilder
  • In Case You Missed It...The Week of September 12, 2005
  • Database Abstraction in PHP
  • In Case You Missed It...The Week of September 5, 2005
  • PHP Form Validation System: An Object-Oriented Approach
  • In Case You Missed It...The Week of August 29, 2005
  • Simple Remoting
  • In Case You Missed It...The Week of August 22, 2005
  • PHP Web Blog - Part 3
  • In Case You Missed It...The Week of August 15, 2005
  • 10 Tips That Every PHP Developer Should Know, Part 2


  • phpWebLog: A PHP News and Content Management System
    Copyright (C) 2000-2002, Jason Hines / devtwo