Skip to content
CodeBangers
  • Home
  • Store
  • Support
    • Get Support
    • Hire Us
    • Have a Question?
    • FAQ
0

Your cart

CodeBangers
0

Your cart

  • Home
  • Store
  • Cart
  • My Account
  • Support

Category: PHP

January 11, 2013January 11, 2013How to, PHP

PHP Code for Replacing Characters in a String or Variable

PHP Functions

str_replace(‘”‘, “”, $string); preg_replace(“//”, “”, $string); C-style quotes: preg_replace(“/\/\/.*?\n/”, “\n”, $string); CSS-style quotes: preg_replace(“/\/*.*?\*\//”, “”, $string); bash-style quotes: preg-replace(“/#.*?\n/”, “\n”, $string);

January 11, 2013How to, PHP

Split PHP String into Multiple Variables Made Easy

PHP Functions

Like a Glove….

January 10, 2013March 20, 2013How to, PHP

Adding or Subtracting Time to/from MYSQL Formatted Timestamp in PHP

PHP Functions

Just replace “+1 day” with what ever you need to add. ex “+1 year, +1 day” etc. Have fun. $date = date(“Y-m-d”,strtotime(“+1 […]

January 10, 2013January 10, 2013PHP

Easy Way to Convert Month Number into Month Names with PHP

PHP Functions

And here it is.

November 20, 2012November 26, 2012Apache2, Linux, PHP, Ubuntu

Add Ftp Users and Change Home Directory

To add a user account, use the following syntax, and follow the prompts to give the account a password and identifiable characteristics […]

November 16, 2012Linux, PHP

Easily Run PHP Script As A Cron Job Linux

PHP Functions

I’ve nicely written PHP script that I’d like to run as a cron job. I’m using CentOS 4.5 as server with Apache […]

October 25, 2012PHP

How to get Longitude and Latitude from an Address with PHP. So Easy

PHP Functions
September 4, 2012September 4, 2012Apple, Fix, How to, Mac, PHP

PHP Cookies don’t work on Apple/Mac – Safari and Opera Browsers/iPhone, iPad, iPod Devices – FIXED

PHP Functions

If you’re having problems with using PHP $_COOKIES with Safari, Opera, iPad, iPod, iPhone, ibla bla or any Apple product. Please put […]

July 10, 2012July 10, 2012PHP

Limit Characters in a String

PHP Functions

Simple enough. echo substr($string, 0,15);

June 28, 2012PHP, Wordpress

List Posts Only from Specific Category – WordPress

Posts pagination

< 1 2 3 >

Cart

© 2025 CodeBangers. Proudly powered by Sydney