Home » Tag Archives: PHP

Tag Archives: PHP

Laravel 5.6.12 Released

Laravel has come a long way becoming better with each new release. The new release 5.6.12 added support for signed routes and URLs along with quite a few other new additions. The signed routes were added by Taylor Otwell, which provides a few new methods you can use to generate a signed route and a temporary signed route. For example, if you have ...

Read More »

Get youtube video time duration

website development

Use the following PHP function will return the YouTube video duration.Before that following the step given below Steps for get Get youtube video time duration. 1.Create one Google API and get API key from https://console.developers.google.com At the time of creating api please leave the option blank “creating api Accept requests from these HTTP referrers (web sites) (Optional)”. So your  requests ...

Read More »

Major security issues facing by the websites

  Vulnerabilities Severity 1) Cross Site Scripting HIGH 2) File Upload Vulnerability HIGH 3) Directory Listing Vulnerability HIGH 4) Unencrypted Login Pages HIGH 5) Session Hijacking HIGH 6) Cross Site Request Forgery(csrf) HIGH 7) Weak Captcha Implementation MEDIUM 8) Cross Frame Scripting(css) MEDIUM 9)Internal Error Handling MEDIUM 10)Cookies are not marked as HTTPOnly LOW Recommendations • Random Tokens should be ...

Read More »

Zend magento(PHP) developer vacancy at kadavanthra cochin

There is a good opportunity  of  Zend/magento developer at  kadavanthara. Magento is a + . If some body join he will be the 4th person in that company. Job Position: PHP zend/magento developer. Salary: Negotiable Experience:   2+ yrs Requirement:Immediate Interested candidates can send your resume to aneesh@2HATSLOGIC.COM Contact No: +91 9526138575 Note:Please put reference of  Mr. anish Ravidranath

Read More »

How to download or print a page using PHP and javascript

jQuery(‘.payment-print’).live(‘click’, function() { var sUrl = jQuery(‘#base-url’).val() + ‘/jobs/paymentprint/id/’ + jQuery(this ).attr(“id”); jQuery.post(sUrl, function(data){ var HTML = data; var WindowObject = window.open(” “, “PrintWindow”, “width=769,height=601,top=40,left=40,toolbars=no”); WindowObject.document.writeln(HTML); WindowObject.document.close(); WindowObject.focus(); WindowObject.print(); WindowObject.close(); }) });

Read More »

function to remove trailing slashes from URL

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; } ?>

Read More »

PHP foreach loop key value

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; ?>

Read More »

jquery smooth scrolling of internal anchor links

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″ name=”section_1″></a> <h1>1.Test1</h1> <p>Test content </p>

Read More »

TinyMCE editor with file Upload and ajaxfilemanager plugin

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 1.Free Download TinyMce Editior 2. TInyMce ...

Read More »