Blog Archives

My Cv page updated

Go through my cv page http://arunrajr.com/blog/my-cv/

Posted in asterisk, Mysql, PHP

PHP code to find Duration of an Audio File

Here is the PHP function to calculated duration of “wav” or “GSM” files First we open file using fopen. After we calculate the size of that file (inbytes) using filesize(). Then we unpack the audio File . unpack(‘vtype/vchannels/Vsamplerate/Vbytespersec/valignment/vbits’,$rawheader); This will

Tagged with: , ,
Posted in PHP, Programming

Beta Version of Zend Application Server released

Zend Server Zend Server is a commercial, enterprise-ready Web Application Server that is designed for running and managing business-critical PHP applications in production. It includes advanced performance optimization, application monitoring and application problem diagnostic capabilities.  Zend Server users receive comprehensive

Tagged with: , ,
Posted in PHP, Project Managament

How to deploy Symfony project using sync or rsync

install rsync http://trac.symfony-project.org/wiki/SymfonySyncOnWindows Download rsync and extract it to c:\windows\system32 Then run the command symfony project:deploy production Using rsync for Incremental File Transfer Uploading the whole project again and again is little irritating .. ! It is wastage of time

Tagged with: , , ,
Posted in Misk, PHP, Projects

HTTP REDIRECT

PHP Redirect <?php header(“Location: http://www.example.com/”); /* Redirect browser */ /* Make sure that code below does not get executed when we redirect. */ exit; ?> Javascript Redirect <script type=”text/javascript”> <!– window.location = “http://www.arunrajr.com/” //–> </script>

Tagged with: , ,
Posted in javascript, PHP, Programming

Ready to use Error handling class in your hosted php application

Hello Friends, I have wriiten a class for error reporitng in a php web application. It is a ready made one.. you have to provide your email id. If you work in localhost it will provide you error in the

Tagged with: , ,
Posted in PHP, Programming

Export Database to Excel or CSV File

The below code help you to export data from database to csv file exporttoxls To export a complete database, you should invoke all the tables via below code and apply the above code $dbname = ‘mysql_dbname’; if (!mysql_connect(‘mysql_host’, ‘mysql_user’, ‘mysql_password’))

Tagged with: , , , , ,
Posted in PHP, Programming

Toggle visibility between none and inline

function toggle_it(itemID){ // Toggle visibility between none and inline if ((document.getElementById(itemID).style.display == ‘none’)) { document.getElementById(itemID).style.display = ‘inline’; } else { document.getElementById(itemID).style.display = ‘none’; } }

Tagged with: , ,
Posted in javascript, Programming