File Name

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    File Name

    Hi

    what code can i insert in my auto index title name so that when a user clicks in for example a mp3 file, the name will show up and for SEO.

    Thanks so much

    PHP Code:
    $sort=intval(@$_GET['sort']);
    if(
    $sort>or $sort<0)
    $sort=0;

    $file=htmlspecialchars($_GET['file']);
    $file=str_replace("\0"''$file);
    if(!
    file_exists($file) or !is_file($file) or !in_array(r($file), explode(',',$allfile)) or strstr($file,'..') or strstr($file,'http://') or strstr($file,'ftp://'))
    $file='';
    if(
    $file)
    {
    $dir=str_replace('load/','',dirname($file));}


    else
    {
    ob_start();
    }

    header('Content-type:text/html; charset=utf-8');
    echo 
    '<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head>';
    echo 
    '<meta http-equiv="Content-Type" content="text/html; charset=utf-8">';
    echo 
    "<title>Download File - </title>"
    Last edited by arnage; 14.04.12, 10:29. Reason: Wraped php tags

    #2
    Anyone help please

    Comment


      #3
      have you tried fixing this yourself? .... its a good way to learn some php

      Comment

      Working...
      X