• Skip to main content
  • Skip to secondary menu
  • Skip to primary sidebar
  • Skip to footer
  • Home
  • About
  • Projects
    • GStaticMap WP Plugin
  • Contact
  • Privacy Policy

Lorenz Blog

All About Web & Mobile Application Development

  • Featured Articles
  • Gadgets
    • Android
    • Blackberry
  • Programming
    • Android
    • PHP
    • Java Script
    • MySQL
    • Postgresql
    • Flex
    • Web
  • Software
    • Mac OS
    • Windows
    • Linux
  • Web

PHP

How to Send Message to Google Cloud Messaging (GCM) Server Using JSON and PHP

August 25, 2012 by Lorensius Londa 8 Comments

Google Cloud Messaging (GCM) is a free service from Google that helps Android developers to send data from their servers to Android applications on Android devices. GCM is the next generation of Android Cloud to Device Messaging (C2DM) which is currently deprecated but still in service without … [Read more...] about How to Send Message to Google Cloud Messaging (GCM) Server Using JSON and PHP

How to Set Time Zone in PHP and MySQL

November 27, 2010 by Lorensius Londa 2 Comments

Sometimes when working with PHP-MySQL application, we have to explicitly set the time zone in our application in order to match the client's time zone. Since PHP 5.3, time zone setting is mandatory and have to be set explicitly in application or in PHP configuration file (php.ini, for global used) … [Read more...] about How to Set Time Zone in PHP and MySQL

How to Add WordPress Pages Without Adding Them to Navigation Menu

February 14, 2010 by Lorensius Londa 4 Comments

Sometimes when creating a new page, we do not want the page appears on the page navigaton menu. WordPress itself does not provide that option when creating a new page. To apply it, we must change it manually in the header.php file located in the current active theme directory. How to … [Read more...] about How to Add WordPress Pages Without Adding Them to Navigation Menu

How to Empty All Tables in a MySQL Database with PHP

January 26, 2010 by Lorensius Londa 6 Comments

This is a simple PHP script to empty all tables in a MySQL database. This script first will list all tables in a database using 'SHOW TABLES' statement then it will empty  each table using  'TRUNCATE TABLE' statement. About TRUNCATE Statement For an InnoDB table before version 5.0.3, … [Read more...] about How to Empty All Tables in a MySQL Database with PHP

How to Crop Image Using JavaScript and PHP

December 30, 2009 by Lorensius Londa 25 Comments

Image cropping is a usefull feature in web application that allows user to crop an image on a web page and save it for later use. This feature is commonly used in user's preferences tool for creating a profile image. User uploads an image from his local hardrive and then directly crop his desired … [Read more...] about How to Crop Image Using JavaScript and PHP

How to Create Facebook Application with PHP for Beginner

December 5, 2009 by Lorensius Londa 28 Comments

Facebook is the fastest growing social networking application that currently has more than 350 million active users. One of it's key features is Facebook Platform, that enable us to build  applications on Facebook. Currently there are a lot of Facebook  applications built by developers around the … [Read more...] about How to Create Facebook Application with PHP for Beginner

How to Zip Files or Folder On The Fly Using PHP

December 4, 2009 by Lorensius Londa 28 Comments

Sometimes in web programming when dealing with multiple files or directory download operations, it is better to serve the user with a single zip file rather than let the user manually download the file one by one using direct link download . To overcome this problem, we have to create a zip file on … [Read more...] about How to Zip Files or Folder On The Fly Using PHP

How to List A Directory Contents Using PHP (Recursive)

December 4, 2009 by Lorensius Londa 1 Comment

To list contents of a directory is simple in PHP, just use three PHP directory functions, opendir,  readdir and is_dir. The code: Here's the result: To start list contents, first open the directory handle using opendir then loop to read the entire contents using readdir. Check if … [Read more...] about How to List A Directory Contents Using PHP (Recursive)

How To Define Global Absolute Path in PHP

October 31, 2009 by Lorensius Londa 8 Comments

A path is general form of a filename or directory that specified a unique location in a file system. In web programming, a path  is used to define links (url) to documents and images or to include a specified library file. There are two standard ways to define a path: Absolute Path, is a path … [Read more...] about How To Define Global Absolute Path in PHP

Primary Sidebar

About Me

A husband, father of two, passionate software developer, diy lover and home baker who loves to learn new things. Read More…

  • Facebook
  • GitHub
  • Google+
  • Instagram
  • Twitter
  • YouTube

Featured Articles

How to Setup MQTT Server Using Mosquitto and Libwebsocket on Freebsd

Blue Bamboo P25 Printer Android Demo Application With Source Code

Simple JSON RPC Client for Android

How to Send Message to Google Cloud Messaging (GCM) Server Using JSON and PHP

Footer

Recent Comments

  • Aditya Dabas on About
  • Ayten Göksenin Barutçu on How to Make Android Map Scrollable Inside a ScrollView Layout
  • mang jojot on About
  • Hussain on How to Programmatically Scan or Discover Android Bluetooth Devices

Recent Posts

  • How to Fix Blank Screen on WordPress Add/Edit Post Page
  • How to Programmatically Restart the ESP32 Board
  • How to Get Hardware Info of ESP32
  • How to Setup MQTT Server Using Mosquitto and Libwebsocket on Freebsd

Latest Tweets

To protect our users from spam and other malicious activity, this account is temporarily locked. Please log in to https://twitter.com to unlock your account.

Copyright © 2023 · Magazine Pro on Genesis Framework · WordPress · Log in