Quantcast
Channel: ExeOutput for PHP - G.D.G. Software Forum
Viewing all articles
Browse latest Browse all 1024

Image paths using $storagelocation

$
0
0

@oldteacher wrote:

Having issue using $storagelocation. for image paths.

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?

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 1024

Trending Articles