1) Script Title: PHP Photo Album script v2.11

2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...photoalbum.htm

3) Describe problem: Sorry I keep posting about this script but I could NOT get script to run till I downgraded my PHP to 5.3 from 7.1

Current script uses ereg(i) function and ereg(i) function was DEPRECATED in PHP 5.3.0, and REMOVED in PHP 7

Current ereg call is in line 23 of the "getalbumpics.php" file

According to what I read - the script should be upgraded or rewritten to one that uses preg_match instead of eregi


$photovar=$_GET['id'];
if (!eregi("^[a-zA-Z0-9_]+$", $photovar)){
echo "alert(\"Photo Album ID must contain only letters, numbers, or underscore, and cannot start with a number\")";
die();

I am not a programmer so I have not tried to do this