oldteacher
Active member
Having issue using $storagelocation. for image paths.
If I use:
Then echo:
This is the results:
I need to work out of the users appdata folder and display images. Have even tried placing file:/// in front of C: and no luck.
The image not displaying within my compiled software. What am I doing wrong?
If I use:
$imgpath = $storagelocation.'math_001/images/product.jpg';Then echo:
background-image: url(<?php echo $imgpath; ?>);This is the results:
background-image: url(C:\Users\oleteacher\AppData\Local\math2020\{C5B591E0-B0C2-4801-A38F-23936D091CB3}\math_001/images/product.jpg);I need to work out of the users appdata folder and display images. Have even tried placing file:/// in front of C: and no luck.
The image not displaying within my compiled software. What am I doing wrong?


