Hello! Does anyone know of an easy way to get the raw URL (or even CDN) url for use on a php page that is not a part of Chevereto?
Basically, I'm trying to connect to the database right now via:
It works flawlessly for anything with the album 146.
However, what I want to do is to easily get the full URL for the image. Right now the only thing I can think of is by manually typing the domain. There doesn't seem to be an easy way to call the image's URL from the database? Or did I miss something?
I'm planning on adding a file server soon, so the raw image link is going to become increasingly more important, which basically renders this script useless.
Basically, I'm trying to connect to the database right now via:
Code:
$sql = "SELECT image_id, image_name, image_extension, image_album_id FROM chv_images WHERE image_album_id = '146'";
echo "image link: <a href='https://cdn.nickpic.host/images/". $row["image_name"]. "." . $row["image_extension"]."'>". $row["image_name"]. "." . $row["image_extension"]."</a> - Name: " . $row["image_id"]. " " . $row["image_album_id"]. "<br>";
}
However, what I want to do is to easily get the full URL for the image. Right now the only thing I can think of is by manually typing the domain. There doesn't seem to be an easy way to call the image's URL from the database? Or did I miss something?
I'm planning on adding a file server soon, so the raw image link is going to become increasingly more important, which basically renders this script useless.