File Name

Started on the old forum in April 2012 · view the original in the archive · old links redirect here

2 replies · 311 views · started 14 years ago · 1 min read

2 participants
brentg Developer · 95 posts #1

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

$sort=intval(@$_GET['sort']);
if($sort>1 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>";

Free Mobile Downloads: http://playwap.mobi

something else Fellow · 2,296 posts #3

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

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close