[]That is odd. require_once will load main.inc.php only *if* it hasn't already been loaded. If your just using require its being loaded no matter what. So, require_once must think you didn't need it because it's loaded yet it's not working because it wasn't. LoL make sense?
Glad you figured it out. Good job. [/]
That's what I was thinking Dave... is it being called somewhere prior to that in that page? I guess I don't know php well enough to say, but it's just looking for it, why would it hurt to load it again anyways? Hehe.
I tried it both ways, require_once and just require and same thing both times, until I commented it out. *shrug* If it works, don't fix it.
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.