PHP

Category

33 posts found

6 Oct 2015
3.32K
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.05K
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
0.79K
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.57K
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.41K
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.41K
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.38K
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.6K
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.16K
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