I'm having a very frustrating include() path problem.
When I do this:
, I don't have a problem.PHP Code:
But when I try:
, I can't get it to work. The error I get is:PHP Code:
I wanted to put my 'config.php' file in my cgi-bin so that it would be in a central location for my other scripts. I've done a search to learn about include paths here at sitepoint and learned a lot, but I still can't get it to work.Warning: Failed opening '../config.php' for inclusion (include_path='.:/usr/share/pear') in /home/tandr/tandrtrailer.com/htdocs/ads/rotate.php on line 3
Error 1:You have an error in your SQL syntax near '' at line 1
I'm sure the solution is very simple.