Page 1 of 1

php help! - if url contains something echo something else

Posted: Thu Apr 22, 2010 2:12 am
by fruit-toast
hi,

new to php blah blah… help

i have a jQuery gallery when an image is being viewed i need to have a link appear. im also not too familiar with jQuery…

what php code would i use to read the below url, and depending on which jpg is in it and echo a link on the page?

http://url/web-test.php#/images/folio/web-1a.jpg

if someone could help out i will type out a very sincere thank you.

Re: php help! - if url contains something echo something els

Posted: Thu Apr 22, 2010 2:24 am
by dejvos
Hi,

I think, you need to get an URL of an image by JS ... check object Image

It could be smth like this:

Code: Select all

document.write(objectImage.src);