Posts Tagged ‘PHP’

Simple Application using Ajax and PHP

var fbShare = {url: ‘http://sree.cc/jquery/simple-application-using-ajax-and-php’,size:’large’}
This is a simple application to convert all the First Letter of a string to Upper case using AJAX.
Here you have two files: an HTML file and a PHP file.
The HTML file contains the HTML code as well as Ajax code. The PHP file is meant for modifiying the [...]

PHP HTTP Service Monitor

var fbShare = {url: ‘http://sree.cc/php/php-http-service-monitor’,size:’large’} Create a PHP CLI script called monitor.php like this

#!/usr/bin/php -q
<?php
define ( “ TIMEOUT “ , 30 ) ;
define ( “ EMAIL “ , ‘ abc @ youremail . com ‘ ) ;
check ( “ http://hosta.com “ ) ;
check ( “ http://hostb.com “ ) ;
check ( “ http://hostc.com “ ) [...]