This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Installation of composer | |
| refer the URL (http://getcomposer.org/doc/00-intro.md) | |
| Installation - Windows# | |
| Using the Installer# | |
| This is the easiest way to get Composer set up on your machine. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function compare_array($no_of_incidents, $no_of_incidents) { | |
| $incident_count_first = intval($no_of_incidents['1']); | |
| $incident_count_next = intval($no_of_incidents['1']); | |
| if ($incident_count_first == $incident_count_next) { | |
| return 0; | |
| } | |
| return ($incident_count_first > $incident_count_next) ? -1 : 1; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| class WebContentReader{ | |
| public $global_url; | |
| function __construct(){ | |
| $this->global_url = array(); | |
| // Create connection | |
| $con=mysqli_connect("localhost","root","","dbname"); | |
| if (mysqli_connect_errno($con)) | |
| { | |
| echo "Failed to connect to MySQL: " . mysqli_connect_error(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /* | |
| * PHP function to image-watermark an image | |
| * http://salman-w.blogspot.com/2008/11/watermark-your-images-with-another.html | |
| * | |
| * Writes the given watermark image on the specified image | |
| * and saves the result as another image | |
| */ | |
| define('WATERMARK_OVERLAY_IMAGE', 'watermark.png'); |
OlderNewer