Skip to content
  • Home
  • About
  • Contact

How To Find It

Tips For Program

  • Home
  • HTML
    • HTML
    • Jquery & Javascript
    • css
  • Php
  • sql
  • wordpress
    • woocommerce
      • Woocommerce Hooks
    • Plugin developement Tips
  • General

Category: Php

Displaying php errors

Displaying php errors

February 10, 2017October 10, 2017 admin
Enable error displaying in php, add any of the following code in your config file: ini_set(‘display_errors’, 1); ini_set(‘display_startup_errors’, 1); error_reporting(E_ALL); d... Read More
Redirecting to a specific page or website url in php

Redirecting to a specific page or website url in php

January 18, 2017 admin
Redirecting to a specific page or website url in php header(“Location : siteurl.php”);... Read More
Allowed memory size of   bytes exhausted (tried to allocate  bytes) in php

Allowed memory size of bytes exhausted (tried to allocate bytes) in php

December 27, 2016May 8, 2017 admin
Just add this below line to before line of you getting error in your php or config file ini_set('memory_limit', '-1');   Here are two simple methods to increase the limit on shared hosting: If yo... Read More
How to get whole part of a number in php

How to get whole part of a number in php

December 14, 2016 admin
<?php $num=7.05; echo floor($num); ?>... Read More
Code to copy video iframe code once clicking a button in php

Code to copy video iframe code once clicking a button in php

December 2, 2016 admin
Using javascript define a fucntion: function copy(content) { var aux = document.createElement(“input”); var var1='<video width=”640″ height=”440″ controls>... Read More
Code to copy text once clicking a button

Code to copy text once clicking a button

December 2, 2016 admin
Using javascript define a fucntion: function copy(url) { var inputing_var = document.createElement(“input”); inputing_var.setAttribute(“value”, url); document.body.appendChild(... Read More
To get Structured data using print_r statement

To get Structured data using print_r statement

November 26, 2016 admin
To get structured data while printing a variable in php, first print a “pre” statement: Then print variable. echo “<pre>”; print_r($var);... Read More
Difference between break and exit

Difference between break and exit

November 15, 2016 admin
Break : Exit from the current loop it executing. Exit: Exit from the entire program after exit calling.... Read More
Cross domain issue in php

Cross domain issue in php

October 25, 2016October 25, 2016 admin
Use below code on the top of page with other domains URL. <?php header(“Access-Control-Allow-Origin: http://sample.com”); ?> If you want to add multiple cross domains add as follows:... Read More
  • 4 of 4
  • « Previous
  • 1
  • 2
  • 3
  • 4

Recent Posts

  • Advanced WordPress Interview Question
  • How to include styles and scripts on wordpress admin pages?
  • Page Template dropdown missing from page attribute in wordpress
  • How to add a logo uploading field in customize settings in wordpress
  • How to add a new page in wordpress admin

Categories

  • css (13)
    • Bootstrap (2)
  • General (14)
  • HTML (10)
  • Jquery & Javascript (39)
    • OOP javascript (11)
  • Php (39)
    • Amzon s3 and Php (3)
  • sql (2)
  • wordpress (154)
    • Hooks & Filters (1)
    • Plugin developement Tips (7)
    • woocommerce (50)
      • Woocommerce Hooks (17)
Theme Designed by InkHive. How to find it © 2016