hi can anyone help me with this function.
I've got it working to a point but I need the URL to contain $dir value
the line I'm having trouble with is
anye help would be great
I've got it working to a point but I need the URL to contain $dir value
Code:
<?php
$dir = $gotevent[0];
$filename = '/var/[URL unfurl="true"]www/sites/crm.url.com/public_html/spgm/gal/$dir';[/URL]
if (file_exists($filename)) {
echo "<a href='/spgm/index.php?spgmGal=$dir'><img src='/templates/taad/images/gallery.gif' alt='Event gallery - view the pics' width='234' height='37' border='0'></a><br><br>";
} else {
echo "The file $filename does not exist";
}
?>
the line I'm having trouble with is
Code:
$filename = '/var/[URL unfurl="true"]www/sites/crm.url.com/public_html/spgm/gal/$dir';[/URL]
anye help would be great