I'm dealing with 2 different http sources/servers/location.
This is the link on <!-- w --><a class="postlink" href="http://www.karinne.net/pix/">www.karinne.net/pix/</a><!-- w -->
pix.karinne.net/index.php?c=ddir&dir=jeep
This is the code on pix.karinne.net (different server/location)
<?
include ("http://www.karinne.net/common.php");
head();
if ($_GET['c'] == 'ddir') {
$ddir = $_GET['dir'];
displaydirs($ddir);
//} elseif ($_GET['c'] == 'sdir') {
//$ddir = $_GET['dir'];
//$sdir = $_GET['sdir'];
//displayimgs($ddir, $sdir);
}
function displaydirs($ddir) {
$dir = opendir("/home/karinne/pix.karinne.net/$ddir/");
$structure = array();
while($directory = readdir($dir)) {
if ($directory == '.') { continue; }
if ($directory == '..') { continue; }
if (preg_match('/\.php$/', $directory)) { continue; }
array_push($structure, $directory);
}
sort($structure);
for ($i=0; $i < count($structure); $i++) { ?>
<p>» <a href=http://www.htmlforums.com/archive/index.php/"<?=$structure[$i]?>/?c=img&dir=<?=$ddir?>$sdir=<?=$structure[$i]?>"><?=$structure[$i]?> </a></p>
<?}
closedir($dir);
}
//function displayimgs($ddir, $sdir) {
// $img = opendir("/home/karinne/pix.karinne.net/$ddir/$sdir/");
// $pictures = array();
// while ($images = readdir($img)) {
// if ($images == '.') { continue; }
// if ($images == '..') { continue; }
// array_push($pictures, $images);
// }
// sort($pictures); ?>
<!-- <p> -->
<?// for ($j=0; $j < count($pictures); $j++) { ?>
<!-- <a href=http://www.htmlforums.com/archive/index.php/"http://pix.karinne.net/<?=$ddir?>/<?=$sdir?>/<?=$pictures[$j]?>"><img src="http://pix.karinne.net/<?=$ddir?>/<
?=sdir?>/<?=pictures[$j]?>" width="150"></a> -->
<?// } ?>
<!-- </p> -->
<?//closedir($img);
//}
//}
footer();
?>
I get an error on the bold line which is commented out.
Parse error: parse error, expecting `','' or `';'' in /home/karinne/pix.karinne.net/index.php on line 48
HELP Found it!!!
<!-- <a href=http://www.htmlforums.com/archive/index.php/"http://pix.karinne.net/<?=$ddir?>/<?=$sdir?>/<?=$pictures[$j]?>"><img src="http://pix.karinne.net/<?=$ddir?>/<
?=$sdir?>/<?=$pictures[$j]?>" width="150"></a> -->
EDIT Haha, I just found the very same thing, was just about to post It's those kinds of errors that can drive a person mad!!! =:OOriginally posted by karinne
Found it!!!
<!-- <a href=http://www.htmlforums.com/archive/index.php/"http://pix.karinne.net/<?=$ddir?>/<?=$sdir?>/<?=$pictures[$j]?>"><img src="http://pix.karinne.net/<?=$ddir?>/<
?=$sdir?>/<?=$pictures[$j]?>" width="150"></a> -->
I found a bug in your vBcode, it seems that you're missing end tags to 'size' and 'color'.
hehe
Yeah it's terrible to sit blind for hours not seeing the obvious error..
This is the link on <!-- w --><a class="postlink" href="http://www.karinne.net/pix/">www.karinne.net/pix/</a><!-- w -->
pix.karinne.net/index.php?c=ddir&dir=jeep
This is the code on pix.karinne.net (different server/location)
<?
include ("http://www.karinne.net/common.php");
head();
if ($_GET['c'] == 'ddir') {
$ddir = $_GET['dir'];
displaydirs($ddir);
//} elseif ($_GET['c'] == 'sdir') {
//$ddir = $_GET['dir'];
//$sdir = $_GET['sdir'];
//displayimgs($ddir, $sdir);
}
function displaydirs($ddir) {
$dir = opendir("/home/karinne/pix.karinne.net/$ddir/");
$structure = array();
while($directory = readdir($dir)) {
if ($directory == '.') { continue; }
if ($directory == '..') { continue; }
if (preg_match('/\.php$/', $directory)) { continue; }
array_push($structure, $directory);
}
sort($structure);
for ($i=0; $i < count($structure); $i++) { ?>
<p>» <a href=http://www.htmlforums.com/archive/index.php/"<?=$structure[$i]?>/?c=img&dir=<?=$ddir?>$sdir=<?=$structure[$i]?>"><?=$structure[$i]?> </a></p>
<?}
closedir($dir);
}
//function displayimgs($ddir, $sdir) {
// $img = opendir("/home/karinne/pix.karinne.net/$ddir/$sdir/");
// $pictures = array();
// while ($images = readdir($img)) {
// if ($images == '.') { continue; }
// if ($images == '..') { continue; }
// array_push($pictures, $images);
// }
// sort($pictures); ?>
<!-- <p> -->
<?// for ($j=0; $j < count($pictures); $j++) { ?>
<!-- <a href=http://www.htmlforums.com/archive/index.php/"http://pix.karinne.net/<?=$ddir?>/<?=$sdir?>/<?=$pictures[$j]?>"><img src="http://pix.karinne.net/<?=$ddir?>/<
?=sdir?>/<?=pictures[$j]?>" width="150"></a> -->
<?// } ?>
<!-- </p> -->
<?//closedir($img);
//}
//}
footer();
?>
I get an error on the bold line which is commented out.
Parse error: parse error, expecting `','' or `';'' in /home/karinne/pix.karinne.net/index.php on line 48
HELP Found it!!!
<!-- <a href=http://www.htmlforums.com/archive/index.php/"http://pix.karinne.net/<?=$ddir?>/<?=$sdir?>/<?=$pictures[$j]?>"><img src="http://pix.karinne.net/<?=$ddir?>/<
?=$sdir?>/<?=$pictures[$j]?>" width="150"></a> -->
EDIT Haha, I just found the very same thing, was just about to post It's those kinds of errors that can drive a person mad!!! =:OOriginally posted by karinne
Found it!!!
<!-- <a href=http://www.htmlforums.com/archive/index.php/"http://pix.karinne.net/<?=$ddir?>/<?=$sdir?>/<?=$pictures[$j]?>"><img src="http://pix.karinne.net/<?=$ddir?>/<
?=$sdir?>/<?=$pictures[$j]?>" width="150"></a> -->
I found a bug in your vBcode, it seems that you're missing end tags to 'size' and 'color'.
hehe
Yeah it's terrible to sit blind for hours not seeing the obvious error..