nedeľa 24. apríla 2011

Iphone (ios 4.2) - ubuntu mount problem

If you see this: DBus error: MESSAGE DID NOT RECEIVE A REPLY (TIMEOUT MESSAGE BY BUS)

You can solve it easy:

sudo add-apt-repository ppa:pmcenery/ppa
sudo apt-get update
sudo apt-get dist-upgrade

štvrtok 9. decembra 2010

PHP - how to print response, close communication and continue by some function

After long search i found this and its works! :)

        ob_end_clean();
        //set header
        header("content-type: text/xml");
        header("Connection: close\r\n");
        ob_start();
        //print response
        $sMessage = '<?xml version="1.0" encoding="UTF-8"?>';
        $sMessage.= '<message><id>1</id></message>';
        echo $sMessage;     
        $iSize = ob_get_length();
        header("Content-Length: $iSize");
        ob_end_flush();
        flush();
        ob_end_clean();
       
        sleep(10);
        //call some function or method
        callMyFuncion();
       
      

utorok 16. novembra 2010

Good software for developing PHP ?(and etc...)

After few years in bussines i have some tips for you:

Browser: Firefox with firebug (http://getfirebug.com/) and HTMl validator (http://users.skynet.be/mgueury/mozilla/)
Apache, PHP,MySQL: WAMP - http://www.wampserver.com/en/download.php (turn on some modules as mod rewrite, curl, gd etc... what you need)
SVN: tortoise with gui http://tortoisesvn.net/downloads, but i prefer plugin in eclipse
Editor: Eclipse with PDT plugin http://www.eclipse.org/pdt/ and SVN plugin
FTP: filezilla http://filezilla-project.org/download.php
SCP: winscp http://winscp.net/eng/download.php
SSH:putty  http://www.chiark.greenend.org.uk/~sgtatham/putty/
php debug: xdebug - http://www.xdebug.org/ and http://sourceforge.net/projects/wincachegrind/