Tag Archives: PHP

Simple PHP and Asterisk dialplan…

In This post I am just going to publish how to make a simple dial plan in asterisk by sending the call to PHP to process. The application is just going to be the standard asterisk Milliwatt application which answers a call … Continue reading

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS
Posted in Little Guides | Tagged , , , , , | Leave a comment

PHP… Simple Error Checking…

The below code is an example of providing some debug information by both email and logging the information to a file in “/var/logs/”. define(“CURRENT_FILE”, “thisfile.php”); define(“LOG_FILE_LOCATION”, “/var/log/”); function log_file($error1, $error2, $file) { $ok = true; // $file = “logile.txt”; if … Continue reading

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS
Posted in Recent Client Installs | Tagged , | Leave a comment

PHP… Do Not Run if running…

If you are creating an application that will be run in the terminal on a Linux machine and you don’t want it to run if its already running you can use the same code below to achieve this. class pid { protected $filename; public … Continue reading

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS
Posted in Little Guides | Tagged , , | Leave a comment

Some Simple PHP code..

Below i am going to list some simple PHP code that makes up most of a PHP coded page. If..Elseif…Else… statments $something = “Cat”; if ($something==”Cat”) { print “Catn”; } elseif ($something==”Dog”) { print “Dogn”; } else { print “Dont … Continue reading

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS
Posted in Usefully Found Stuff | Tagged , , , | Leave a comment

CentOS 6 LAMP Install (Apache MySQL & PHP) via YUM

This tutorial will walk you through the process of installing a CentOS 6 LAMP server, LAMP stands for Linux Apache MySQL PHP and is often refereed to as a “LAMP Stack“. CentOS is a popular choice for web servers as it’s based … Continue reading

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS
Posted in How To Guides, Little Guides, Usefully Found Stuff | Tagged , , , , , | Leave a comment