Re: Re: FImage $aSubDir

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 2008-10-28 at 23:52 -0400, John Taylor-Johnston wrote:
> Could it be this easy?
> 
> $chopped= strlen($aFn) - 4;
> $filename = $chopped.".txt";
> 
> print"<br><font face='Arial, Helvetica, sans-serif' size=2 
> color='#999999'>";
>        include($filename);
> print"</font>";
> 
> John Taylor-Johnston wrote:
> > I have http://www.flash-here.com/downloads/fhimage.html installed. I 
> > like it just the way it is.
> > But instead of displaying (see function below).
> > Instead of displaying the file name under the photo, weak excuse for a 
> > caption,
> > I would like to open and nl2br the contents of a like named text file.
> > 
> > $chopped= strlen($aFn) - 4;
> > $openthis = $chopped.".txt";
> > 
> > How do I proceed?
> > John
> > 
> > ---original code----
> >    echo "<br><center>";
> >    if($aSubDir == "") {
> >      $l = strlen($aFn) - 4;
> >      echo substr($aFn, 0, $l);
> >    } else {
> >      echo $aSubDir."[dir]";
> >    }
> >    echo "</center>";
> 
> 
Yeah, but don't use the font tag.


Ash
www.ashleysheridan.co.uk


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux