Archive | Technology RSS feed for this section

Mainframe REXX macro to capture TSO screen messages

Mainframe REXX macro utility to capture TSO screen output messages and to output those messages in Browse mode. This macro can be assigned to one of PF keys to execute whenever required.

Read full story Comments { 0 }

ASP code to parse rss feed

Following sample ASP code show how to parse a RSS feed into a structured text and display in a browser. This code is written to parse daily deals from a shopping RSS feed. You can use this code as a sample to modify according to your needs or refer this code as a reference for […]

Read full story Comments { 0 }

PHP code to read latest text file content based on modified time

Following sample code show how to read recently modified text file using PHP <?php $dh = opendir(“.”); while (false !== ($file=readdir($dh))) { $files[]=array($file); } closedir($dh); rsort($files); $filename = $files[0]; while(!feof($file)) { $line = fgets($file); print $line. “<br />”; } fclose($file); ?>

Read full story Comments { 0 }

How to get PHP settings from ini file

Following sample code is to get/display php.ini settings using browser <?php phpinfo(); ?> Create a file with extension .php(example: phpinfo.php) and add above code. Add it to your server using ftp and run this using web browser (example: <domainname>/phpinfo.php)

Read full story Comments { 0 }

Sort text files in a folder using PHP

Following sample PHP programs shows how to sort text files in a folder using PHP code, <?php $dir=’.’; $ext=’txt’; // Grab all files from the desired folder $files = glob( ‘./*.txt’ ); // Sort files by modified time, latest to earliest // Use SORT_ASC in place of SORT_DESC for earliest to latest array_multisort( array_map( ‘filemtime’, […]

Read full story Comments { 0 }

Read text files using PHP code

Following sample program shows how to read text files using PHP fopen and fgets <?php echo ‘test’; $path=”.”; $files = glob( ‘./*.txt’ ); $file_name = substr($files[0],2); echo $file_name; $file = fopen($file_name, “r”); while(!feof($file)) { $line = fgets($file); echo $line . ‘<br>’; } fclose($file); $content = “”; ?>  

Read full story Comments { 0 }
muraliwebworld-logo

How to make wordPress site as multisite network

WordPress is powerful publishing platform created using PHP and MYSQL. WordPress has facility to create multisite network sites with single database. We can create multisite with subdomains or subdirectory. Main disadvantage of this method is using a single database. For example, GoDaddy hosting limits 1GB for single database. So if we are running multisite using […]

Read full story Comments are closed
muraliwebworld-logo

Google search engine often changes its algorithm every 15 days

Google do not have stable mind in search algorithm design. Eventhough this blog belongs to Gobichettipalayam city guide, I would like to share my technology updates to everyone and to point out problems. It is clearly indicating that google search design team do not have stable mind to develop stable application which can also run […]

Read full story Comments are closed

Aptitude questions

One train leaves Los Angeles at 15mph heading for New York. Another train leaves from New York at 20mph heading for Los Angeles on the same track. If a bird, flying at 25mph, leaves from Los Angeles at the same time as the train and flies back and forth between the two trains until they […]

Read full story Comments are closed

Java

OOO principles? A: Encapsulation – It is the way the code and data are confined and are in isolation from the outside environment of the system. Inheritance – It is the process by which one object acquires the properties of another object. Polymorphism – It is a feature that allows one interface to be used […]

Read full story Comments are closed