Advertising - Buy Anything On eBay - Remortgages - Loans - Credit Cards

PDA

View Full Version : php include help


farhang
Jan 1st 2008, 1:38 am
Hello,

I have been customizing this script and just got stuck on this last thing.

I have this code what it does is outputs a "GALLERYTITLE"


<?php
if ( $aGalleyIndex = getParentAlbums()) {
echo $aGalleyIndex[0]->getTitle();
} else {
printAlbumTitle();
}
?>


What i want to do is take that "GALLERYTITLE" and put in a include right next to that code

<?php include('albums/GALLERYTITLE/info.txt'); ?>

Anyone can help ?

Thanks

farhang
Jan 1st 2008, 1:47 am
Never mind i figured it out :P


<?php
if ( $aGalleyIndex = getParentAlbums()) {

$blah=$aGalleyIndex[0]->getTitle();
} else {
$blah=getAlbumTitle();
}
include('albums/'. $blah .'/info.txt');
?>

msaqibansari
Jan 1st 2008, 2:04 am
funnnnnnnnnnnnnnnnnnnnny

kendo1979
Jan 1st 2008, 2:41 am
Never mind i figured it out :P


<?php
if ( $aGalleyIndex = getParentAlbums()) {

$blah=$aGalleyIndex[0]->getTitle();
} else {
$blah=getAlbumTitle();
}
include('albums/'. $blah .'/info.txt');
?>



that's a good one, nice to hear someone solve their own problem, which means that he doesn't just let other think for him.