// 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

// 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.’;
}
?>

Categories: Code

0 Comments

Leave a Reply

Avatar placeholder

Your email address will not be published. Required fields are marked *