Friday, December 13, 2013

10 Top Tips for Fuel Efficient Driving

10 Top Tips for Fuel Efficient Driving

1. Minimise your vehicle use
2. Drive in the right gear
3. Drive smoothly
4. Minimise fuel wasted in idling
5. Don't Speed
6. Minimise aerodynamic drag
7. Look after your vehicle's tyres
8. Use air-conditioning sparingly
9. Travel light
10. Keep your vehicle in good condition

For more information visit  Artyintelli folow us on facebook

Thursday, October 24, 2013

Allow only Alphanumeric in the Textbox using Javascript

Java Script:

<script type = "text/javascript">
   
var isShift=false;
         
      function isAlphaNumeric(keyCode)
      {    
            if (keyCode == 16)
                isShift = true;

            return (((keyCode >= 48 && keyCode <= 57) && isShift ==false) || (keyCode >= 65 && keyCode <= 90) || keyCode == 8 ||  keyCode == 35 ||  keyCode == 36 || keyCode == 37 || keyCode == 39 || keyCode == 46 || (keyCode >= 96 && keyCode <= 105));

                        // 8  - Backspace Key
            // 35 - Home Key
            // 36 - End Key
            // 37 - Left Arrow Key
            // 39 - Right Arrow Key
            // 46 - Del Key  
}    


function KeyUp(keyCode)
{
      if (keyCode == 16)
            isShift = false;
}

</script>

The above part copy and paste in your page head section

HTML:
<body>   
    <input type="text"  onkeydown="return isAlphaNumeric(event.keyCode);" onkeyup="KeyUp(event.keyCode);" />
</body>

IN php it done as below


if(preg_match('/[^a-z_\-0-9]/i', $string))
{
  echo "not valid string";
}

For more freelance projects and jobs visit www.vkender.com

Wednesday, September 18, 2013

Increase PHP Script Execution Time

Increase PHP Script Execution Time Limit Using ini_set()


If you have a HUGE php file. sometimes  script from timing out, you need to increase the execution time of the specific processing script. Here's how I do it.

The PHP

ini_set('max_execution_time', 300); //300 seconds = 5 minutes
Place this at the top of your PHP script .

For more freelance projects and jobs visit www.vkender.com 
more than 150000  php projects and 5000 php freelancer available here

Friday, September 13, 2013

Freelance Conferences and freelance Seminar in delhi india

Freelance  Conferences and freelance Seminar in delhi india


Vkender will announce their plans for  conference on Freelancing. 
Vkender is cooking up some great plans to make this year bigger, brighter, and full of loads of great content. Plus Vkender got a fair share of great plans for evening social events to make sure that you really get to know your fellow conference attendees and make connections that will be helping you out professionally throughout the year.
So mark your calendars down for the week of  15th-20th Nov, and join Vkender in Delhi for the premier Freelancing event of the year. Freelance Conference Registration will be opening soon, and keep an eye out for Vkender News.

Thursday, April 18, 2013

10 Advanced Tips To Improve Your PHP Programming


10 Advanced PHP Tips To Improve Your PHP Programming

I was doing some reading on advanced PHP topics, you know, things to help me become a better PHP programmer,many programmer sometimes for using brackets when i do not need to write brackets. I must say it has some very valid and interesting points (For those who do not feel like reading here are the 10 tips)

1-Use a SQL Injection cheatsheet (they link to this one)
2-Know the Difference Between Comparison Operators
3-Shortcut the else (less use of else)
4-Drop those Brackets
5-Favor str_replace() over ereg_replace() and preg_replace()
6-Use Ternary Operators
7-Mem cached
8-Use a Framework
9-Use the Suppression Operator Correctly
10-Use isset instead of strlen

For more freelance projects and jobs visit www.vkender.com 
more than 150000  php projects and 5000 php freelancer available here