Giter Site home page Giter Site logo

External Link Usage !! about timthumb HOT 4 CLOSED

crystalheart avatar crystalheart commented on June 23, 2024
External Link Usage !!

from timthumb.

Comments (4)

GoogleCodeExporter avatar GoogleCodeExporter commented on June 23, 2024
I may have a fix for you, but first let me describe what this will/won't work 
on:

Your script will not work cross-domain (meaning you can't link to an image that 
is on
a different server than the script).

However, if you're trying to do something like this: 
http://yoursite.com/timthumb.php?src=http://www.yoursite.com/image.png

Then apply this:

// sort out image source
$src = get_request("src", "");

// remove the http://....com and replace with a relative "/" to root directory
$src = preg_replace('@(https?://([-\w\.]+)+(:\d+)?(/([\w/_\.]*?)?)?)@', '/', 
$src);

Original comment by [email protected] on 2 Dec 2009 at 12:52

from timthumb.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 23, 2024
Please help me. i can't use remote link to my site. i make tihs but can't work? 
how
to make this. sorry my bad english :)

Original comment by [email protected] on 26 Dec 2009 at 2:49

from timthumb.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 23, 2024
please test the latest version of the script. Previously this was not possible 
but it
has now been allowed for certain domains (flickr.com etc)

Original comment by BinaryMoon on 31 Dec 2009 at 7:15

  • Changed state: Invalid

from timthumb.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 23, 2024
I've tried the beta version, but still won't work. I'm using Google App Engine 
as
CDN, and I've added the domain to the beta file, but it doesn't work.

Original comment by ivan%[email protected] on 7 Jan 2010 at 3:49

from timthumb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.