Not signed in (Sign In)

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

    • CommentAuthorkegster
    • CommentTimeSep 27th 2010
     
    So I cannot for the life of me find what I'm looking for, so i'm taking the cheap way out.

    I want to include a file
    <?php include("/home/loc24/public_html/<?php plogger_get_album_name(); ?>"); ?>

    This does not work obviously, but where the plogger_get_album_name() function is, I need the php to parse that function name and place it there.... Any ideas?
    • CommentAuthorkegster
    • CommentTimeSep 27th 2010 edited
     
    I got this to work for me. Here's the code for anyone researching this. Obviously it's a bit different depending on your project.

    <?php
    $aptalbumname = plogger_get_album_name();

    $aptalbumtext = "/home/loc24/public_html/functions/album/text/" . $aptalbumname . ".txt";
    $aptalbumtext = strtolower($aptalbumtext);
    $aptalbumtext = str_replace (" ", "", $aptalbumtext);

    ?>

    <?php include("$aptalbummeta"); ?>