Hi all,
I am working on a PHP project. Im having a problem giving the 'src' for a image, because the image file is placed outside of the www folder :(.
Let me explain more.
When I log in to my server using FTP logins, it gives the directory structure as below
+--www
+--project1
-----+www
----------index.php
-----+resources
--------+additional
---------------image.jpg
+--oldproject
+(some other folders)
I can access my project1 directly through the browser using
http://hostname/index.php
That means /project1/www/index.php file directly get executed by calling http://hostname/index.php (I really don't know how it is done, but it's working :))
Now I want to use project1/resources/additional/image.jpg for a <img> tag in /project1/www/index.php file.
I tried, <img src="../resources/additional/image.jpg">
But it's not woring :(
Can anybody help me with this please...?
Thank you so much for spending time to read this
Cheers
Niranga