Couldn't open stream {imap.gmail.com:993/imap/ssl}INBOX in
While connecting with Google gmail via PHP , Java or any other code you may be face this error and get the message as listed below:
"Couldn't open stream {imap.gmail.com:993/imap/ssl}INBOX"
To overcome this problem logon your gmail and set permission via this link:
https://www.google.com/settings/security/lesssecureapps
After...
Saturday, August 30, 2014
Thursday, August 14, 2014
Rotate any Div in jquery
Rotate any Div in html jquery.
==========================
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta...
PHP with MSSQL Server Simple Query
PHP with MSSQL Server Simple Query.
<?php
session_start();
$sqlServerIP = '127.0.0.1';
$link = mssql_connect($sqlServerIP, 'sa', 'amit123');
if (!$link) {
die('Wrong connection');
}
mssql_select_db('AssetMgmt', $link);
$User_Email="email@email.com";
$User_Pass='test';
$ssql="select *from USER_MASTER where User_Email='".$User_Email."'...
PHP with MSSql Server Stored procedure return records
Connect PHP with MSSql Server Stored procedure and return records.
<?php
$sqlServerIP = '127.0.0.1';
$link = mssql_connect($sqlServerIP, 'sa', 'amit123');
if (!$link) {
die('wrong connection');
}
mssql_select_db('amittest', $link);
$stmt = mssql_init('ListEmp');
$ID = 100;
mssql_bind($stmt, '@ID', ...
PHP with MSSQL Server Stored Procedure
Here is the code to connect PHP with Mssql Server Stored procedure.
<?php
$sqlServerIP = '127.0.0.1';
$link = mssql_connect($sqlServerIP, 'sa', 'amit123');
if (!$link) {
die('wrong connection.');
}
mssql_select_db('amittest', $link);
$stmt = mssql_init('LoginChk');
$ID = 1;
$EmpID = 'Emp001';
$OutputLogin=0;
// Bind values
mssql_bind($stmt,...
Exact date problem in ms access sql
Exact date problem in ms access sql
===============================
Suppose you have a column in the table of ms access database with DateTime. and you are storing Date and Time values. After that if you use query "select *from tbl where creationDate>=#07/30/2014# and creationDate<=#07/30/2014# then you will surprise that no result...
Generate CSV in jsp without third party utility
Generate CSV in jsp without third party utility
There are lot of third party paid and free utility that generate CSV file in JSP/Java. but the problems are to hard to implement. and may utility first create CSV file in the server, so Server space will be consumed.
To overcome all the problem I have created listed below the code. You are free to use...
Time in 24 Hours format in Java
How to show time in 24 Hours format.
Listed below the code; how to show time in 24 format in java
import java.io.*;
import java.util.*;
import java.util.Calendar;
import java.sql.*;
import java.text.SimpleDateFormat;
import java.util.Date;
public class Tm {
public static void main(String[] args) {
...
Watermark and heading in existing PDF Using itextSharp C#
Watermark and heading in existing PDF Using itextSharp C#
In recently my project of Learning Management System,ICT training programmes,academic software modules and teaching application software/technologies for researchers in the institutions of higher education
in Dot Net, I have faced a problem to Add Watermark and heading in existing PDF...