Skip to content
  • Register
  • Login

LT BYTES

Learn Tech Bytes

  • Home
  • AWS
  • PHP

Php

Posted inAll / Php

Turn off errors in PHP

by SuryaApril 18, 2011December 4, 20230

In php file: <?php ini_set(‘display_errors’, false); ?> In Htaccess file: php_flag display_errors 0

Posted inAll / Php

Get hours, minutes and second of the current time using date function in php

by SuryaJanuary 15, 2011December 4, 20230

<?php $hours = date(“H”); $minutes = date(“i”); $seconds = date(“s”); ?>

Posted inAll / Php

Difference between include and require

by SuryaJanuary 15, 2011December 4, 20230

require(): It will cause a fatal error and halt the execution of the script if the file not found. include(): If the file not found … Difference between include and requireRead more

Posted inAll / Php / Wordpress

Create simple wordpress widget

by SuryaOctober 27, 2010December 4, 20230

Take new php file then copy the below code to file and put the file in plugins folder and activate the plugin Now you can … Create simple wordpress widgetRead more

Posted inAll / Php / Wordpress

wordpress admin menu page

by SuryaOctober 27, 2010December 4, 20230

  /* Plugin Name: Simple Admin Menu */ add_action(‘admin_menu’, ‘mt_add_pages’); function mt_add_pages() { add_menu_page(‘Main Page’,’Main Page’, ‘manage_options’, ‘main-page-handle’, ‘main_page’ ); add_submenu_page(‘main-page-handle’,’Sub Page1′, ‘Sub Page1’, ‘manage_options’, … wordpress admin menu pageRead more

Posted inAll / Php

Generate random unique value in php

by SuryaJanuary 30, 2010December 3, 20230

<?php function random_code() { $string = “ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz0123456789″; $randval = ” ; for($i = 0;$i <= 10;$i++) { $num = rand() % 62; $tmp = substr($string, … Generate random unique value in phpRead more

Posts navigation

Previous 1 2

Recent Posts

  • Deploying AWS Lambda with Docker & Serverless Framework
  • Create and Update SNS Subscription Filter Policy using Python Boto3
  • Turn on errors in PHP
  • Php coding standards
  • WordPress plugin to save contact information to database

Recent Comments

No comments to show.

Archives

  • February 2025
  • January 2024
  • December 2023
  • March 2013
  • December 2012
  • April 2012
  • August 2011
  • April 2011
  • February 2011
  • January 2011
  • October 2010
  • July 2010
  • June 2010
  • January 2010
  • December 2009
  • November 2009
  • October 2009

Categories

  • All
  • AWS
  • Javascript
  • Joomla
  • Php
  • Python
  • Sql
  • Uncategorized
  • Wordpress
Copyright © 2025 LT BYTES.
Powered by WordPress and BNM.
  • Home
  • AWS
  • PHP