css - Find current domain URL for universal script PHP -


you can this?

background-color: url(".<?php current domain ?>."/shop/img/test.jpg"); 

i want current url create universal scripts site

you can use

$_server['php_self'];  

or

$_server['request_uri']; 

Comments

Popular posts from this blog

apache - setting document root in antoher partition on ubuntu -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -

Process 'command 'F:\android-sdk\build-tools\21.1.2\aapt.exe'' finished with non-zero exit value 1 -