PHP
Category
35 posts found
PHP Server Side Form Validation is highly recommended and unbreakable from browser like front-side JavaScript validation easily crack from browser, and JavaScript form validation is user friendly and JavaScript validation can save user time and even user don’t need to fill again and again form fields if fails from php
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
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
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
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
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
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
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
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
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
TOP COMMENTED
laravel remove public from url
This is weird thing from #laravel on fresh installation, so…
3 comments
Pakistani Web Designer’s Web Designing…
Web Design Illustrations - IdealHut.com by Design-Maker…
2 comments
MEASURE UNITS PX, CM, IN, MM CONVERSION…
2 comments
28 Android IOS Mobile Application Frameworks
jQuery Mobile Ionic: Advanced HTML5 Hybrid Mobile App Framework Mobile…
2 comments
20 jQuery HTML5 Video Player for Website
Video.js The Player Framework MediaElement.js - HTML5 video player Create…
2 comments