Instead, I would try this site, iframehost, to install your Iframe and embed your blog. Log in to Facebook. Go to this page. Click “install page tab.” Choose the business page to which you want to embed your blog. Click “authorize the tab application.” In the bottom left-hand corner of the text box that appears, change the drop down menu to “only me.” Beside “page source” click on “URL” and enter the URL you want to embed. Change the tab name and image. You will also be able to change these later. Click “Save Settings” and then allow the application to access your business page. Go to your business page and check that your tab is working appropriately. Ref: http://writerswin.com/new-options-to-embed-your-website-on-facebook/
Html, JAVA,DOTNET,Javascript, PHP, and JQuery Scripts and its issues with solutions
Wednesday, 6 August 2014
Facebook embed your website
By using PHP unzip zip files with source code
<?php
$zip = new ZipArchive;
$res = $zip->open('demo.zip');
if ($res === TRUE) {
$zip->extractTo('test/');
$zip->close();
echo 'woot!';
} else {
echo 'doh!';
}
?>
$zip = new ZipArchive;
$res = $zip->open('demo.zip');
if ($res === TRUE) {
$zip->extractTo('test/');
$zip->close();
echo 'woot!';
} else {
echo 'doh!';
}
?>
Tuesday, 5 August 2014
Bootstrap Off Canvas nav toggle viewing windows size
$(document).ready(function () {
$('[data-toggle=offcanvas]').click(function () {
$('.row-offcanvas').toggleClass('active')
});
});
$('[data-toggle=offcanvas]').click(function () {
$('.row-offcanvas').toggleClass('active')
});
});
Monday, 4 August 2014
How to determine if an ip within specific range or not by using php?
$lower = "0.0.0.0.0";
$upper = "255.255.255.255";
$ip = "0.0.0.10";
$lower_dec = (float)sprintf("%u",ip2long($lower));
$upper_dec = (float)sprintf("%u",ip2long($upper));
$ip_dec = (float)sprintf("%u",ip2long($ip));
if( ($ip_dec>=$lower_dec) && ($ip_dec<=$upper_dec) ){
echo "True";
}else{
echo "False";
}
$upper = "255.255.255.255";
$ip = "0.0.0.10";
$lower_dec = (float)sprintf("%u",ip2long($lower));
$upper_dec = (float)sprintf("%u",ip2long($upper));
$ip_dec = (float)sprintf("%u",ip2long($ip));
if( ($ip_dec>=$lower_dec) && ($ip_dec<=$upper_dec) ){
echo "True";
}else{
echo "False";
}
Thursday, 31 July 2014
How to list files in Main directory & its Sub directory in dynamically in php?
$directory = substr(DIR_BASE,0,-1); $it = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($directory)); $i=1; while($it->valid()) { if (!$it->isDot()) { echo "$i\n"; echo 'SubPathName: ' . $it->getSubPathName() . "\n"; echo 'SubPath: ' . $it->getSubPath() . "\n"; echo 'Key: ' . $it->key() . "\n\n"; $i++; } $it->next(); }
How to create Zip file using php?
$zip = new ZipArchive(); $zip_name = time().".zip"; // Zip name $zip->open($zip_name, ZipArchive::CREATE); $zip->addFile('test.php'); $zip->close(); header('Content-type: application/zip'); header('Content-Disposition: attachment; filename="'.$zip_name.'"'); readfile($zip_name); unlink($zip_name);
How to export My Sql Database Backup in php?
$backuptime = "DB_Backup_".DB_NAME."-".time().".sql"; //$backuptime = DB_NAME.".sql"; $data["db_file_name"] = $backuptime; $insert = $CommonObj->insert_query("db_backup",$data); $str = ""; $show_tables = "show tables from ".DB_NAME; $tables = $db->query($show_tables); if($tables){ while($row = mysql_fetch_assoc($tables)){ $table = $row["Tables_in_".DB_NAME]; $show_each_tables = "show create table ".$table; $each_tables = $db->query($show_each_tables); $each_tables = mysql_fetch_assoc($each_tables); $str .= $each_tables["Create Table"]; $str .= ";\n\n"; $show_column = "SHOW COLUMNS FROM $table"; $column = $db->query($show_column); $get_val_query = "select * from $table"; $get_val = $db->query($get_val_query); if($column && mysql_num_rows($get_val)>0){ $str .= "INSERT INTO `$table` ("; while($cols = mysql_fetch_assoc($column)){ $str .= '`'.$cols["Field"].'`, '; } $str = substr($str,0,-2); $str .= ") VALUES \n"; } if($get_val && mysql_num_rows($get_val)>0){ while($vals = mysql_fetch_assoc($get_val)){ $str .= "( "; foreach($vals as $k=>$v){ $v= mysql_real_escape_string($v); $str .= '"'.$v.'", '; } $str = substr($str,0,-2); $str .= "),\n"; } $str = substr($str,0,-2); } $str .= ";\n\n"; } } $handle = fopen(DIR_DB.$backuptime,'w+'); fwrite($handle,$str); fclose($handle);
Subscribe to:
Posts (Atom)
Feet/Inches to Meters Converter & Lbs to Kgs Converter
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <title>Feet/Inches ⇄...
-
<?php $to = "somebody@example.com, somebodyelse@example.com"; $subject = "HTML email"; $message = " <h...
-
document.onkeydown = myKeyDownHandler; function myKeyDownHandler(event){ alert(event.keyCode) }
-
To Resolve above the issue use below this code $(function() { $('#calendar').fullCalendar('render'); });