PHP

Category

33 posts found

10 Jul 2018
0.11K
No Comments

I need that function to delete 10 minutes old files from my project, remove_x_minutes_old_files function required two parameters $path for directory path and $in_minutes for minutes how much old file you want to delete

Post in

15 May 2018
0.31K
No Comments
PHP Cli Create zip file with password – 7zip

You cannot create zip file with password in php unless update php version from older to new atleast php 7.2. The following is best solution to create zipfile with password through 7zip or any other exe file with #cli command. Create zip file with password in command line interface (CLI).

Post in

12 Aug 2016
3.48K
No Comments

Array column #php function added after release version of (PHP 5 >= 5.5.0, PHP 7), If error occurred please check the version of php by calling #php builtin function phpversion(); this function will works if you have php version greater than 5, If array_column function works on localhost and not defined on live

Post in

11 Aug 2016
2.93K
No Comments
PHP print triangle diamond

This is easy and too much loop less code to write diamond and triangle shapes Following code is diamond with the technique of css inline styles Result of diamond code ************************************ Following code is normal triangle with the technique of css inline styles Result of triangle code * ** ***

Post in

29 Jul 2016
3.06K
No Comments
PHP check is mobile tablet or desktop

Now modern days we are using many type of devices to access the websites and applications. Websites and application are showing different sizes contents and media data for smartphones, tablets and desktops like showing tiny size of logo of profile image showing for mobile, medium size showing for tablet iPad devices and the

Post in

27 Jul 2016
2.2K
No Comments

Define get_avg function This function can give result with an array or argument, If need this code copy and defined it in your project library but don’t republish it anywhere share and comment or improvements suggestion for better code will be appreciated. Call get_avg function with array argument. The function return

Post in

30 Mar 2016
2.58K
2 Comments

This code is rare used in #projects but I need it to generate email with domains for listings, in listings I have different types of complete url and domains I wrote this code to generate email address contact@sdtuts.com Here is some of results example of function

Post in

29 Feb 2016
3.29K
No Comments

I was working on my site featuring posts for dynamic data which I can get from csv and show listing in Ordinal number format then I think it should be a define function to dynamically set ordinal number format. Here is function I have defined and posted here. In function

Post in

12 Oct 2015
6.21K
No Comments
PHP Server Side Form Validation tutorial

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

Post in

8 Oct 2015
2.82K
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