PHP

Category

31 posts found

17 Mar 2015
0.76K
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.56K
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

27 Nov 2014
0.4K
No Comments

There is different way to access array and object many developers are use array instead object, if any a data get object and need to convert from object to array. Some are may be prefer to use object instead array, here is code example to quickly convert your large amount

Post in

3 Nov 2014
0.4K
No Comments
File extension validation on upload will harmful for server

Please do not validate file extension on uploading file from user Hackers are created a fake jpg image with no preview and they add code encode on base64 or  gzinflate on picture source when you will open that image on notepad editor you will see code like if you just

Post in

15 Sep 2014
0.37K
No Comments

Page template system is awesome feature, this featured in wordpress to create your own template like single column data template, double column data template to show pages data as you want to in template, . Develop template name in php files for custom #cms, I am just showing in quick method

Post in

13 Sep 2014
0.56K
No Comments

CI Codeigniter Fatal error: Call to a member function userdata() on a non-object Codeigniter provides in helper to defined $CI and used in functions helper, in some versions of codeigniter it cannot load on defined function in functions helper, in older versions it we just load in variable called $CI

Post in

13 Sep 2014
0.15K
No Comments

There no any function available in php to detect string, this technique is used when user type login name with CAPITAL CASE, CameL caSe or Title case, web developer also prevent these type cases of string for user account loginanme because they assigned unique column of username in database, I wanted to use

Post in

5 Jul 2014
0.17K
No Comments

FUNCTION TO CHECK IF IS EVEN NUMBER FUNCTION TO CHECK IF IS ODD 

Post in

11 Mar 2014
0.38K
No Comments

Define array to for shuffle keys Define array indexes to get random keys in while loop Assign array keys in random order, they will be shuffled in while loop and Print Array to see shuffled array key result This complete code of function

Post in