Not sure im barking up the right tree, but :
<?PHP
$filename = "somefilename.html";
if ($filename ?somthing? ".") {
$pos = strrpos($filename, ".");
$new_filename = substr($filename, 0, $pos);
echo $new_filename;
}
?>
basically, if the filename contains an period then delete the extension, otherwise skip.
is there an IF function that will help me with this? thinking somthing like IF ($filename contains ".") {
Thanks in advance