What do you want to save?
Add Code snippet
New code examples
-
PHP 2021-09-06 12:31:02
base url in php
Try this: <?php echo "http://" . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI']; ?> Learn more about the $_SERVER predefined variable. If you plan on using https, you can use this: function url(){ return sprintf( "%s://%s%... Add solution