Not signed in (Sign In)

Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthormredant
    • CommentTimeJun 22nd 2008 edited
     
    to include plogger on my webspace the first step I need to do is :

    "This file must be processed through the PHP interpreter in order to be dynamic."

    what am I doing wrong ..
    this is the webpage:
    http://www.jhchaos.be/Foto.php

    this is the page's code:
    <?php?>
    <?php require("../Fotogallery/gallery.php"); ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <?php the_gallery_head(); ?>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Jeugdhuis Chaos - Zwijnaarde</title>

    <style type="text/css">
    <!--
    body {
    background-color: #222E3A;
    background-image: url(Images/bg.gif);
    background-repeat: repeat-x;
    }
    .style1 {
    color: #666666;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 10px;
    }
    body,td,th {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 10px;
    color: #FFFFFF;
    }
    a:link {
    color: #FFFFFF;
    }
    a:visited {
    color: #FFFFFF;
    }
    a:hover {
    color: #FFFFFF;
    }
    a:active {
    color: #FFFFFF;
    }
    .scrollable {
    width: 800px;
    height: 404px;
    overflow: auto;
    scrollbar-base-color: #222e3a;
    scrollbar-arrow-color: #FFFFFF;
    scrollbar-3dlight-color: #222e3a;
    scrollbar-darkshadow-color: #222e3a;
    scrollbar-face-color: #222e3a;
    scrollbar-highlight-color: #222e3a;
    scrollbar-shadow-color: #222e3a;
    scrollbar-track-color: #222e3a;
    }
    -->
    </style></head>
    <body>

    <div align="center">
    <table width="800" height="600" border="0">
    <tr>
    <td height="88"><div><img src="Images/background_01.jpg" width="800" height="88" alt="top" /></div></td>
    </tr>
    <tr>
    <td height="404" align="left" valign="top"><div class="scrollable">
    <?php the_gallery(); ?>
    </div></td>
    </tr>
    <tr>
    <td height="108"><div><img src="Images/background_03.jpg" alt="bottom_menu" width="800" height="108" border="0" usemap="#Map" /></div></td>
    </tr>
    </table>
    <span class="style1"><br />
    - vzw Jeugdhuis Chaos - </span></div>


    <map name="Map" id="Map">
    <area shape="circle" coords="246,58,27" href="Home.html" target="_self" alt="Home" />
    <area shape="circle" coords="431,57,27" href="Foto.html" target="_self" alt="Foto's" />
    <area shape="circle" coords="532,59,27" href="Info.html" target="_self" alt="Info" />
    <area shape="circle" coords="626,59,27" href="Contact.html" target="_self" alt="Contact" />
    <area shape="circle" coords="337,59,27" href="Activiteiten.html" target="_self" alt="Activiteiten" />
    </map></body>
    </html>
    •  
      CommentAuthorkimparsell
    • CommentTimeJun 22nd 2008 edited
     
    Just a few questions regarding your setup:

    - Who is your webhost?
    - Do they have php installed and running on your server?
    - Is php safe_mode on or off?
    - Are you on a Windows server or a Linux server?

    The first line of the file (<?php?>) isn't necessary and can be removed. The php include for gallery.php should be the very first line in the page.

    The path you have for the include at the top (<?php require("../Fotogallery/gallery.php"); ?>) would indicate that your Plogger install is in another directory above the directory that Foto.php resides in, but the URL for the page indicates that Foto.php is in the root of your website. Where is the Plogger directory in relation to this page - above it in the folder structure, or below it? If it is below it, you might try changing the path to <?php include("Fotogallery/gallery.php"); ?> to see if the gallery gets pulled into the page.

    Note: I changed the php code from require to include to see if any of the code on that page is getting processed.
    •  
      CommentAuthorsidtheduck
    • CommentTimeJun 22nd 2008
     
    I would agree with dhdesign. If it were my guess, it is the require path to Plogger that is causing the problems (especially with "require" which stops the script if it returns false).
    • CommentAuthormredant
    • CommentTimeJun 24th 2008
     
    thx for the replys, I tried these changes but no effect
    setup.. we had a php-website (joomla-based) on the same webspace/server that worked correctly. (so php-mysql is working)

    indeed, the "../" needed to be removed, that' ok now
    I changed require to include..
    but still the webpage doesnt load

    when I remove the part : <?php the_gallery_head(); ?>
    the part untill <?php the_gallery(); ?> is shown

    when I remove both tags (head/gallery) and only leave the include-part my webite displays,
    without the gallery fcourse.

    I just copy-pasted the code in the html-page and renamed it '.php' .. I do not use any php-interpreter (as the manual says)
    according to me, that is not needed (lets say I don't know what program I need to use for that)
    • CommentAuthormredant
    • CommentTimeJun 24th 2008
     
    stupid detail,
    the stand-alone gallery is working..

    http://www.jhchaos.be/Fotogallery/
    •  
      CommentAuthorsidtheduck
    • CommentTimeJun 24th 2008
     
    mredant,

    Try this for your include:<?php include(dirname(__FILE__)."/Fotogallery/gallery.php"); ?>See if that works for you.
    • CommentAuthormredant
    • CommentTimeJun 30th 2008 edited
     
    thx thx thx!

    it works right-now,

    what is the difference in this case include(dirname(__FILE__). ?

    page displayed on this url : http://www.jhchaos.be/Foto.php
    •  
      CommentAuthorsidtheduck
    • CommentTimeJul 1st 2008
     
    The difference is how your server is set up. If your server allows relative paths (i.e. the include_path on your server variables is set to include the root folder), then:<?php include("Fotogallery/gallery.php"); ?>should work. However, if not:<?php include(dirname(__FILE__)."/Fotogallery/gallery.php"); ?>produces the full, absolute path of your server to allow the script to be accessed.