Back to square one.
I want to Include PluhHeadlines.php on each article page. All articles are in a /folder off main site.
So I do
PHP Code:
Virtual ("/forums/PluhHeadlines.php")
So then I remove the
PHP Code:
require("./global.php") require("./admin/config.php");
and put them @ the top of my test page which is in
www.mysite.com/critcalmass/some-article.php
Now I get the Error
Quote:
Fatal error: Failed opening required './global.php' (include_path='.:/usr/lib/php') in /path/to/site/html/criticalmass/airport-made-for-mac-os-x.php on line 1
|
I also tried it with /forums/global.php and still no go
What am I missing? I am still completely new to PHP.
As I was writing this, I tried using Absolute paths, and it works. I have implemented the headlines.php to replace my "This Week @Mac Write" at the top of all pages.
Now to try out the Pluhnews.php but This afternoon it's 3AM and I need to get sleep (or finish watching TRUE LIES?)