Skip to content
pontikis.net
  • Blog
  • WordPress
  • Labs
  • About
  • Toggle website search
Search this website
Menu Close

hm

  1. Home>
  2. Blog>
  3. hm>
  4. hm
Read more about the article How to find whether a variable is positive integer with PHP
Credits

How to find whether a variable is positive integer with PHP

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

PHP is_numeric() is useful to find whether a variable is a number or a numeric string. How you can check if a variable is an integer? You may use the…

Continue ReadingHow to find whether a variable is positive integer with PHP
Read more about the article Massive Change of File Permissions
Credits

Massive Change of File Permissions

  • Post author:Christos Pontikis
  • Post published:August 28, 2013
  • Post category:Linux Administration
  • Reading time:1 mins read

Use the powerful find command with exec parameter to change permissions using chmod. To change permissions to 644 for all files in /path/to, use the following command: find /path/to -type…

Continue ReadingMassive Change of File Permissions
Read more about the article Passing Array Variables using POST or GET with PHP
Credits

Passing Array Variables using POST or GET with PHP

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

A convenient way to pass a single or multidimensional (possible utf-8) array is to serialize it ("convert it to a string") and pass it using a hidden input. After post…

Continue ReadingPassing Array Variables using POST or GET with PHP
Read more about the article Preventing JS or CSS Caching on Web Applications
Credits

Preventing JS or CSS Caching on Web Applications

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

It is very important for dynamic web applications, any js and css changes to become available to user (without need to refresh - reload browser page). Instead of <script type="text/javascript"…

Continue ReadingPreventing JS or CSS Caching on Web Applications
Read more about the article Find all occurrences of a substring in a string with PHP
Credits

Find all occurrences of a substring in a string with PHP

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

PHP stripos (or mb-stripos) finds the position of the first occurrence of a (case-insensitive) substring in a string. How to find all occurrences? Here is a solution: <?php /** *…

Continue ReadingFind all occurrences of a substring in a string with PHP
  • Go to the previous page
  • 1
  • …
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • …
  • 29
  • 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!


Say Hello to Gutenberg with my new Free WordPress Plugin Boilerplate for Developers!

Star it on Github!


  • 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
© Christos Pontikis 2013 - 2025
Close Menu