The images are rotated with IrfanView for Windows, Version 4.53. I save them with "Keep original EXIF data (if JPD to JPG)" unchecked.
I upload the images with Ipswitch WS_FTP Professional. The thumbnail view of the images show their correct orientation on both the local hard drive on my Windows 10 laptop and their destinationon my Web site.
I appreciate your comment that PHP delivers exactly what it is given to deliver. However, that doesn't explain why some of the images are incorrectly rotated on some of the browsers (Internet Explorer, Firefox, Safari and Chrome).
Is there no code that can be inserted into the PHP code to force the correct rotation? I am a novice PHPer, so I don't know what to do. I encountered a problem uploading the PHP code for your advice, but here is a chunk from it.
Thanks for your help
<?php
##########################################################################
$password = "hello"; // Modify Password to suit for access, Max 10 Char.
##########################################################################
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Israel and Jordan 2019</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
P { FONT-SIZE: 8pt; COLOR: #000000; FONT-FAMILY: Verdana, Tahoma, Arial}
TD { FONT-SIZE: 8pt; COLOR: #000000; FONT-FAMILY: Verdana, Tahoma, Arial}
-->
</style>
</head>
<body>
<?php
print "<h2 align=\"center\">Israel and Jordan 2019</h2>";
// If password is valid let the user get access
if (isset($_POST["password"]) && ($_POST["password"]=="$password")) {
?>
<!-- START OF HIDDEN HTML - PLACE YOUR CONTENT HERE -->
<html>
<head>
<title>Israel and Jordan 2019</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
.style4 {
font-size: 36px;
color: #0033FF;
}
-->
</style>
<style type="text/css">
<!--
.style2 {
font-size: 20px;
color: #0033FF;
}
-->
</style>
</head>
<body>
<p class="style4">Israel and Jordan 2019</p>
<p class="style2"></p>
<table width="600" border="0"cellpadding="0" cellspacing="0">
<tr><td>
<img src=DSC05859.JPG width="450 " height="600 "></td></tr><tr>
<td width="450 " style="color:blue">Jaffa, November 16, 2019 <br/><br/></td><td width="450 "allign="right"> 1 <br/><br/></td></tr>
<tr><td>
<img src=DSC05865.JPG width="600 " height="450 "></td></tr><tr>
<td width="450 " style="color:blue">Tel Aviv, Shuk Ha'Carmel<br/><br/></td><td width="450 "allign="right"> 2 <br/><br/></td></tr>
<tr><td>
<img src=DSC05867.JPG width="600 " height="450 "></td></tr><tr>
<td width="450 " style="color:blue">Tel Aviv, Shuk Ha'Carmel<br/><br/></td><td width="450 "allign="right"> 3 <br/><br/></td></tr>
<tr><td>
<img src=DSC05870.JPG width="600 " height="450 "></td></tr><tr>
<td width="450 " style="color:blue">Tel Aviv, Shuk Ha'Carmel <br/><br/></td><td width="450 "allign="right"> 4 <br/><br/></td></tr>
<tr><td>
<img src=DSC05871.JPG width="450 " height="600 "></td></tr><tr>
<td width="450 " style="color:blue">Tel Aviv, Shuk Ha'Carmel <br/><br/></td><td width="450 "allign="right"> 5 <br/><br/></td></tr>
<tr><td>
<img src=DSC05874.JPG width="450 " height="600 "></td></tr><tr>
<td width="450 " style="color:blue">Tel Aviv, Shuk Ha'Carmel <br/><br/></td><td width="450 "allign="right"> 6 <br/><br/></td></tr>
<tr><td>
<img src=DSC05884.JPG width="600 " height="450 "></td></tr><tr>
<td width="450 " style="color:blue">Tel Aviv, Shuk Ha'Carmel <br/><br/></td><td width="450 "allign="right"> 7 <br/><br/></td></tr>
<tr><td>
<img src=DSC05876.JPG width="600 " height="450 "></td></tr><tr>
<td width="450 " style="color:blue">Street in Tel Aviv, Rehov Neve Tsedek <br/><br/></td><td width="450 "allign="right"> 8 <br/><br/></td></tr>
<tr><td>
<img src=DSC05881.JPG width="450 " height="600 "></td></tr><tr>
<td width="450 " style="color:blue">Door in Tel Aviv, Rehov Neve Tsedek <br/><br/></td><td width="450 "allign="right"> 9<br/><br/></td></tr>
<tr><td>
<img src=DSC05886.JPG width="600 " height="450 "></td></tr><tr>
<td width="450 " style="color:blue">The Wailing Wall <br/><br/></td><td width="450 "allign="right"> 10 <br/><br/></td></tr>
<tr><td>
<p style="font-family:Courier blue, Serif;font-size:25pt;">Petra</p>
<font size="5" color="black" style = "font-family:courier,arial,helvetica;">
Petra was the capital of the Nabataean Kingdom stretching from modern Labanon to the Gulf of Aqaba. It flourished
for five centuries until it was annexed into the Roman empire in 200 AD.
Now its greatness lies in ruins, the remains of earth quakes, war and pillage.
</font>
</p>
<img src=DSC05889.JPG width="600 " height="450 "></td></tr><tr>
<td width="450 " style="color:blue">Petra entrance, now an attraction for millions visitors <br/><br/></td><td width="450 "allign="right"> 11 <br/><br/></td></tr>
<tr><td>
<img src=DSC05892.JPG width="450 " height="600 "></td></tr><tr>
<td width="450 " style="color:blue">The city is approached through a long crevice, a caravan path called the Siq. <br/><br/></td><td width="450 "allign="right"> 12 <br/><br/></td></tr>
450 " style="color:blue">The Siq ends with a view of the Treasury<br/><br/></td><td width="450 "allign="right"> 16 <br/><br/></td></tr>
MANY LINES DELETED
</table>
</body>
</html>
<!-- END OF HIDDEN HTML -->
<?php
}
else
{
// Wrong password or no password entered display this message
if (isset($_POST['password']) || $password == "") {
print "<p align=\"center\"><font color=\"red\"><b>Incorrect Password</b><br>Please enter the correct password</font></p>";}
print "<form method=\"post\"><p align=\"center\">Please enter your password for access<br>";
print "<input name=\"password\" type=\"password\" size=\"25\" maxlength=\"10\"><input value=\"Login\" type=\"submit\"></p></form>";
}
print "<br><br>";
?>
<BR>
</body>
</html>