Posts

Showing posts with the label Coding

Install LAMP (Linus Apache My SQL PHP ) in LINUX / UBUNTU TIPS

Image
This is how wiki defines LAMP ...                      LAMP is an acronym for a solution stack of free , open source software, referring to the first letters of Linux ( operating system ), Apache HTTP Server , MySQL ( database software ) and originally Perl (but now sometimes PHP or Python ), principal components to build a viable general purpose web server . 1. At first  Login as root: sudo su 2 Install MySQL 5 apt-get install mysql-server mysql-client 3.  Install Apache apt-get install apache2 Now type "localhost" in web page ad you will lead to apache page Default location is /var/www   - web-root by default 4.  Install PHP5 apt-get install php5 libapache2-mod-php5 Now restart PHP /etc/init.d/apache2 restart 6.  To get support of My Sgl in php apt-cache search php5 Also install the following bundles... ap...

How to get the File Size and File Type of File / Folder in PhP With Example Source Code

Image
Guys, By using the following code we can find out the File size and type of files/ folders in a directory . The help is give as comments and if have any more doubt then please comment Example Code <?php   $myDirectory = opendir("rootFolder");   // get each entry   while($entryName = readdir($myDirectory)){        $dirArray[] = "rootFolder/".$entryName;   }   // close directory   closedir($myDirectory);   //     count elements in array    $indexCount     = count($dirArray);    Print ("$indexCount files<br>\n");   // sort 'em   sort($dirArray);   // print 'em    print("<TABLE border=1 cellpadding=5 cellspacing=0 class=whitelinks>\n");    print("<TR><TH>Filename</TH><th>Filetype</th><th>Filesize</th></TR>...

How to connect Or Access a Windows share folder or file from a Linux / Ubuntu system in the same network

Image
Hi,                                                                            This Blog include the details about how to connect a  Windows share folder from a Linux / Ubuntu system in the same network. Step I: Click on the " Places "tab and select "connect to server".     Places>>Connect To Server Step II: Form the window popping up ,From the Service type select " Windows Share " Step III: Then in the server Field Enter the computers IP address , ie the IP of the system that the shared folder in  windows  exists . Step IV: Then you will get a new  window.Select the folder ad Go on..... This will help You if U have both Linux ad Windows i a same network.For more Details Enlarge the images.

How to Create Live Search In Html Using Ajax Ad PhP - Google Live Search / Instant Search Code And Example

Image
Hi, Here Is the code and example for how to create a live search or instant search for your website.It consist of 3 parts 1.A JavaScript including Ajax 2.A Input box to enter the keywords by user 3.A Php Code to do the searching           Now , the JavaScript code is given below <script type="text/javascript"> function showResult(str) { if (str.length==0) { document.getElementById("livesearch").innerHTML=""; document.getElementById("livesearch").style.border="0px"; return; } if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); } else {// code for IE6, IE5 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4 && xmlhttp.status==200) { document.getElementById("livesearch").innerHTML=xmlhttp.responseTe...