BCS BCA IT Colleges in Chembur

1.Hashu Advani College of Education
Address:
Collectors Colony
Chembur Camp
Chembur
Mumbai -400074
Landmark: Near Ambedkar Garden
Phone: 022-25530451, 022-25531041

2. N.G. Acharya & D.K. Marathe College of Arts Science & Commerce
Address:
N.G Acharya Marg
Chembur
Mumbai -400071
Landmark: Near Chembur Railway Station
Phone: 022-25210962

3. Narayan Guru College of Commerce
Address:
PL Lokhande marg
Shree Narayan Nagar
Chembur
Mumbai -400071
Phone: 022-25280926

4. Vivek Anand College
Address:
Sindhi Society
Chembur
Mumbai -400071
Near Bhakti Bhavan
Phone: 022-25221360, 022-25227502

5. KJ SOMAIYA COLLEGE
Garudiya nagar, Ghatkopar

Maharashtra /Mumbai HSC Results 2009 is online

Maharshtra HSc Result is declared on 4th  june at  11 am.

the following website shows you result

1. http://mahresult.nic.in/
2. http://msbshse.ac.in/

Print page using javascript

Use external smtp server

to use external smtp server we need to change some ini setting .
this setting can be chage using following code
ini_set(sendmail_from,”info@domain.com”);
ini_set(SMTP,”New smto host name”);
ini_set(smtp_port,”25″);

using rhis code you can send mail fro the given smtp mail server

select ranodom record from mysql and php

Use this query
“select * from table_name order by rand() limit 1 “

changing input type dynamically

the code is in js

1. var input=document.getElementById(id);
2. var input2= input.cloneNode(false);
3. input2.type=’password’;
4. input.parentNode.replaceChild(input2,input);

Passes parameter to and from popup and parent page

//—-we e in popup window and wanna to show some value from parent window as a preview in popup

document.popupfrm.showDiv.innerHTML=window.opener.

forms.fieldname.value;

validating field in fckeditor using javascript

var EditorInstance = FCKeditorAPI.GetInstance(‘message’) ; //message is name of field to be validate
if(EditorInstance.EditorDocument.body.innerText.length<=0)
{
alert(“This firld is mandatory”);
EditorInstance.EditorDocument.body.focus();
return false;
}

Copy file to other server using curl

//——-curl
$source_file=”example.php”;
$fp = fopen($source_file, “r”);
$url = “ftp://username:password@target_server_url:21 file_path /file_name”;
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_UPLOAD, 1);
curl_setopt($ch, CURLOPT_INFILE, $fp);
curl_setopt($ch, CURLOPT_FTPASCII, 1);
curl_setopt($ch, CURLOPT_INFILESIZE, filesize($source_file));
$result = curl_exec($ch);
curl_close($ch);
//———

Get Database size in mysql and php

<?php

require_once(“conf.php”); // youe database connection file
$result = mysql_query( “SHOW TABLE STATUS” );
$dbsize = 0;

while( $row = mysql_fetch_array( $result ) ) {

$dbsize += $row[ "Data_length" ] + $row[ "Index_length" ];

}

?>

<?php

echo “<p>The size of the database is ” . formatfilesize( $dbsize ) . “</p>”;

?>