Month: May 2008
how to deal with a sentence as a page title?
<?php $hotel=” How to study PHP “; $hotel= trim($hotel); $array=explode(” “, $hotel); $hotel=implode(“-“, $array); echo ($hotel); ?>
How to change phpld title seperator
Want to change the seperator between categories in the title tag? At the moment the phpld generate the title as: home – category – category – category
Get current url
<?php //get the current page URL that is shown in the browser URL window function curPageURL() { Â $pageURL = ‘http’; Â if ($_SERVER[“HTTPS”] == “on”) {$pageURL .= “s”;} Â $pageURL .= “://”; Â if ($_SERVER[“SERVER_PORT”] != “80”) { Â $pageURL .= $_SERVER[“SERVER_NAME”].”:”.$_SERVER[“SERVER_PORT”].$_SERVER[“REQUEST_URI”];