<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<meta charset = "UTF-8">
<title>Card Changer</title>
<?php
ini_set( 'display_errors', 1 );
error_reporting(E_ALL);
?>
</head>
<body>
<h1 align = 'center'>Card Changer</h1>
<form>
<table align = 'center'>
<tr>
<td><?php print "$array[$num_list[0]]"; ?></td>
<td><?php print "$array[$num_list[1]]"; ?></td>
<td><?php print "$array[$num_list[2]]"; ?></td>
<td><?php print "$array[$num_list[3]]"; ?></td>
<td><?php print "$array[$num_list[4]]"; ?></td>
</tr>
<tr><td align = 'center'><input type = 'button' value = 'Change' onclick = 'document.location = "cardChanger.php"' /></td></tr>
</table>
</form>
</body>
</html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<meta charset="UTF-8">
<title>Poker Dealer</title>
</head>
<body>
<?php
ini_set( 'display_errors', 1 );
error_reporting(E_ALL);
$array = glob ("cards/*.gif"); //store paths in 'cards' directory with '.gif' extension
$max = count($array); //check how many contents has created in array
//pick five images from "cards" folder, no duplicate, randomly
$num_list = range(1,$max);
$num_list = array_rand($num_list,5);
shuffle ($num_list);
print "$array[$num_list[0]]"."<br>";
print "$array[$num_list[1]]"."<br>";
print "$array[$num_list[2]]"."<br>";
print "$array[$num_list[3]]"."<br>";
print "$array[$num_list[4]]"."<br>";
?>
</body>
</html>
Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.
When asked, what has been your best career decision?
Deciding to stick with EE.
Being involved with EE helped me to grow personally and professionally.
Connect with Certified Experts to gain insight and support on specific technology challenges including:
We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE