Skip to content
  • Register
  • Login

LT BYTES

Learn Tech Bytes

  • Home
  • AWS
  • PHP

Month: July 2010

Posted inUncategorized

days difference in php

by SuryaJuly 27, 20100

$date2 = ‘2010-06-20’;$date1 = ‘2010-06-24’;$days = (strtotime($date1) – strtotime($date2)) / (60 * 60 * 24);echo $days; some other ways are also there. can any one … days difference in phpRead more

Posted inUncategorized

Get extension of filename in php

by SuryaJuly 26, 20100

$path_info = pathinfo(‘lib.inc.php’); echo $path_info[‘extension’];

Posted inUncategorized

Validate Image Using Javascript

by SuryaJuly 19, 20100

function validate_image(){ frmobj = document.frmRegistration; //Here “frmRegistration” is Form name var image_file = frmobj.upload_file.value; /*Here “upload_file” is in this tag like input type=”file” name=”upload_file” */ … Validate Image Using JavascriptRead more

Posted inUncategorized

create dynamic images in php

by SuryaJuly 18, 20100

//Create Image By Url Method – 2function create_image_by_url2($url){ $path_parts = pathinfo($url); copy($url,$path_parts[‘basename’]); }create_image_by_url2($url);

Posted inUncategorized

create dynamic images using php

by SuryaJuly 18, 20100

$url = “http://technmarketing.com/wp-content/uploads/2009/03/twitter-wallpaper2.jpg”; //Create Image By Url Method – 1function create_image_by_url1($url){ $target_path = $url; $imgdir=””; $path_parts = pathinfo($url); $file_name = $path_parts[‘basename’]; $imgext = $path_parts[‘extension’]; if($imgext==’jpg’ … create dynamic images using phpRead more

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