Include_Once ???
Posted: Thu Feb 19, 2004 5:25 pm
From what I have found doing a search I don't think this may be able to work on Win2000 but I will see if those brighter than I can confirm or deny it.
In my site I have an
include_once("php/headerad.php");
my Php scripts are in a folder php and documents in the root folder of the site work fine.
But I would like to put documents in subfolders of the site (we are a small newspaper and I would like to keep the sections seperate) like /sports/article1.php
When I try to change the script to:
include_once("www.mydomain.com/php/headerad.php");
include_once("http://mydomain.com/php/headerad.php");
I get the fun error:
Warning: main(http://www.mydomain.com/php/headerad.php): failed to open stream: No such file or directory
Is there a way to tell the script to find the .php outside of the current local directory?
TIA
In my site I have an
include_once("php/headerad.php");
my Php scripts are in a folder php and documents in the root folder of the site work fine.
But I would like to put documents in subfolders of the site (we are a small newspaper and I would like to keep the sections seperate) like /sports/article1.php
When I try to change the script to:
include_once("www.mydomain.com/php/headerad.php");
include_once("http://mydomain.com/php/headerad.php");
I get the fun error:
Warning: main(http://www.mydomain.com/php/headerad.php): failed to open stream: No such file or directory
Is there a way to tell the script to find the .php outside of the current local directory?
TIA