sourcecode

Tag

33 posts found

8 Oct 2015
3K
No Comments

PHP 5.5 and in older version constants cannot store directly array In this matter we are allowing to upload limited file’s extensions and this is not good codding practice to defined allowed extensions and check every file on uploading code because we needs to store allowed extensions in a single

Post in

6 Oct 2015
4.16K
No Comments

I got issue lost data  from new $variable of array_merged because array_merge function cannot merged if any passed parameter type not array, for example I merged two array for email template, the first array from $_POST and second array from Database but $user_data will be null If user’s not found from

Post in

22 May 2015
2.31K
No Comments

In action url of methods we just only allow user to submit ajax request on specified url or doing another stuff, Here is I am share examples of check ajax request on custom #PHP #CodeIgniter #Laravel. Check ajax request in core PHP Here is how to check and its best way

Post in

17 Mar 2015
1.11K
No Comments

This is big storage problem in computer, mobiles and all other devices, heavy and camera images consumed too many storage and website will become heavy if heavy images used on websites I also use my php code to lose images weight without losing dimension and quality of image Here is

Post in

12 Dec 2014
0.79K
No Comments
Calculate time difference total hours minutes months years

I developed my custom code to get difference between two dates, code is different from #php date_diff because my code calculate the total number of seconds, minutes, days,  months and years. Its best way to define this code in function to use any where of project where you want it,

Post in

5 Jul 2014
1.1K
No Comments

In normally we cannot trigger with events of javascript keyup, keydown, keypress, when user typing done, I am also faced that challenge on a project where I am doing job of programmer, so I want to share that technique how to call your function when user done typing, I have created

Post in

3 Jul 2014
1.66K
No Comments

Its a great feature of #html5 to paste a text data into a element with contenteditable attribute, but when you copy data its copy the rich text with format after paste of content its looks ugly in element, so here code its won’t make ugly pasted content

Post in

3 Jul 2014
1.63K
No Comments

Its really sometimes we need to call two functions, first we user click on specified element and another when user clicked on not specified element, Eg: you have a textbox and control panel div of text box, but you want to call a function to show control div of  textbox when

Post in

19 Apr 2014
0.75K
No Comments

In html on anchor tag without a href link we had # into href but when we click on that href with # hash its moved scroll to top position of page and add # in end of the page url, and we feeling annoyed on click that link, here

Post in