Skip to content
pontikis.net
  • Blog
  • Labs
  • Write For Us
  • About
Search this website
Menu Close

php

  1. Home>
  2. Blog>
  3. php>
  4. Page 3
Read more about the article How to check if a Request is AJAX call with PHP
Credits

How to check if a Request is AJAX call with PHP

  • Post author:Christos Pontikis
  • Post published:December 9, 2013
  • Post category:Web Development
  • Reading time:2 mins read

It is useful to prevent direct access of AJAX calls (from browser address bar). A solution could be the following simple function check_is_ajax(): /** * Check if request is an…

Continue ReadingHow to check if a Request is AJAX call with PHP
Read more about the article PHP and Javascript Internationalization using Gettext and Poedit
Credits

PHP and Javascript Internationalization using Gettext and Poedit

  • Post author:Christos Pontikis
  • Post published:November 19, 2013
  • Post category:Web Development
  • Reading time:21 mins read

The term "localization" is used as a synonym of "internationalization", which is the most proper term. Sometimes, internationalization is shortened to "i18N" (meaning "i - eighteen letters -n"). gettext is…

Continue ReadingPHP and Javascript Internationalization using Gettext and Poedit
Read more about the article How to Convert Date or Time to any Timezone and Dateformat with PHP
Credits

How to Convert Date or Time to any Timezone and Dateformat with PHP

  • Post author:Christos Pontikis
  • Post published:November 4, 2013
  • Post category:Web Development
  • Reading time:4 mins read

Date manipulation is a common and extremely useful development task. It was never easy with PHP, until PHP5 and DateTime class. There are many cases you need to convert dates.…

Continue ReadingHow to Convert Date or Time to any Timezone and Dateformat with PHP
Read more about the article Check if a String represents a Valid Timezone with PHP
Credits

Check if a String represents a Valid Timezone with PHP

  • Post author:Christos Pontikis
  • Post published:November 4, 2013
  • Post category:Web Development
  • Reading time:1 mins read

Sometimes you want to check if a string represents a valid timezone. Using PHP versions greater than 5.2, timezone_identifiers_list() could be a solution. Take a look in the following function:…

Continue ReadingCheck if a String represents a Valid Timezone with PHP
Read more about the article Dynamically Bind Params in Prepared Statements with MySQLi
Credits

Dynamically Bind Params in Prepared Statements with MySQLi

  • Post author:Christos Pontikis
  • Post published:October 13, 2013
  • Post category:Database Administration
  • Reading time:7 mins read

Prepared statements must be used in application development with databases. There are two main reasons: performance: parameterized queries with prepared statements reduces the database load, reusing access plans that were…

Continue ReadingDynamically Bind Params in Prepared Statements with MySQLi
  • Go to the previous page
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • …
  • 8
  • Go to the next page

Categories

Archives

NewsLetter

Click here to subscribe to our free email newsletter.
Unsubscribe anytime with a click.

LIKE OUR PAGE!

  • Opens in a new tab
  • Opens in a new tab
  • Opens in a new tab
  • Opens in a new tab
  • Opens in a new tab
  • Opens in a new tab
  • Opens in a new tab
  • Contact
  • Privacy
  • Terms
  • Credits
© Christos Pontikis 2013 - 2022
Close Menu