Search code examples
phpserver

How can I share image between two websites?


Two websites are running on one server, so let's say it A.com and B.com. Their document root directory is different of course. The problem is when I upload image on A.com, I should show it on B.com too. How can I solve this?

I don't want to link from one site to another. I should use image in generating PDF and link is not working.


Solution

  • Just use full path in your code!!! It must work or check permission.