// Specify the relative path to your image directory
<?php
$relativePath = ‘images/your-image.jpg’; //
Replace ‘your-image.jpg’ with an actual file in the images folder
<?php
$relativePath = ‘images/your-image.jpg’; //
Replace ‘your-image.jpg’ with an actual file in the images folder
// Get the full absolute path
$fullPath = realpath($relativePath);
// Display the full path
if ($fullPath) {
echo ‘The full file path is: ‘ . $fullPath;
} else {
echo ‘The file does not exist or the path is incorrect.’;
}
?>
0 Comments