Use this function to convert digits to roman numbers in php <?php function romanic_number($integer, $upcase = false) { …
Other
Use the below given function for it function addhttp($url) { if (!preg_match(“~^(?:f|ht)tps?://~i”, $url)) { $url = “http://” . $url; }…
Below is the code for showing google plus followers. You just need to replace your profile url in data-href <script…
Use this function <?php /* USER-AGENTS================================================== */function check_user_agent ( $type = NULL ) { $user_agent = strtolower ( $_SERVER[‘HTTP_USER_AGENT’] ); …
The code The following code assumes that the data to be exported are stored in a MySQL database, but it…
By default most web servers across the internet are configured to treat as PHP files only files that end with…
Use mb_substr for multibyte character encodings like UTF-8. substr just counts bytes while mb_substr counts characters.
It is not safe to turn on allow_url_fopen in php.ini due to various security reasons . You should use curl…
Many people face problem when they try to use ajax in cross domain (i.e from any other website). For example…
1.html <div id=”toTop” style=”display:none”>Back to Top</div> 2. JS<script language=”javascript”>jQuery(function() { jQuery(window).scroll(function() { if(jQuery(this).scrollTop() != 0) { jQuery(‘#toTop’).fadeIn(); …