I was thinking this might make an easier way to integrate my current php scripts, using this article to create header and footer templates. I should have known somehow some way things would screw up, it just seemed to easy.
PHP Code:
<?php
include_once('/home/ahfb/public_html/ahfb2000.com/public/4test/misc.php?do=page&template=css2header');
?>
Gives me the error
Quote:
Warning: include_once(/home/ahfb/public_html/ahfb2000.com/public/4test/misc.php?do=page&template=css2header) [function.include-once]: failed to open stream: No such file or directory in /home/ahfb/public_html/ahfb2000.com/public/4test/cssgenerator2.php on line 2
Warning: include_once() [function.include]: Failed opening '/home/ahfb/public_html/ahfb2000.com/public/4test/misc.php?do=page&template=css2header' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /home/ahfb/public_html/ahfb2000.com/public/4test/cssgenerator2.php on line 2
|
Not being a programmer, my guess is that .......I am clueless
UPDATE
I found that due to the variables
(/home/ahfb/public_html/ahfb2000.com/public/4test/misc.php?do=page&template=css2header will not work, it must be done with the url
Code:
include('http://www.ahfb2000.com/4test/misc.php?do=page&template=css2header');
which leads to error "URL file-access is disabled in the server configuration " in addition to the previous errors. To solve this you are supposed to change php.ini to read
allow_url_fopen = On
and
Allow_url_include = On
Still have all 3 errors ...hmmm
oops, forgot to reload apache, now my errors are
Quote:
Warning: include(http://www.ahfb2000.com/4test/misc.p...ate=css2header) [function.include]: failed to open stream: HTTP request failed! HTTP/1.1 401 Authorization Required in [path]/cssgenerator2.php on line 3
Warning: include() [function.include]: Failed opening 'http://www.ahfb2000.com/4test/misc.php?do=page&template=css2header' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in [path]/cssgenerator2.php on line 3
|