# Images that don't need php,

**URL:** <https://forum.getkirby.com/t/images-that-dont-need-php/22695>\
**Category:** Questions\
**Created:** [June 26, 2021, 1:02pm UTC](https://forum.getkirby.com/t/images-that-dont-need-php/22695 "2021-06-26T13:02:10Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![ete.cool](https://avatars.discourse-cdn.com/v4/letter/e/65b543/32.png) [@ete.cool](https://forum.getkirby.com/u/ete.cool)\
**Post date:** [June 26, 2021, 1:02pm UTC](https://forum.getkirby.com/t/images-that-dont-need-php/22695/1 "2021-06-26T13:02:10Z")

</div>

hello all,  
I just uploaded images that don’t need php It works with “img src=”…/content/~~".  
was fine on localhost, but when I upload it to the server, it doesn’t show up.  
Is there any other rules to load image in php?  
thanks…!

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [June 26, 2021, 3:50pm UTC](https://forum.getkirby.com/t/images-that-dont-need-php/22695/2 "2021-06-26T15:50:57Z")

</div>

Kirby copies images to the media folder to make them publicly accessible when their URL is called. While content in the content folder is by default blocked via a rules in the default `.htaccess` file.

It also doesn’t really make sense to treat the files like in a static html file, if you want to call each image manually without PHP (i.e. without using Kirby’s API), then it sort of defeats the purpose of using a CMS, I think.

---

<div class="post-metadata">

**Author:** ![ete.cool](https://avatars.discourse-cdn.com/v4/letter/e/65b543/32.png) [@ete.cool](https://forum.getkirby.com/u/ete.cool)\
**Post date:** [June 26, 2021, 4:06pm UTC](https://forum.getkirby.com/t/images-that-dont-need-php/22695/3 "2021-06-26T16:06:40Z")

</div>

Thanks! But The things I want to use as static images are the things that don’t need to be modified going forward.I need to use light gallery.js but with php loading method, it is not working… so you mean, there is no way to load image?  
Thanks!

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [June 26, 2021, 4:19pm UTC](https://forum.getkirby.com/t/images-that-dont-need-php/22695/4 "2021-06-26T16:19:13Z")

</div>

> [@ete.cool](#):
>
> I need to use light gallery.js

Could you post the PHP code you have tried? And a link to the JS library. I haven’t seen a library that wouldn’t work with PHP yet.

---

<div class="post-metadata">

**Author:** ![ete.cool](https://avatars.discourse-cdn.com/v4/letter/e/65b543/32.png) [@ete.cool](https://forum.getkirby.com/u/ete.cool)\
**Post date:** [June 26, 2021, 4:32pm UTC](https://forum.getkirby.com/t/images-that-dont-need-php/22695/5 "2021-06-26T16:32:00Z")

</div>

Thanks!  
[Here](http://andreasschmitten.com/works/f)  
In “a”, it is working… but in other categories, can not load same carousel with php load. So I linked with content/works/01\_a blabla… can not loading…  
Thank you very much…!

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [June 26, 2021, 4:34pm UTC](https://forum.getkirby.com/t/images-that-dont-need-php/22695/6 "2021-06-26T16:34:33Z")

</div>

Well, my question was for the actual PHP code you tried that did not work. And what Javascript library you are using for the gallery.

---

<div class="post-metadata">

**Author:** ![ete.cool](https://avatars.discourse-cdn.com/v4/letter/e/65b543/32.png) [@ete.cool](https://forum.getkirby.com/u/ete.cool)\
**Post date:** [June 26, 2021, 5:25pm UTC](https://forum.getkirby.com/t/images-that-dont-need-php/22695/7 "2021-06-26T17:25:34Z")

</div>

Owl carousel…  
Thanks!

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [June 26, 2021, 5:34pm UTC](https://forum.getkirby.com/t/images-that-dont-need-php/22695/8 "2021-06-26T17:34:19Z")

</div>

> [@ete.cool](#):
>
> Owl carousel…

Ok, I’ve used that library in the past. No reason why it shouldn’t work with PHP code. Asking last time: Please post the code you tried. I can’t help you if you don’t provide the needed information.

---

<div class="post-metadata">

**Author:** ![ete.cool](https://avatars.discourse-cdn.com/v4/letter/e/65b543/32.png) [@ete.cool](https://forum.getkirby.com/u/ete.cool)\
**Post date:** [June 26, 2021, 7:27pm UTC](https://forum.getkirby.com/t/images-that-dont-need-php/22695/9 "2021-06-26T19:27:55Z")

</div>

Ok I will… so…I ask you one more time… just for check… there is no way to load img without php. Right?  
Thanks

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [June 26, 2021, 7:33pm UTC](https://forum.getkirby.com/t/images-that-dont-need-php/22695/10 "2021-06-26T19:33:17Z")

</div>

> [@ete.cool](#):
>
> there is no way to load img without php.

I guess you could use relative links if you modify the `.htaccess` file. But honestly, in my opinion such relative links are not what I would ever use myself. Nor would I want to hard-code images into a template
