DevArticles.In

Tips, Tricks, References and Bookmarks

  • Home
  • Hindi to Unicode
  • About
  • Contact

Category: PHP

Creating Custom Shortcode in WordPress

Arvind KumarHTML and CSS, Miscelleneous, PHP, WordPressLeave a Comment on Creating Custom Shortcode in WordPress
wordpress logo

With a lot of customization with the theme WordPress also provide us to create our own Custom Shortcode. Basically, shortcodes are the small piece of code which let user to add dynamic content in WordPress posts, pages or sidebar widgets.…

Read More→

file_get_contents(): SSL operation failed with code 1 certificate verify failed

Arvind KumarPHPLeave a Comment on file_get_contents(): SSL operation failed with code 1 certificate verify failed

I got this error when I moved a site to new server. It was a simple file_get_contents() call to read an image file. If i copy pasted the url of the same file to open in browser it would open…

Read More→

How to know the location of a function defined in PHP

Arvind KumarPHPLeave a Comment on How to know the location of a function defined in PHP
A simple way to debug a php application in production mode

Sometimes you want to know the location of a function defined in your php application. For example you are debugging a large online web application or website. To continue debug you want to enter into a function to debug. You…

Read More→

How to Get Start & End dates of a Week by given Date

Arvind KumarPHP2 Comments on How to Get Start & End dates of a Week by given Date
A simple way to debug a php application in production mode

The following function gets start and end date of a week for a given date supplied in valid date string format. In the following function $week is the number of week in the year. For example the current week is…

Read More→

How to know whether a file exists in URL using PHP

Arvind KumarPHPLeave a Comment on How to know whether a file exists in URL using PHP

In PHP, to find whether a file exists in disk or on server we have: if(file_exists($filepath)) However is there a way to know whether a file exists in an url, such as, https://www.google.co.in/images/nav_logo242.png?

Create pdf preview thumbnail using php

Arvind KumarPHPLeave a Comment on Create pdf preview thumbnail using php

Following the stackoverlow answer http://goo.gl/z9IWCB I did everything correct as mentioned in the answer to create pdf preview thumbnail using php but I struck with an error as such as this. error no decode delegate for this image format `\path\filename.pdf’…

Read More→

Fully-formatted Time Difference between two Dates

Arvind KumarPHPLeave a Comment on Fully-formatted Time Difference between two Dates
A simple way to debug a php application in production mode

An useful php function to calculate a time difference between two dates given in sql format. If the newer date is not passed as second argument it would calculate the different between the old date and current time. So it…

Read More→

Create php array from select options

Arvind KumarPHPLeave a Comment on Create php array from select options
A simple way to debug a php application in production mode

There are many ways to create a dropdown select options list from a given array in any programming language like PHP. Please check how to create a select list from a PHP array. However in this case I will make…

Read More→

Useful PHP debug functions

Arvind KumarPHPLeave a Comment on Useful PHP debug functions
A simple way to debug a php application in production mode

Here are a few useful PHP debug functions. I wrote a similar post sometime ago posting the abbreviated “pr” function as a shorthand replacement for the “prinr_r” or “var_dump” functions. Since then this function has changed a bit so re-posting…

Read More→

To print the table structure of MySQL table in PHP

Arvind KumarMySQL, PHPLeave a Comment on To print the table structure of MySQL table in PHP
A simple way to debug a php application in production mode

You can print the table structure of MySQL table in PHP using simple php script. All you need to do is to make a ‘describe table’ call and process it using php script, similar to one you use to print…

Read More→

Posts navigation

1 2 … 5 Next

Recent Posts

  • React Final Form + React DatePicker Implementation with Validations
  • Steps to Set up PasswordLess SSH Login on Ubuntu with Key Pair
  • How to select or update MySQL table rows by even or odd number field value
  • How to create password reset token manually in Laravel?
  • How to make a column NOT NULL or NULL in Laravel migration

About Arvind

Arvind Thakur is a Freelance Web Developer and Internet Blogger. Before starting as a freelancer in March 2009 he worked in three software companies. Recently he has managed to build up a small web development team by the name of Inimist Technologies in Chandigarh, India. >> know more

.htaccess activecollab Ajax Apache CakePHP CakePHP3 cakephp tips & tricks captcha component Create css csv custom database date Error How to Javascript jEdit tips & tricks Joomla! jQuery Keyboard shortcut laravel Linux Linux Tips & Tricks mobile phone model multiple MySQL mysql tips & tricks Nokia E5 pagination PHP php code php tips & tricks plugin shortcuts tips & tricks validation virtual host Windows Windows 7 wordpress wordpress tips & tricks wp-ecommerce

  • January 2023
  • December 2022
  • November 2022
  • October 2022
  • September 2022
  • July 2022
  • June 2022
  • May 2022
  • March 2022
  • February 2022
  • January 2022
  • October 2021
  • September 2021
  • August 2021
  • July 2021
  • June 2021
  • March 2021
  • November 2020
  • July 2020
  • May 2020
  • April 2020
  • March 2020
  • February 2020
  • January 2020
  • December 2019
  • November 2019
  • October 2019
  • September 2019
  • August 2019
  • June 2019
  • May 2019
  • April 2019
  • February 2019
  • January 2019
  • December 2018
  • November 2018
  • October 2018
  • September 2018
  • August 2018
  • June 2018
  • October 2017
  • August 2017
  • February 2017
  • December 2016
  • October 2016
  • September 2016
  • August 2016
  • July 2016
  • May 2016
  • October 2015
  • August 2015
  • July 2015
  • June 2015
  • March 2015
  • February 2015
  • January 2015
  • November 2014
  • September 2014
  • August 2014
  • July 2014
  • April 2014
  • February 2014
  • January 2014
  • December 2013
  • November 2013
  • October 2013
  • September 2013
  • August 2013
  • July 2013
  • May 2013
  • April 2013
  • March 2013
  • February 2013
  • January 2013
  • December 2012
  • November 2012
  • October 2012
  • September 2012
  • August 2012
  • July 2012
  • June 2012
  • May 2012
  • April 2012
  • March 2012
  • February 2012
  • January 2012
  • December 2011
  • November 2011
  • October 2011
  • September 2011
  • August 2011
  • July 2011
  • June 2011
  • May 2011
  • April 2011
  • March 2011
  • February 2011
  • January 2011
  • December 2010
  • November 2010
  • October 2010
  • September 2010
  • August 2010
  • July 2010
  • June 2010
  • May 2010
  • April 2010
  • March 2010
  • January 2010
  • December 2009
  • November 2009
  • October 2009
  • September 2009
  • August 2009
  • June 2009
  • May 2009
  • April 2009
  • March 2009
  • February 2009
Copyright © All rights reserved.
Blog Kit by WP Charms