
<?php
if ($handle = opendir('uploads')) {
while (false !== ($file = readdir($handle))) {
if ($file != "." && $file != "..") {
echo "<u><a href=\"$file\">$file</a></u><br />";
}
}
closedir($handle);
}
?>
echo "<u><a href=\"uploads/'.$file.'\">$file</a></u><br />";
echo "<u><a href=\"'.$file.'\">$file</a></u><br />";
|
Try:
Код:
echo "<u><a href=\"uploads/'.$file.'\">$file</a></u><br />"; Код:
echo "<u><a href=\"'.$file.'\">$file</a></u><br />"; |
<?php
if ($handle = opendir('uploads')) {
while (false !== ($file = readdir($handle))) {
if ($file != "." && $file != "..") {
echo "<u><a href=\"'.$file.'\">$file</a></u><br />";
}
}
closedir($handle);
}
?>

<?php
if ($handle = opendir('uploads')) {
while (false !== ($file = readdir($handle))) {
if ($file != "." && $file != "..") {
echo "<u><a href=".$file.">$file</a></u><br/>";
}
}
closedir($handle);
}
?>
|
What about this... I know your problem is with parsing $file into the echo... Just can't figure out why...
Код:
<?php
if ($handle = opendir('uploads')) {
while (false !== ($file = readdir($handle))) {
if ($file != "." && $file != "..") {
echo "<u><a href=".$file.">$file</a></u><br/>";
}
}
closedir($handle);
}
?>
|
<?php
$files = "http://dl.foco.co/samp/sa-mp-0.3c-install.exe";
echo "<u><a href=".$files.">$files</a></u><br/>";
?>
|
PHP код:
dunno what your problem is though it must be a problem with your $files variable |
$files = "http://dl.foco.co/samp/sa-mp-0.3c-install.exe";
|
Thanks for your quote!
So should I add my http://www.blahblah.com/uploads/ line in this: Код:
$files = "http://dl.foco.co/samp/sa-mp-0.3c-install.exe"; |
<?php
if ($handle = opendir('uploads')) {
while (false !== ($file = readdir($handle))) {
if ($file != "." && $file != "..") {
echo "<u><a href=\"uploads/$file\">$file</a></u><br />";
}
}
closedir($handle);
}
?>