Posts Tagged:php

How to use twitter for sending notifications with Codeigniter

Today i will show you how you can create an application in codeigniter so you can use it to share “notifications” in twitter. First of all you have to create a new application in twitter “Twitter app”. A very helpfull tutorial i founded here Tutorial. If it asks you for your mobile phone, just download…

Codeigniter facebook send notification

Hello when i was trying to find how to send a notification to a user from a facebook app i found many solutions but it was difficult to figure what was going on. So at the end i found the solution. First you need a facebook application, or with javascript sdk or with php sdk.…

How to take the first and the last day of a month in PHP

  • July 21, 2014
  • Boursinos Website
  • php
  • Comments Off on How to take the first and the last day of a month in PHP

While i was searching how to take the first and the last day of a month in php i found two functions that returns to you those dates. Here are the two functions. function lastday($month = ”, $year = ”) { if (empty($month)) { $month = date(‘m’); } if (empty($year)) { $year = date(‘Y’); }…