A Pen by Sivaprabu Ganesan on CodePen.
This file contains 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 | |
/* | |
max_execution_time = 30000 | |
extension=php_imap.dll | |
*/ | |
/* connect to gmail */ | |
$hostname = '{imap.gmail.com:993/imap/ssl}INBOX'; |
This file contains 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 | |
echo date("Y M d", strtotime("20130222")); | |
echo "<br/><br/>"; | |
echo date("Y/m/d", strtotime("20130222")); | |
?> |
This file contains 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 | |
$conn=mysql_connect("localhost","root","kirti123") ; | |
if(!$conn) | |
{ | |
die('connection Error' . mysql_error()); | |
} | |
// DATE CONVERSION |
This file contains 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 | |
// Manufacturer of the Product | |
if (VmConfig::get('show_manufacturers', 1) && !empty($this->product->virtuemart_manufacturer_id)) { | |
echo $this->loadTemplate('manufacturer'); | |
} | |
?> |
This file contains 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
<div class="skuNumber"><br /> | |
<?php echo JText::_('COM_VIRTUEMART_CART_SKU') ?>: <?php echo $this->product->product_sku; ?> | |
</div> |
This file contains 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
-- phpMyAdmin SQL Dump | |
-- version 3.5.2.2 | |
-- http://www.phpmyadmin.net | |
-- | |
-- Host: 127.0.0.1 | |
-- Generation Time: Apr 08, 2013 at 02:48 PM | |
-- Server version: 5.5.27 | |
-- PHP Version: 5.4.7 | |
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; |
This file contains 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
<script type="text/javascript" src="https://www.google.com/jsapi"></script> | |
<script type="text/javascript"> | |
google.load("visualization", "1", {packages:["corechart"]}); | |
google.setOnLoadCallback(drawChart); | |
function drawChart() { | |
var data = google.visualization.arrayToDataTable([ | |
['Year', 'AIDMK', 'DMK','INC','CPI','CPI-M','PMK','MDMK','DMDK'], | |
['1977', 130, 48, 27, 5 , 12, 0 , 0, 0 ], | |
['1980', 129, 37, 31, 9 , 11, 0, 0, 0 ], |
This file contains 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 | |
$message= 'Lorem ipsum dolor sit amet, consectetuer adipiscing elit http://www.youtube.com/watch?v=LSoXrR2Xec4 Lorem ipsum dolor sit amet, consectetuer adipiscing elit http://www.youtube.com/watch?v=0SARbwvhupQ '; | |
$regex = '/\b[http|https]?\:\/\/\w+\.youtube\.com\/watch\?v\=(\w+)\b/'; | |
$matches = array(); | |
preg_match_all($regex, $message, $matches); | |
print_r($matches[1]); |
This file contains 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 | |
$q2 = "SELECT FIELD FROM TABLENAME WHERE ID = 1;"; | |
$con = new mysqli($server, $user, $pass); | |
if (mysqli_connect_errno()) | |
{ | |
$error = mysqli_connect_error(); | |
exit(); | |
} | |
else |
OlderNewer