4images Forum & Community
4images Issues / Ausgaben => Discussion & Troubleshooting => Topic started by: Acidgod on October 11, 2005, 01:26:42 PM
-
I have a Problem with the remote_url and then i try to find out what´s going wrong.
I make a few debug logs and found out that the following if give me always $remote_url=0 back.
Then i put the red line in the Code and now it works fine.
if (!empty($image_row['image_download_url'])) {
if (is_remote_file($image_row['image_download_url']) || is_local_file($image_row['image_download_url'])) {
ereg("(.+)\.(.+)", basename($image_row['image_download_url']), $regs);
$file_name = $regs[1];
$file_extension = $regs[2];
$file['file_name'] = $file_name.(($size) ? "_".$size : "").".".$file_extension;
$file['file_path'] = dirname($image_row['image_download_url'])."/".$file['file_name'];
$remote_url = 1;
}
else {
$file['file_path'] = $image_row['image_download_url'];
$remote_url = 1;
}
}
Is this a Bug? :?
-
what file is this?
-
do you see the thread titel?
-
yeah i see, and i did what you did, and my problem still exsists.