i have tried to contact johnfm and had no success so i went ahead and posted my last issue as a new post hopefully he will see it....he is the man!!! but anyway i got the script and works great on the pc at home but when loaded onto my remote server at inmotionhosting.com i get an error
Fatal error: Call to undefined function: scandir() in /home/zandic5/public_html/hardwood-stairs-photo-slideshow.php on line 40
i tried everything can can't seem to get around that is there a way to get around that anybody??
thanks
and here is my original message below with my final code and details:
what up johnfm,
thanks again bro for the input on the last issue i had with php code...i got the script all loaded up and ready to go, got it on my site and looks like scandisk doesn't work on my server that i am paying for at inmotionhosting.com
is there anyway around it????
you can find your script you gave me at the bottom of the home page at www.zandiconstruction.com where it says "click here for photo slide show of hardwoodstairs"
here is my final script wiht css
thanks again!
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Untitled Document</title>
<style type="text/css">
<!--
a:visited {
color: #0000FF;
text-decoration: none;
}
a:active {
color: #0000FF;
text-decoration: none;
}
a:link {
color: #0000FF;
text-decoration: none;
}
a:hover {
color: #FF0000;
text-decoration: none;
}
.previousButton {
float: inherit;
margin-right: 10px;
}
img {
background-position: center;
margin-top: 0px;
}
-->
</style>
</head>
<body>
<center>
<?php
$dirname = 'hardwood-stairs-gallery-compressed/';
$files = scandir($dirname);
if (isset($GET['currentFile'])) {
$key = array_search(basename($GET['currentFile']), $files);
if (isset($GET['previous']))
$showFile = $files[$key - 1];
else if (isset($GET['next']))
$showFile = $files[$key + 1];
else $showFile = $files[2];
}
else $showFile = "carpet-stairs.JPG";
echo '<a href="?previous=1&currentFile='.urlencode($dirname.$showFile).'"><span class="previousButton">Previous</span></a>';
echo '<a href="?next=1&currentFile='.urlencode($dirname.$showFile).'">Next</a><br/>';
echo '<img src="'.$dirname.$showFile.'" alt=""/><br/>';
?>
</center>
</body>what up johnfm,
thanks again bro for the input on the last issue i had with php code...i got the script all loaded up and ready to go, got it on my site and looks like scandisk doesn't work on my server that i am paying for at inmotionhosting.com
is there anyway around it????
you can find your script you gave me at the bottom of the home page at www.zandiconstruction.com where it says "click here for photo slide show of hardwoodstairs"
here is my final script wiht css
thanks again!
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Untitled Document</title>
<style type="text/css">
<!--
a:visited {
color: #0000FF;
text-decoration: none;
}
a:active {
color: #0000FF;
text-decoration: none;
}
a:link {
color: #0000FF;
text-decoration: none;
}
a:hover {
color: #FF0000;
text-decoration: none;
}
.previousButton {
float: inherit;
margin-right: 10px;
}
img {
background-position: center;
margin-top: 0px;
}
-->
</style>
</head>
<body>
<center>
<?php
$dirname = 'hardwood-stairs-gallery-compressed/';
$files = scandir($dirname);
if (isset($GET['currentFile'])) {
$key = array_search(basename($GET['currentFile']), $files);
if (isset($GET['previous']))
$showFile = $files[$key - 1];
else if (isset($GET['next']))
$showFile = $files[$key + 1];
else $showFile = $files[2];
}
else $showFile = "carpet-stairs.JPG";
echo '<a href="?previous=1&currentFile='.urlencode($dirname.$showFile).'"><span class="previousButton">Previous</span></a>';
echo '<a href="?next=1&currentFile='.urlencode($dirname.$showFile).'">Next</a><br/>';
echo '<img src="'.$dirname.$showFile.'" alt=""/><br/>';
?>
</center>
</body>