[SLIR] php linked images

94 views
Skip to first unread message

dapz

unread,
May 25, 2010, 11:19:22 AM5/25/10
to Smart Lencioni Image Resizer
hi

how do you fix something like this ] <img src="/slir/?w=70&h=70&i=/
download/file.php?avatar=58_1273431083.jpg" alt="User avatar" />

emphasis on file.php?avatar=58_1273431083.jpg

putting this:

http://localhost/duduzone/slir/?w=70&h=70&i=/download/file.php?avatar=58_1273431083.jpg

in the address bar generates

Image does not exist: /var/www/download/file.php

I need this to work pls assist me.

Joe Lencioni

unread,
May 25, 2010, 12:13:45 PM5/25/10
to Smart Lencioni Image Resizer
This is not working because SLIR looks at on the filesystem of your
server for the path of the source image. It looks like you want it to
look at the result of an executed PHP script.

To make this work, I believe you would need to do one of two things,
both which would require some programming knowhow:

1. Remove the security precautions in SLIR to prevent it from
accessing a URL, and then pass the full URL to the script as the image
path.

2. Write a script to download the file to your server, and then pass
the path to the downloaded file on the server to SLIR. Basically, you
would need to do what you want in two different steps--first step
would download the file to your server and save it in a path that is
accessible by SLIR, and the second step would be to point SLIR at the
downloaded file.

I hope that helps!

On May 25, 10:19 am, dapz <dapodol...@gmail.com> wrote:
> hi
>
> how do you fix something like this ] <img src="/slir/?w=70&h=70&i=/
> download/file.php?avatar=58_1273431083.jpg" alt="User avatar" />
>
> emphasis on file.php?avatar=58_1273431083.jpg
>
> putting this:
>
> http://localhost/duduzone/slir/?w=70&h=70&i=/download/file.php?avatar...

john

unread,
Nov 18, 2012, 12:51:39 PM11/18/12
to smart-lencioni...@googlegroups.com
Hello

First, thanks for the script.

I'm trying to use it  with dynamically called images through php (url such as image.php?image.php?mediaID=MTRjNzE4MWJkYjhi&type=thumb&folderID=MmM3MTgxYmRiOGI)

URL is encrypted,then, SLIR doen't see an image.

I tried your first suggestion by deleting some lines of codes but as I don't know exactly what to understand by "Remove the security precautions in SLIR " it's difficult. Could you give me more information on this point ?

Thank you in advance.
Reply all
Reply to author
Forward
0 new messages