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

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

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