Hey all,
I am trying to includ the index.php file in my existing php site. I'd prefer the php mothod over the iFrame.
I was unable to find the example_php_include.php file that the FAQ references and when I did a search onthe forum the words were too common so please forgive this I'm sure already asked question.
The FAQ says I need to set the follow :$php_include=true; and $install_dir="twg/".
My setup is mainsite --> twg sub folder.
So I did this at the top of my gallery.php file:
?<php $php_include=true; $install_dir="twg/". >?
(I intentionally broke the php above)
I also tried adding a ; after the twg/".
this resulted in a black page being shown. When I remove the above code and simply used:
?>php include("twg/index.php"); >? I get the "please select a gallery" and languages menu at the the top. followed by a message that says "No Images Uploaded Yet" followed by the bottom information (total visits etc)
then the remainder of the page layout after the include is broken.
In the admin I get the following lines in the debug:
01.25.2011 20:22:51 (en) - ERROR 2 in php/site/twg/index.php, line 164: Cannot modify header information - headers already sent by (output started at /srv/www/php/site/gallery2.php:4) 01.25.2011 20:22:51 (en) - ERROR 2 in site/twg/inc/head.inc.php, line 21: Cannot modify header information - headers already sent by (output started at /srv/www/php/site/gallery2.php:4) 01.25.2011 20:22:51 (en) - ERROR 2 in site/twg/inc/filefunctions.inc.php, line 2122: copy(buttons/twg.gif) [_a href='function.copy'_function.copy_/a_]: failed to open stream: No such file or directory
I'd appreciate any help.
|