Skip to content
Menu
Smartttips Smartttips
  • Home
  • About Us
    • Privacy Policy
  • Web Tips
    • PHP Tips
      • CodeIgniter
      • Yii Framework
      • SocialEngine
      • zendframework
      • SQL
    • jQuery
    • CSS
    • Internet
    • Google
    • whatsApp
    • Soma Messenger
    • Useful Sites
  • General Tips
    • Top 10 Lists
    • Onam wishes and Greetings
    • Travel and Tourism
  • Free Web Tools
    • English To Malayalam Converter
    • Malayalam To English Converter
    • English To Tamil Converter
    • Manglish To Malayalam Converter
    • Other Free Web Tools
  • Jobs
  • Contact
Smartttips Smartttips

Tag: PHP

function to remove trailing slashes from URL

Posted on May 20, 2013 by smarttips

php function to remove trailing slashes from URL <?php private function _curSiteURL() { $pageURL = ‘http’; if ($_SERVER[“HTTPS”] == “on”) {$pageURL .= “s”;} $pageURL .= “://”; $pageURL .= $_SERVER[“SERVER_NAME”].dirname($_SERVER[‘SCRIPT_NAME’]).’/’; if (substr($pageURL, -1) == ‘/’ ): return substr($pageURL, 0, -1); else: return $pageURL; endif; } ?>

+

PHP foreach loop key value

Posted on May 16, 2013 by smarttips

PHP foreach loop key value foreach($data  as $key => $value): echo $key; echo $value; endforeach; Example: <?php foreach($this->universities as $key => $value): if($key == $group->group_id): echo $value; endif; endforeach; ?>

+

php substr function

Posted on May 13, 2013 by smarttips

substr() is used to limit the post length. Syntax:  substr($string,start position,end position) Example: <?php echo substr(“Hello smarttips”,0,4); ?> Output:Hello

+

jquery smooth scrolling of internal anchor links

Posted on May 10, 2013 by smarttips

jquery smooth scrolling of internal anchor links <script> jQuery(document).ready(function(){ jQuery(‘a[href^=”#”]’).on(‘click’,function (s) { s.preventDefault(); var smarttarget = this.hash, $smarttarget = jQuery(smarttarget); jQuery(‘html, body’).stop().animate({ ‘scrollTop’: $target.offset().top }, 900, ‘swing’, function () { window.location.hash = smarttarget; }); }); }); </script> <ul> <li><h1>Contents</h1></li> <li> 1.&nbsp; <a class=”msection” style=”color:#1155CC” href=”#section_1″>Tes1</a></li> <li> 2.&nbsp; <a class=”msection” style=”color:#1155CC” href=”#section_2″>Test 2</a></li> </ul> <a id=”section_1″…

+

TinyMCE editor with file Upload and ajaxfilemanager plugin

Posted on May 8, 2013 by smarttips

TinyMCE editor with file Upload and ajaxfilemanager plugin TinyMCE is a common editor used in php applications. It includes all common features of editors like fck editor,ck editor..etc. One thing is missing in TinyMCE is file uploading. This editor requires extra plugin for getting file upload feature. Steps for implementing TinyMce photo upload feature is…

+
  • Previous
  • 1
  • 2
  • 3
  • 4
  • Next

Type to Search

Popular Posts

  • Find Vehicle ownership Details in Kerala-Through vahan Online
  • Free Online Tools for Web Statistics
  • PhpMyAdmin Login error – Login without a password is forbidden
  • Increase PHP Script Execution Time in zendframework ?
  • Umm Al Quawain Zoo-The Zoo Wildlife Park-Zoo In UAE

Categories

  • Android
  • Apple
  • Automobile
  • Banking
  • Bevco
  • BevQ App
  • Business
  • CodeIgniter
  • Computer
  • Cricket-IPL-2020
  • CSS
  • Database
  • Design
  • Digital Marketing
  • Digital marketing jobs
  • Du
  • Easy Malayalam Typing
  • Entertrainment
  • Etisalat
  • Facebook
  • Famous Birthdays
  • FIFA World Cup Live Streaming
  • Food & restaurants
  • Free Web Statistics Tools
  • G K
  • Games
  • General
  • git
  • GK
  • Google
  • Hardware
  • Health
  • Huawei
  • Instagram
  • Internet
  • iOS
  • iPad
  • iPhone
  • Java
  • javaScript
  • Jobs
  • jQuery
  • Kissan Card India
  • lifestyle
  • LiFi
  • Linux
  • Make in India
  • Mobile Phones
  • Movies
  • Ms Excel
  • Networking
  • News
  • Nodejs Framework
  • opencart
  • Opensource
  • Others
  • Outlook
  • photography
  • Photoshop Tips
  • PHP
  • PHP Project Ideas
  • phpMyadmin
  • Politics
  • PUBGMOBILE
  • SEO
  • Server
  • SMO
  • SocialEngine
  • Softwares
  • Soma Messenger
  • Sports
  • SQL
  • Technology
  • Telecom
  • Top 10 Lists
  • Travel and Tourism
  • UAE Directory
  • Uncategorized
  • Useful Sites
  • Vechicles
  • Videos
  • Web Designer
  • Web Tips
  • whatsApp
  • WiFi
  • Windows
  • windows 10
  • windows 11
  • wordpress
  • World
  • Yii Framework
  • youtube
  • zendframework

smart Tags

Android apache Baahubali baahubali releasing date cinima CodeIgniter config charset and UTF-8 Codex content css data usage edge case elementum Facebook famous birthdays Fast youTube video downloading featured image General Knowledge google Google chrome how to lose weight fast with exercise how to lose weight fast without exercise how to lose weight in 7 days HTML Color Codes iconv() detect illegal char in input image iOS iPad javascript jQuery Kerala Maecenas Microsoft Excel microsoft windows 10 Movies Mysql PHP php job vacancy php zend framework SocialEngine SQL Commands sundar pichai template ubuntu web tips zend framewrok
©2026 Smartttips | Powered by Superb Themes
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.