Re: [GURU'S ONLY ;-)] Howto determine from which file an image is being requested?



Fluffy Convict wrote:
Within my CMS, I want to keep track of where images (uploaded to the
site) are being used within the site. This could be within pages, but
also within .js or .css files. For tracking images, I created the
following in my .htaccess:

Guru's only ... ???

1 solution: store the requesr uri in a session, rewrirte your url like you did. Store the location. Then use readfile() instead of fopen().

2 SELECT * FROM pages WHERE text like '%user_uploaded_img%';


But off course im no guru.
.