Jump to content

php path for image href


phppaper

Recommended Posts

I have used a php path for the image herf, but the image came out in a deadlink.

 

<a href="/../../pic/photo.jpg" target="_blank"><img src="/../../pic/photo.jpg" />

 

The image is 2 levels above this html file, therefore I use this path:

"/../../pic/photo.jpg"

 

can someone tell me how to get this image with a correct way to write the path??

Link to comment
https://forums.phpfreaks.com/topic/98741-php-path-for-image-href/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.