Include PHP files at absolute URLs?
-
I’m creating a custom theme for my web site, but I want to ‘php include’ some files that are located outside of my WordPress installation, via an absolute URL.
When I try this, I get an error:
<b>Warning</b>: include() [<a href='function.include'>function.include</a>]: URL file-access is disabled in the server configuration in <b>/home/.pea/gmaletic/tilt-movie.com/blog/wp-content/themes/Tilt/header.php</b> on line <b>28</b><br /> <br /> <b>Warning</b>: include(https://staging.tilt-movie.com/navbar.php) [<a href='function.include'>function.include</a>]: failed to open stream: no suitable wrapper could be found in <b>/home/.pea/gmaletic/tilt-movie.com/blog/wp-content/themes/Tilt/header.php</b> on line <b>28</b><br /> <br /> <b>Warning</b>: include() [<a href='function.include'>function.include</a>]: Failed opening 'https://staging.tilt-movie.com/navbar.php' for inclusion (include_path='.:/usr/local/php5/lib/php:/usr/local/lib/php') in <b>/home/.pea/gmaletic/tilt-movie.com/blog/wp-content/themes/Tilt/header.php</b> on line <b>28</b><br />
It seems as if there is some setting I could change that would allow me to include files at arbitrary locations…am I right? How do I do this?
Thanks very much.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Include PHP files at absolute URLs?’ is closed to new replies.